Make copies of cstdlib/cmath and use them [BZ #20314]
[platform/upstream/glibc.git] / ChangeLog
1 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2
3         [BZ #20314]
4         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
5         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
6         $(common-objpfx)cmath.
7         ($(common-objpfx)cstdlib): New target.
8         ($(common-objpfx)cmath): Likewise.
9
10 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
11
12         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
13
14 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
15
16         [BZ #20327]
17         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
18         are not part of the string.
19
20 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21
22         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
23         * nptl/tst-cancel4-common.h (fifoname): New variable.
24         (fifofd): Likewise.
25         (cl_fifo): New function.
26         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
27         SIGINT.
28         (tf_open): Add early cancel test.
29
30 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
31
32         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
33
34 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
35
36         * sysdeps/generic/ldsodefs.h
37         (dl_symbol_visibility_binds_local_p): New inline function.
38         * elf/dl-addr.c (determine_info): Treat hidden and internal
39         symbols as local.
40         * elf/dl-lookup.c (do_lookup_x): Likewise.
41         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
42
43 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
44
45         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
46         invalid exception for a sNaN input.
47         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
48         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
49         (__nearbyint_vis3): Likewise
50         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
51         (__nearbyintf_vis3): Likewise
52         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
53         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
54         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
55         Likewise.
56         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
57         Likewise.
58
59 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
60
61         [BZ #20139]
62         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
63         (HAVE_AVX512DQ_ASM_SUPPORT): This.
64         * sysdeps/x86_64/configure.ac: Require assembler from binutils
65         2.24 or above.
66         (HAVE_AVX512_ASM_SUPPORT): Removed.
67         (HAVE_AVX512DQ_ASM_SUPPORT): New.
68         * sysdeps/x86_64/configure: Regenerated.
69         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
70         check unconditional.
71         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
72         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
73         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
74         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
75         Likewise.
76         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
77         Likewise.
78         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
79         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
80         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
81         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
82         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
83         Likewise.
84         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
85         Likewise.
86         * sysdeps/x86_64/multiarch/memset.S: Likewise.
87         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
88         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
89         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
90         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
91         Likewise.
92         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
93         Likewise.
94         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
95         Likewise.
96         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
97         Likewise.
98         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
99         Likewise.
100         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
101         Likewise.
102         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
103         Likewise.
104         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
105         Likewise.
106         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
107         Likewise.
108         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
109         Likewise.
110         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
111         Likewise.
112
113 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
114
115         [BZ #20024]
116         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
117         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
118         of this implementation of vector function.
119         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
120         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
121         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
122         Likewise.
123         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
124         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
125         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
126         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
127         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
128         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
129         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
130         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
131         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
132         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
133         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
134         for testing vector sincos with fixed ABI.
135         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
136         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
137         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
138         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
139         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
140         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
141         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
142         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
143         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
144         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
145         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
146         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
147         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
148         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
149         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
150         * sysdeps/x86_64/fpu/Makefile: Added new tests.
151
152 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
153
154         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
155
156 2016-06-30  Anton Blanchard  <anton@samba.org>
157
158         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
159         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
160         s_sinf-ppc64.
161         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
162         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
163         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
164         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
165
166 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
167
168         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
169         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
170         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
171         e_expf-ppc64.
172         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
173         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
174         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
175         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
176
177 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
178
179         [BZ #20277]
180         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
181         when SHARED is defined.
182
183 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
184
185         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
186         (index_arch_Prefer_ERMS): Likewise.
187         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
188         __memcpy_erms for Prefer_ERMS.
189         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
190         (__memmove_erms): Enabled for libc.a.
191         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
192         __memmove_erms or Prefer_ERMS.
193         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
194         __mempcpy_erms for Prefer_ERMS.
195         * sysdeps/x86_64/multiarch/memset.S (memset): Return
196         __memset_erms for Prefer_ERMS.
197
198 2016-06-30  Andreas Schwab  <schwab@suse.de>
199
200         [BZ #20262]
201         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
202         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
203         of memory.
204
205 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
206
207         [BZ #18645]
208         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
209         (test-extras): Add tst-cleanupx4aux.
210         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
211         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
212         tst-cleanupx4aux.o.
213         * nptl/tst-cleanupx4aux.c: New file.
214
215 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
216
217         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
218
219 2016-06-29  Andreas Schwab  <schwab@suse.de>
220
221         [BZ #20260]
222         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
223         address before the beginning of the string as an integer to avoid
224         array-bounds warning.
225
226 2016-06-28  Richard Henderson  <rth@redhat.com>
227
228         * elf/elf.h (EM_BPF): New.
229         (EM_NUM): Update.
230         (R_BPF_NONE, R_BPF_MAP_FD): New.
231
232         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
233         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
234         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
235         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
236         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
237         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
238         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
239         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
240         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
241         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
242         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
243         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
244         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
245         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
246         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
247         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
248         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
249         (EM_NUM): Update.
250
251 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
252
253         [BZ #18960]
254         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
255         Set _nl_current_LC_CATEGORY_used to two instead of one.
256
257 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
258
259         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
260         (do_test): ... this.
261         (TEST_FUNCTION): New macro.
262          Include test-skeleton.c.
263         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
264         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
265
266 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
267
268         [BZ #15479]
269         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
270         floating-point environment rather than just control word.
271         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
272         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
273         floating-point environment, with "invalid" exceptions merged in,
274         rather than just control word.
275         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
276         * math/libm-test.inc (trunc_test_data): Do not allow spurious
277         "inexact" exceptions.
278
279         [BZ #15479]
280         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
281         floating-point environment rather than just control word.
282         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
283         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
284         floating-point environment, with "invalid" exceptions merged in,
285         rather than just control word.
286         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
287         * math/libm-test.inc (floor_test_data): Do not allow spurious
288         "inexact" exceptions.
289
290         [BZ #15479]
291         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
292         floating-point environment rather than just control word.
293         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
294         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
295         floating-point environment, with "invalid" exceptions merged in,
296         rather than just control word.
297         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
298         * math/libm-test.inc (ceil_test_data): Do not allow spurious
299         "inexact" exceptions.
300
301 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
302
303         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
304         __libc_vfork.
305         (__vfork) [IS_IN (libc)]: Remove alias.
306         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
307         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
308         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
309
310 2016-06-24  Torvald Riegel  <triegel@redhat.com>
311
312         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
313         of atomic_compare_and_exchange_bool_rel.
314         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
315         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
316         catomic_compare_and_exchange_bool_rel): Remove.
317         * sysdeps/aarch64/atomic-machine.h
318         (atomic_compare_and_exchange_bool_rel): Likewise.
319         * sysdeps/alpha/atomic-machine.h
320         (atomic_compare_and_exchange_bool_rel): Likewise.
321         * sysdeps/arm/atomic-machine.h
322         (atomic_compare_and_exchange_bool_rel): Likewise.
323         * sysdeps/mips/atomic-machine.h
324         (atomic_compare_and_exchange_bool_rel): Likewise.
325         * sysdeps/microblaze/atomic-machine.h
326         ( __arch_compare_and_exchange_bool_8_rel,
327         __arch_compare_and_exchange_bool_16_rel): Likewise.
328         * sysdeps/powerpc/atomic-machine.h
329         ( __arch_compare_and_exchange_bool_8_rel,
330         __arch_compare_and_exchange_bool_16_rel): Likewise.
331         * sysdeps/powerpc/powerpc32/atomic-machine.h
332         ( __arch_compare_and_exchange_bool_32_rel,
333         __arch_compare_and_exchange_bool_64_rel): Likewise.
334         * sysdeps/powerpc/powerpc64/atomic-machine.h
335         ( __arch_compare_and_exchange_bool_32_rel,
336         __arch_compare_and_exchange_bool_64_rel): Likewise.
337         * sysdeps/tile/atomic-machine.h
338         (atomic_compare_and_exchange_bool_rel): Likewise.
339
340 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
341
342         [BZ #20296]
343         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
344         when either argument is a NaN.
345         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
346         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
347
348         * math/libm-test.inc (snan_value_ld): New macro.
349         (isgreater_test_data): Add sNaN tests.
350         (isgreaterequal_test_data): Likewise.
351         (isless_test_data): Likewise.
352         (islessequal_test_data): Likewise.
353         (islessgreater_test_data): Likewise.
354         (isunordered_test_data): Likewise.
355         (nextafter_test_data): Likewise.
356         (nexttoward_test_data): Likewise.
357         (remainder_test_data): Likewise.
358         (remquo_test_data): Likewise.
359         (significand_test_data): Likewise.
360         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
361
362 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
363
364         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
365         environment macros are defined.
366         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
367
368 2016-06-23  Florian Weimer  <fweimer@redhat.com>
369
370         [BZ #20191]
371         Implement vtable verification in libio.
372         * Makerules (shlib.lds): Place __libc_IO_vtables section.
373         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
374         * debug/vdprintf_chk.c (__vdprintf_chk): Call
375         _IO_new_file_init_internal instead of _IO_file_init.
376         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
377         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
378         * libio/Makefile (routines): Add vtables.
379         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
380         (_IO_init): Remove, not for internal use.
381         (_IO_init_internal): Declare, internal replacement for _IO_init.
382         (_IO_file_init): Remove, not for internal use.
383         (_IO_new_file_init): Remove, not for internal use.
384         (_IO_new_file_init_internal): Declare, internal replacement for
385         _IO_new_file_init.
386         (_IO_old_file_init): Remove, not for internal use.
387         (_IO_old_file_init_internal): Declare, internal replacement for
388         _IO_old_file_init.
389         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
390         internal use.
391         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
392         Declare.
393         (libio_vtable): New macro.
394         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
395         functions.
396         * libio/fileops.c (_IO_new_file_init_internal): Rename from
397         _IO_new_file_init.
398         (_IO_new_file_init): New externally visible wrapper which disables
399         vtable verification.
400         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
401         Define as vtables.
402         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
403         (_IO_init): New externally visible wrapper which disables
404         vtable verification.
405         * libio/iofdopen.c (_IO_new_fdopen): Call
406         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
407         comment.
408         * libio/iofopen.c (__fopen_internal): Call
409         _IO_new_file_init_internal instead of _IO_file_init.
410         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
411         Define as vtables.
412         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
413         _IO_new_file_init_internal instead of _IO_file_init.
414         * libio/iopopen.c (_IO_new_popen): Likewise.
415         (_IO_proc_jumps): Define as vtable.
416         * libio/iovdprintf.c (_IO_vdprintf): Call
417         _IO_new_file_init_internal instead of _IO_file_init.
418         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
419         (__open_memstream): Call _IO_init_internal instead of _IO_init.
420         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
421         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
422         _IO_old_file_init.
423         (_IO_old_file_init): New externally visible wrapper which disables
424         vtable verification.
425         (_IO_old_file_jumps): Define as vtable.
426         * libio/oldiofdopen.c (_IO_old_fdopen): Call
427         _IO_old_file_init_internal instead of _IO_old_file_init.
428         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
429         * libio/oldiopopen.c (_IO_old_popen): Likewise.
430         (_IO_old_proc_jumps): Define as vtable.
431         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
432         Define as vtables.
433         * libio/vtables.c: New file.
434         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
435         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
436         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
437         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
438         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
439         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
440         instead of _IO_init.
441
442 2016-06-23  Florian Weimer  <fweimer@redhat.com>
443
444         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
445
446 2016-06-23  Florian Weimer  <fweimer@redhat.com>
447
448         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
449         potentially unused.
450
451 2016-06-22  Florian Weimer  <fweimer@redhat.com>
452
453         * test-skeleton.c (write_message): New function.
454         * malloc/tst-mallocfork2.c (write_message): Remove.
455         * debug/tst-longjmp_chk2.c (write_indented): New function.
456         (write_message): Remove.
457         (stackoverflow_handler): Call write_indented.
458
459 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
460
461         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
462         "inexact" exceptions after fnstenv.
463         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
464         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
465         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
466
467 2015-06-22  Zack Weinberg  <zackw@panix.com>
468
469         * sysdeps/generic/bits/hwcap.h: Moved to ...
470         * bits/hwcap.h: Here.
471
472 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
473
474         * sysdeps/aarch64/memcpy.S (memcpy):
475         Further tuning for performance.
476
477 2016-06-21  Florian Weimer  <fweimer@redhat.com>
478
479         [BZ #20284]
480         * malloc/arena.c (reused_arena): Do not return NULL if we start
481         out with a non-corrupted arena.
482
483 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
484
485         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
486         * misc/tst-preadvwritev.c: New file.
487         * misc/tst-preadvwritev64.c: Likewise.
488         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
489         usage.
490         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
491         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
492         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
493         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
494
495 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
496
497         [BZ #19654]
498         * sysdeps/x86_64/fpu/Makefile: Added new tests.
499         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
500         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
501         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
502         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
503         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
504         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
505         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
506         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
507         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
508         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
509         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
510         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
511         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
512         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
513         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
514         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
515         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
516         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
517         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
518         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
519         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
520         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
521         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
522         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
523         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
524
525 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
526
527         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
528         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
529
530 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
531
532         * sysdeps/aarch64/memcpy.S (memcpy):
533         Rewrite of optimized memcpy and memmove.
534         * sysdeps/aarch64/memmove.S (memmove): Remove
535         memmove code (merged into memcpy.S).
536
537 2016-06-20  Florian Weimer  <fweimer@redhat.com>
538
539         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
540         * sysdeps/generic/dl-dtv.h: New file.
541         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
542         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
543         (dtv_t): Remove.
544         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
545         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
546         (dtv_t): Remove.
547         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
548         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
549         (dtv_t): Remove.
550         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
551         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
552         (dtv_t): Remove.
553         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
554         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
555         (dtv_t): Remove.
556         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
557         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
558         (dtv_t): Remove.
559         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
560         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
561         (dtv_t): Remove.
562         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
563         (dtv_t): Remove.
564         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
565         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
566         (dtv_t): Remove.
567         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
568         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
569         (dtv_t): Remove.
570         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
571         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
572         (dtv_t): Remove.
573         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
574         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
575         (dtv_t): Remove.
576         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
577         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
578         (dtv_t): Remove.
579         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
580         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
581         (dtv_t): Remove.
582         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
583         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
584         (dtv_t): Remove.
585         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
586         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
587         (dtv_t): Remove.
588
589 2016-06-20  Florian Weimer  <fweimer@redhat.com>
590
591         Revert symbol poisoning of  __malloc_initialize_hook.
592         * include/stdc-predef.h (__malloc_initialize_hook): Remove
593         poisoning.
594         * malloc/Makefile: Remove un-poisoning.
595         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
596         instead of old__malloc_initialize_hook.
597         * malloc/malloc-hooks.h: Likewise.
598         * malloc/malloc.c: Likewise.
599         * malloc/mcheck-init.c: Likewise.
600
601 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
602
603         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
604
605 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
606
607         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
608         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
609         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
610         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
611
612 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
613
614         * NEWS: Mention addition of nextup and nextdown.
615         * manual/arith.texi: Document nextup and nextdown.
616         * manual/libm-err-tab.pl: Add nextup and nextdown.
617         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
618         * math/Versions (libm): Add GLIBC_2.24.
619         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
620         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
621         Add new test.
622         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
623         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
624         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
625         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
626         (nextup_test_data): Likewise.
627         (nextdown_test_data): Likewise.
628         * math/s_nextdown.c: New file.
629         * math/s_nextdownf.c: Likewise.
630         * math/s_nextdownl.c: Likewise.
631         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
632         F(nextup): New function.
633         F(nextdown): Likewise.
634         * math/tgmath.h: Add nextup and nextdown.
635         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
636         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
637         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
638         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
639         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
640         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
641         Add nextup and nextdown.
642         (CFLAGS-nldbl-nextup.c): New variable.
643         (CFLAGS-nldbl-nextdown.c): Likewise.
644         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
645         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
646         * sysdeps/nacl/libm.abilist: Update.
647         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
648         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
649         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
650         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
651         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
652         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
653         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
654         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
655         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
656         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
657         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
658         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
661         Likewise.
662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
664         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
665         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
666         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
667         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
668         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
669         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
670         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
671         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
672         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
673         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
674         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
675
676 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
677
678         * manual/pattern.texi: Fix typos & grammar errors.
679
680 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
681
682         * manual/search.texi: Fix typos & grammar errors.
683
684 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
685
686         * manual/message.texi: Fix typos & grammar errors.
687
688 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
689
690         * manual/contrib.texi: Fix spelling typos.
691         * manual/crypt.texi: Likewise.
692         * manual/filesys.texi: Likewise.
693         * manual/locale.texi: Likewise.
694         * manual/message.texi: Likewise.
695         * manual/nss.texi: Likewise.
696         * manual/string.texi: Likewise.
697
698 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
699
700         * manual/locale.texi: Fix typos & grammar errors.
701
702 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
703
704         * manual/charset.texi: Fix typos & grammar errors.
705
706 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
707
708         * manual/string.texi: Fix typos.
709
710 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
711
712         * manual/ctype.texi: Fix typos.
713
714 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
715
716         * manual/memory.texi: Fix various typos & grammar errors.
717
718 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
719
720         [BZ #20255]
721         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
722         * math/libm-test.inc (fdim_test_data): Add another test.
723
724         [BZ #6796]
725         [BZ #20255]
726         [BZ #20256]
727         * math/s_fdim.c: Include <math_private.h>.
728         (__fdim): Use math_narrow_eval on result.
729         * math/s_fdimf.c: Include <math_private.h>.
730         (__fdimf): Use math_narrow_eval on result.
731         * sysdeps/i386/fpu/s_fdim.S: Remove file.
732         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
733         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
734         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
735         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
736         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
737         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
738         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
739         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
740         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
741         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
742         * math/libm-test.inc (fdim_test_data): Expect errno setting on
743         overflow.  Add sNaN tests.
744
745         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
746         fpclassify.
747         * math/s_fdimf.c (__fdimf): Likewise.
748         * math/s_fdiml.c (__fdiml): Likewise.
749
750 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
751
752         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
753         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
754         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
755         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
756         ifunc'ed strcasecmp/strncasecmp.
757         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
758         [EALIGN]: Removed.
759         [END]: Likewise.
760         [__strcasecmp]: Define instead of the above to control symbol name.
761         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
762         for __strcasecmp_power8.
763         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
764         for __strncasecmp_power8.
765         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
766         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
767         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
768         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
769         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
770         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
771
772 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
773
774         [BZ #20252]
775         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
776         arguments when second argument is a NaN.
777         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
778         qNaN tests.
779
780         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
781         (conj_test_data): Likewise.
782         (copysign_test_data): Likewise.
783         (creal_test_data): Likewise.
784         (fma_test_data): Likewise.
785         (fmod_test_data): Likewise.
786
787         [BZ #20250]
788         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
789         itself.
790         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
791         zero input to itself.
792         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
793         Likewise.
794         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
795         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
796         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
797         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
798         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
799
800 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
801
802         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
803         * nptl/tst-cancel4-common.c: New file.
804         * nptl/tst-cancel4-common.h: Likewise.
805         * nptl/tst-cancel4.c: Move common definitions to
806         tst-cancel4-common.{c,h} file.
807         * nptl/tst-cancel4_1.c: New test.
808         * nptl/tst-cancel4_2.c: New test.
809
810 2016-06-13  Florian Weimer  <fweimer@redhat.com>
811
812         [BZ #20248]
813         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
814         (write_message): New function.
815         (stackoverflow_handler): Call it instead of printf, to avoid
816         excessive stack usage by printf.
817         (do_test): Restore SIGSEGV, SIGBUS default handlers.
818
819 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
820
821         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
822         (prio_inherit_missing): Remove define.
823         * sysdeps/unix/sysv/linux/arm/kernel-features.h
824         (__ASSUME_FUTEX_LOCK_PI): Likewise.
825         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
826         Likewise.
827         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
828         (__ASSUME_FUTEX_LOCK_PI): Likewise.
829         * sysdeps/unix/sysv/linux/mips/kernel-features.h
830         (__ASSUME_FUTEX_LOCK_PI): Likewise.
831         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
832         (__ASSUME_FUTEX_LOCK_PI): Likewise.
833
834 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
835
836         [BZ #19670]
837         [BZ #19672]
838
839         * io/test-lfs.c (do_prepare): Use xmalloc.
840         * io/tst-fcntl.c (do_prepare): Likewise.
841         * libio/tst-fopenloc.c (do_bz17916): Likewise.
842         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
843         * login/tst-utmp.c (do_prepare): Likewise.
844         * posix/tst-exec.c (do_prepare): Likewise.
845         * posix/tst-pathconf.c (prepare): Likewise.
846         * posix/tst-spawn.c (do_prepare): Likewise.
847         * posix/tst-truncate.c (do_prepare): Likewise.
848         * rt/tst-aio.c (do_prepare): Likewise.
849         * rt/tst-aio64.c (do_prepare): Likewise.
850
851 2016-06-11  Florian Weimer  <fweimer@redhat.com>
852
853         [BZ #20237]
854         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
855         (get*ent): Set entidx to NULL during initialization.  If entidx is
856         NULL, start iteration from the beginning.
857
858 2016-06-11  Florian Weimer  <fweimer@redhat.com>
859
860         * malloc/malloc.c (musable): Return correct size for dumped fake
861         mmapped chunk.
862
863 2016-06-11  Florian Weimer  <fweimer@redhat.com>
864
865         [BZ #20222]
866         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
867         (_IO_cookie_write): Likewise.
868         (_IO_cookie_seek): Likewise.
869         (_IO_cookie_close): Likewise.
870         (_IO_old_cookie_seek): Likewise.
871         (set_callbacks): New function.
872         (_IO_cookie_init): Call set_callbacks to copy callbacks.
873
874 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
875
876         * locale/programs/localedef.c (oldstyle_tables): Remove.
877         * locale/programs/localedef.h (oldstyle_tables): Likewise.
878
879 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
880
881         [BZ #20240]
882         * math/Makefile (CFLAGS-s_modf.c): New variable.
883         (CFLAGS-s_modff.c): Likewise.
884         (CFLAGS-s_modfl.c): Likewise.
885         * math/libm-test.inc (modf_test_data): Add sNaN tests.
886
887 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
888
889         [BZ #20215]
890         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
891         [!__GNUC_PREREQ (3,2)]: Likewise.
892
893 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
894
895         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
896         (msghdr.msg_controllen): Likewise.
897         (cmsghdr.cmsg_len): Likewise.
898         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
899         ptw-oldsendmsg.
900         (CFLAGS-oldrecvmsg.c): Remove rule.
901         (CFLAGS-oldsendmsg.c): Likewise.
902         (CFLAGS-recvmsg.c): Add rule.
903         (CFLAGS-sendmsg.c): Likewise.
904         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
905         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
906         (CFLAGS-recvmsg.c): Remove rule.
907         (CFLAGS-sendmsg.c): Likewise.
908         (CFLAGS-oldrecvmsg.c): Likewise.
909         (CFLAGS-oldsendmsg.c): Likewise.
910         (CFLAGS-recvmmsg.c): Likewise.
911         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
912         to kernel defined interfaces.
913         (msghdr.msg_controllen): Likewise.
914         (cmsghdr.cmsg_len): Likewise.
915         (msghdr.__glibc_reserved1): Remove member.
916         (msghdr.__glibc_reserved2): Likewise.
917         (cmsghdr.__glibc_reserved1): Likewise.
918         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
919         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
920         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
921         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
922         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
923         version.
924         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
925         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
926         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
927         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
928         Remove recvmsg and sendmsg.
929         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
930         Likewise.
931         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
932         Likewise.
933         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
934         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
935         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
936         Likewise.
937         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
938         Likewise.
939         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
940         [libc] (GLIBC_2.24): Likewise.
941         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
942         Likewise.
943         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
944         Likewise.
945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
946         [libc] (GLIBC_2.24): Likewise.
947         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
948         Likewise.
949         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
950         Likewise.
951         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
952         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
953         Likewise.
954         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
955         Likewise.
956         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
957         Likewise.
958         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
959         Likewise.
960         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
961         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
962         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
963         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
964         version for {recv,send,recm,sendm}msg.
965         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
966         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
967         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
968         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
969         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
970         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
971         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
972         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
973         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
974         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
975         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
976         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
978         Likewise.
979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
980         Likewise.
981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
983         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
984         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
985         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
986         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
987         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
988         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
989         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
990         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
991         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
992         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
993         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
994
995 2016-06-10  Florian Weimer  <fweimer@redhat.com>
996
997         [BZ #19564]
998         Remove __malloc_initialize_hook from the API.
999         * malloc/malloc.h (__malloc_initialize_hook): Remove.
1000         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
1001         #pragma GCC poison.
1002         * malloc/malloc-hooks.h: New file.
1003         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
1004         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
1005         (old__malloc_initialize_hook): Rename from
1006         __malloc_initialize_hook to evade poisoning.  Turn into compat
1007         symbol.
1008         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
1009         __malloc_initialize_hook.
1010         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
1011         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
1012         * manual/memory.texi (Hooks for Malloc): Remove
1013         __malloc_initialize_hook.  Adjust hook example.
1014
1015 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
1016
1017         [BZ #20235]
1018         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
1019         itself.
1020         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1021         * math/libm-test.inc (log2_test_data): Add sNaN tests.
1022
1023         [BZ #20234]
1024         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
1025         infinity or NaN input to itself.
1026
1027         [BZ #20233]
1028         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
1029         to itself.
1030
1031         [BZ #20232]
1032         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
1033         itself.
1034
1035 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1036
1037         * sysdeps/x86_64/start.S (_start): Always indirect branch to
1038         __libc_start_main via GOT.
1039
1040 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1041
1042         * sysdeps/x86_64/memcopy.h: New file.
1043         * sysdeps/x86_64/wordcopy.c: Likewise.
1044
1045 2016-06-09  Florian Weimer  <fweimer@redhat.com>
1046
1047         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
1048         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
1049         <cstdlib>.
1050         (optimization_barrier): New.
1051         (do_test): Use it.  Call quick_exit in the global namespace.
1052         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
1053         instead of <cstdlib>, <thread>.
1054         (optimization_barrier): New.
1055         (non_main_thread): Adjust declaration.  Call optimization_barrier.
1056         Call quick_exit in the global namespace.
1057         (do_test): Call optimization_barrier.  Use pthread_create,
1058         pthread_join instead of std::thread.
1059
1060 2016-06-09  Andreas Schwab  <schwab@suse.de>
1061
1062         [BZ #19755]
1063         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
1064         new entries in auto-propagate mode.
1065         * nscd/grpcache.c (cache_addgr): Likewise.
1066
1067 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
1068
1069         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
1070         New functions.
1071         (add_temp_file): Use them.
1072
1073 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
1074
1075         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
1076
1077 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
1078
1079         [BZ #20229]
1080         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
1081         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1082         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
1083
1084         [BZ #20228]
1085         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
1086         itself.
1087         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
1088         * math/libm-test.inc (log10_test_data): Add sNaN tests.
1089
1090         [BZ #20227]
1091         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
1092         itself.
1093         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
1094         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1095         * math/libm-test.inc (log_test_data): Add sNaN tests.
1096
1097         [BZ #20226]
1098         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
1099         itself.
1100         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
1101         * math/libm-test.inc (exp_test_data): Add sNaN tests.
1102         (exp10_test_data): Likewise.
1103         (expm1_test_data): Likewise.
1104
1105         [BZ #20225]
1106         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
1107         itself.
1108         * math/s_ldexpf.c (__ldexpf): Likewise.
1109         * math/s_ldexpl.c (__ldexpl): Likewise.
1110         * math/w_scalbln.c (__w_scalbln): Likewise.
1111         * math/w_scalblnf.c (__w_scalblnf): Likewise.
1112         * math/w_scalblnl.c (__w_scalblnl): Likewise.
1113         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
1114         (scalbln_test_data): Likewise.
1115
1116         [BZ #20224]
1117         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
1118         argument to itself.
1119         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
1120
1121 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1122
1123         [BZ #19776]
1124         * sysdeps/x86_64/memcpy.S: Make it dummy.
1125         * sysdeps/x86_64/mempcpy.S: Likewise.
1126         * sysdeps/x86_64/memmove.S: New file.
1127         * sysdeps/x86_64/memmove_chk.S: Likewise.
1128         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
1129         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
1130         * sysdeps/x86_64/memmove.c: Removed.
1131         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
1132         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
1133         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
1134         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
1135         Likewise.
1136         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1137         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1138         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1139         memcpy-sse2-unaligned, memmove-avx-unaligned,
1140         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
1141         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1142         (__libc_ifunc_impl_list): Replace
1143         __memmove_chk_avx512_unaligned_2 with
1144         __memmove_chk_avx512_unaligned.  Remove
1145         __memmove_chk_avx_unaligned_2.  Replace
1146         __memmove_chk_sse2_unaligned_2 with
1147         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
1148         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
1149         with __memmove_avx512_unaligned.  Replace
1150         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
1151         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
1152         with __memcpy_chk_avx512_unaligned.  Remove
1153         __memcpy_chk_avx_unaligned_2.  Replace
1154         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
1155         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
1156         Replace __memcpy_avx512_unaligned_2 with
1157         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
1158         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
1159         with __mempcpy_chk_avx512_unaligned.  Remove
1160         __mempcpy_chk_avx_unaligned_2.  Replace
1161         __mempcpy_chk_sse2_unaligned_2 with
1162         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
1163         Replace __mempcpy_avx512_unaligned_2 with
1164         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
1165         Replace __mempcpy_sse2_unaligned_2 with
1166         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
1167         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
1168         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
1169         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
1170         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
1171         (ENTRY): Removed.
1172         (END): Likewise.
1173         (ENTRY_CHK): Likewise.
1174         (libc_hidden_builtin_def): Likewise.
1175         Don't include ../memcpy.S.
1176         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
1177         __memcpy_chk_avx512_unaligned_erms and
1178         __memcpy_chk_avx512_unaligned.  Use
1179         __memcpy_chk_avx_unaligned_erms and
1180         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1181         Default to __memcpy_chk_sse2_unaligned.
1182         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
1183         Change function suffix from unaligned_2 to unaligned.
1184         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
1185         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
1186         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
1187         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
1188         (ENTRY): Removed.
1189         (END): Likewise.
1190         (ENTRY_CHK): Likewise.
1191         (libc_hidden_builtin_def): Likewise.
1192         Don't include ../mempcpy.S.
1193         (mempcpy): New.  Add a weak alias.
1194         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
1195         __mempcpy_chk_avx512_unaligned_erms and
1196         __mempcpy_chk_avx512_unaligned.  Use
1197         __mempcpy_chk_avx_unaligned_erms and
1198         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1199         Default to __mempcpy_chk_sse2_unaligned.
1200
1201 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1202
1203         [BZ #19881]
1204         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
1205         into ...
1206         * sysdeps/x86_64/memset.S: This.
1207         (__bzero): Removed.
1208         (__memset_tail): Likewise.
1209         (__memset_chk): Likewise.
1210         (memset): Likewise.
1211         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
1212         defined.
1213         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
1214         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
1215         (__memset_zero_constant_len_parameter): Check SHARED instead of
1216         PIC.
1217         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1218         memset-avx2 and memset-sse2-unaligned-erms.
1219         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1220         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
1221         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
1222         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
1223         (__bzero): Enabled.
1224         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
1225         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
1226         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
1227         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
1228         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
1229         (memset): Removed.
1230         (__memset_chk): Likewise.
1231         (MEMSET_SYMBOL): New.
1232         (libc_hidden_builtin_def): Replace __memset_sse2 with
1233         __memset_sse2_unaligned.
1234         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
1235         __memset_chk_sse2 and __memset_chk_avx2 with
1236         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
1237         Use __memset_chk_sse2_unaligned_erms or
1238         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
1239         __memset_chk_avx512_unaligned_erms and
1240         __memset_chk_avx512_unaligned.
1241
1242 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1243
1244         * math/gen-auto-libm-test.c (fp_format_desc): remove
1245         suffix member.
1246         (output_generic_value): Remove usage of suffix member,
1247         and the resulting unuse of the fp_format argument.
1248         (output_for_one_input_case): Remove unused fp_format
1249         parameter.
1250
1251         * math/auto-libm-test-out: Regenerate.
1252
1253         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
1254         usage with TEST_COND_ibm128.
1255         (TEST_COND_flt_32): Remove.
1256         (TEST_COND_dbl_64): Remove.
1257         (TEST_COND_ldbl_96_intel): Remove.
1258         (TEST_COND_ldbl_96_m68k): Remove.
1259         (TEST_COND_ldbl_128): Remove.
1260
1261 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1262
1263         * auto-libm-test-in:
1264         Replace flt-32 usage with binary32.
1265         Replace dbl-64 usage with binary64.
1266         Replace ldbl-intel-96 usage with intel96.
1267         Replace ldbl-m68k-96 usage with m68k96.
1268         Replace ldbl-128ibm usage with ibm128.
1269         Replace ldbl-128 usage with binary128.
1270
1271         * auto-libm-test-out: Regenerate.
1272
1273 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1274
1275         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
1276         (parse_ulps): Dynamically generate type name matching
1277         string from all_floats.
1278         (get_ulps): Generate the ulps as an array instead.
1279         (output_ulps): Dynamically compose the type based
1280         on the number of supported formats, and print
1281         the indices as type specific helper macros.
1282
1283         * math/libm-test.inc: Remove comment about CHOOSE.
1284         (ulp_data): Generate the type in libm-test-ulps.h.
1285         (ULP_IDX): New macro.
1286         (find_ulps): Update usage of max_ulp.
1287
1288         * math/test-double-vlen2.h (CHOOSE): Remove.
1289         * math/test-double-vlen4.h (CHOOSE): Likewise.
1290         * math/test-double-vlen8.h (CHOOSE): Likewise.
1291         * math/test-float.c (CHOOSE): Likewise.
1292         * math/test-float-finite.c (CHOOSE): Likewise.
1293         * math/test-double.c (CHOOSE): Likewise.
1294         * math/test-double-finite.c (CHOOSE): Likewise.
1295         * math/test-idouble.c (CHOOSE): Likewise.
1296         * math/test-ifloat.c (CHOOSE): Likewise.
1297         * math/test-ildoubl.c (CHOOSE): Likewise.
1298         * math/test-ldouble-finite.c (CHOOSE): Likewise.
1299         * math/test-ldouble.c (CHOOSE): Likewise.
1300
1301         * math/test-float.h (TEST_FLOAT): Remove.
1302         * math/test-double.h (TEST_DOUBLE): Likewise.
1303         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
1304
1305 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1306
1307         * math/gen-libm-test.pl: (apply_lit): New subroutine.
1308         (parse_args): Strip C suffix from floating point literals
1309         typed with 'f' and wrap them with LIT().
1310
1311         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
1312         (test_ff_f_data_nexttoward): Rename to
1313         (test_fj_f_data): New struct.
1314         (nexttoward_test_data): Relabel tests as
1315         TEST_fj_f instead of TEST_ff_f.
1316
1317 2016-06-08  Florian Weimer  <fweimer@redhat.com>
1318
1319         Emacs bug 23726.
1320         * malloc/malloc.c (dumped_main_arena_start): Update comment.
1321         (__libc_realloc): Correct size computation for dumped fake mmapped
1322         chunks.
1323
1324 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
1325
1326         [BZ #20219]
1327         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
1328         to itself.
1329         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
1330
1331         [BZ #20218]
1332         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
1333         to itself.
1334         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
1335
1336 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1337
1338         [BZ #20195]
1339         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
1340         check to ...
1341         (init_cpu_features): Here.
1342
1343 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
1344
1345         [BZ #20214]
1346         * sysdeps/unix/sysv/linux/bits/in.h
1347         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1348          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
1349         Define to 1.
1350         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1351          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
1352         Define to 0.
1353         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
1354         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
1355
1356 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
1357
1358         [BZ #20198]
1359         * stdlib/Makefile (tests): Add tst-quick_exit, and
1360         tst-thread-quick_exit.
1361         [ifeq ($(have-cxx-thread_local),yes)]
1362         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
1363         (CFLAGS-tst-thread-quick_exit.o): Likewise.
1364         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
1365         (LDLIBS-tst-thread-quick_exit): Likewise.
1366         [ifneq ($(have-cxx-thread_local),yes)]
1367         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
1368         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
1369         If run_dtors is true call __call_tls_dtors.
1370         (exit): Call __run_exit_handlers with run_dtors set to true.
1371         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
1372         definition.
1373         * stdlib/quick_exit.c (quick_exit): Remove function.
1374         (__new_quick_exit): New function.
1375         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
1376         function.
1377         * stdlib/tst-quick_exit.cc: New file.
1378         * stdlib/tst-thread-quick_exit.cc: New file.
1379         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
1380         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
1381         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
1382         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
1383         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
1384         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
1385         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
1386         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
1387         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
1388         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
1389         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
1390         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
1391         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
1392         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
1393         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
1394         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
1396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
1397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
1398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
1399         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
1400         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
1401         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
1402         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
1403         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
1404         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
1405         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
1406         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
1407         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
1408         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
1409
1410 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1411
1412         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
1413         a typo in comments.
1414
1415 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1416
1417         [BZ #20213]
1418         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
1419         argument to itself.
1420         * math/libm-test.inc (asin_test_data): Add sNaN tests.
1421
1422 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1423
1424         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
1425         required flags.
1426         (CFLAGS-pwritev64.c): Likewise.
1427         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
1428         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
1429         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
1430         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1431         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
1432         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
1433         syscall from auto-generation.
1434         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
1435         [WORDSIZE == 64] (pwritev64): Remove macro.
1436         [!PWRITEV] (PWRITEV): Likewise.
1437         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1438         [!PWRITEV] (PWRITE): Likewise.
1439         [!PWRITEV] (OFF_T): Likewise.
1440         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1441         (LO_HI_LONG): Remove macro.
1442         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1443         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1444         (PWRITEV): Remove macro.
1445         (PWRITEV_REPLACEMENTE): Likewise.
1446         (PWRITE): Likewise.
1447         (OFF_T): Likewise.
1448         (pwritev64): New function.
1449         * nptl/tst-cancel4.c (tf_writev): Add test.
1450
1451         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1452         required flags.
1453         (CFLAGS-preadv64.c): Likewise.
1454         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1455         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1456         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1457         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1458         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1459         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1460         syscall from auto-generation.
1461         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1462         [WORDSIZE == 64] (preadv64): Remove macro.
1463         [!PREADV] (PREADV): Likewise.
1464         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1465         [!PREADV] (PREAD): Likewise.
1466         [!PREADV] (OFF_T): Likewise.
1467         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1468         (LO_HI_LONG): Remove macro.
1469         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1470         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1471         (PREADV): Remove macro.
1472         (PREADV_REPLACEMENTE): Likewise.
1473         (PREAD): Likewise.
1474         (OFF_T): Likewise.
1475         (preadv64): New function.
1476         * nptl/tst-cancel4.c (tf_preadv): Add test.
1477
1478 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1479
1480         [BZ #20212]
1481         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1482         argument to itself.
1483         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1484
1485 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1486
1487         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1488         New symbol defined as libc_hidden_def.
1489         (strcasestr): Became a weak alias to __strcasestr.
1490         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1491         according to multi-arch support.  Move __stpncpy hidden
1492         definition from here to...
1493         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1494         symbol stpncpy.
1495         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1496         libc_hidden_builtin_def.
1497         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1498         memset symbol to use when multi-arch support is available.
1499
1500 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1501
1502         * dlfcn/tst-rec-dlopen.c: Include string.h.
1503
1504 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1505
1506         * manual/install.texi: Remove mention of --without-tls
1507         * INSTALL: Regenerate.
1508
1509 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1510
1511         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1512         Remove.
1513         (call_function, interposed_malloc_called): New variables.
1514         (malloc): New function.
1515         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1516         and clear call_function as needed.
1517
1518 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1519
1520         * include/wchar.h (__wmemset): Use __typeof.
1521
1522 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1523
1524         * include/wchar.h (__wmemset): Declare function without typeof.
1525
1526 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1527
1528         [BZ #20205]
1529         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1530         exponent when incrementing negative subnormal with low mantissa
1531         word zero.
1532         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1533         Add another test.
1534
1535 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1536
1537         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1538         __wmemset instead of wmemset.
1539
1540 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1541
1542         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1543         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1544         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1545         __USE_KERNEL_IPV6_DEFS to 0.
1546         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1547         Update comment.
1548
1549 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1550
1551         [BZ #19861]
1552         Do not use IFUNC resolver with potentially unrelocated symbol.
1553         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1554         (DEFINE_FORK): Remove macro and inline definition.
1555         (fork_alias): Renamed from fork_ifunc.
1556         (__fork_alias): Renamed from __fork_ifunc.
1557
1558 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1559
1560         [BZ 19653]
1561         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1562         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1563
1564 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1565
1566         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1567         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1568         i386-linux-gnu).
1569         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1570         Set to no.
1571         * sysdeps/mach/hurd/configure: Refresh.
1572
1573 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1574
1575         [BZ #20178]
1576         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1577         on failure instead of exit.
1578
1579 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1580
1581         [BZ #3629]
1582         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1583         of POSIX.1-2008.
1584
1585 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1586
1587         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1588           Use PLT entry for calling _hurd_self_sigstate.
1589
1590 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1591
1592         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1593         available logical processors with SMT level type sharing L2
1594         cache for Intel processors.
1595
1596 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1597
1598         [BZ #20160]
1599         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1600         argument to itself before returning the result.
1601         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1602         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1603         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1604         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1605         Likewise.
1606         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1607         Likewise.
1608         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1609         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1610         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1611         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1612         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1613         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1614
1615         [BZ #20160]
1616         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1617         argument to itself before returning the result.
1618         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1619         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1620         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1621         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1622         Likewise.
1623         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1624         Likewise.
1625         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1626         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1627         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1628         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1629         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1630         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1631
1632 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1633
1634         * libm-test.inc: Replace usage of M_El with
1635         (lit_e): New macro.
1636
1637 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1638
1639         * libm-test.inc: Replace usage of M_PI_4l with
1640         (lit_pi_4_d): New macro.
1641
1642 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1643
1644         * libm-test.inc: Replace usage of M_PIl with
1645         (lit_pi): New macro.
1646
1647 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1648
1649         * libm-test.inc: Replace usage of M_PI2l with
1650         (lit_pi_2_d): New macro.
1651
1652         * math/test-double.h (LITM): New macro.
1653         * math/test-float.h (LITM): Likewise.
1654         * math/test-ldouble.h (LITM): Likewise.
1655
1656 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1657
1658         * libm-test.inc (M_PI_34l): Rename to
1659         (lit_pi_3_m_4_d): New Macro.
1660         (M_PI_34_LOG10El): Rename to
1661         (lit_pi_3_m_4_ln10_m_d): New Macro.
1662         (M_PI2_LOG10El): Rename to
1663         (lit_pi_2_ln10_m_d):  New Macro.
1664         (M_PI4_LOG10El): Rename to
1665         (lit_pi_4_ln10_m_d):  New Macro.
1666         (M_PI_LOG10El): Rename to
1667         (lit_pi_ln10_d):  New Macro.
1668
1669 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1670
1671         [BZ #20157]
1672         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1673         determine whether to negate low half if [_ARCH_PPCGR], and integer
1674         comparison otherwise.
1675         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1676         determine whether to negate low half.
1677
1678         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1679         (NO_TEST_INLINE_DOUBLE): Likewise.
1680         (TEST_COND_x86_64): Likewise.
1681         (TEST_COND_x86): Likewise.
1682         (M_PI_6l): Likewise.
1683
1684 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1685
1686         * math/libm-test.inc:
1687         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1688         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1689         (TEST_LDOUBLE): Update usage to evaluate as true if
1690         the guarded tests match the property being tested.
1691         (LDBL_MAX_EXP): Change to MAX_EXP.
1692         (LDBL_MIN_EXP): Change to MIN_EXP.
1693         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1694         nexttoward tests.
1695
1696 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1697
1698         * math/libm-test.inc:
1699         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1700         (TYPE_MIN): Likewise.
1701         (TYPE_TRUE_MIN): Likewise.
1702         (TYPE_MAX): Likewise.
1703         (MIN_EXP): Likewise.
1704         (MAX_EXP): Likewise.
1705         (MANT_DIG): Likewise.
1706
1707         (FSTR_MAX): New macro.
1708         (__CONCATX): Likewise.
1709         (QTYPE_STR): Likewise.
1710         (TEST_COND_binary32): Likewise.
1711         (TEST_COND_binary64): Likewise.
1712         (TEST_COND_binary128): Likewise.
1713         (TEST_COND_ibm128): Likewise.
1714         (TEST_COND_intel96): Likewise.
1715         (TEST_COND_m68k96): Likewise.
1716
1717         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1718         (TEST_COND_dbl_64): Likewise.
1719         (TEST_COND_ldbl_96_intel): Likewise.
1720         (TEST_COND_ldbl_96_m68k): Likewise.
1721         (TEST_COND_ldbl_128): Likewise.
1722         (TEST_COND_ldbl_128ibm): Likewise.
1723
1724         (plus_zero): Redefine using LIT macro.
1725         (minus_zero): Likewise.
1726         (plus_infty): Redefine as (INF).
1727         (minux_infty): Redefine as (-INF).
1728         (max_value): Redefine as TYPE_MAX.
1729         (min_value): Redefine as TYPE_MIN.
1730         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1731
1732         (print_float): Refactor to use snprintf to convert FLOAT values
1733         to string. This brings it closer to dropin replacement of strtof
1734         for the TS 18661 defined types.
1735         (update_stats): Likewise.
1736         (print_complex_function_ulps): Likewise.
1737         (print_max_error): Likewise.
1738         (print_complex_max_error): Likewise.
1739         (check_float_internal): Likewise.
1740
1741         * math/test-float.h (PREFIX): New macro.
1742         (LIT): Likewise.
1743         (TYPE_STR): Likewise.
1744         (FTOSTR): Likewise.
1745
1746         * math/test-double.h (PREFIX): New macro.
1747         (LIT): Likewise.
1748         (TYPE_STR): Likewise.
1749         (FTOSTR): Likewise.
1750
1751         * math/test-ldouble.h (PREFIX): New macro.
1752         (LIT): Likewise.
1753         (TYPE_STR): Likewise.
1754         (FTOSTR): Likewise.
1755
1756 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1757
1758         [BZ #20156]
1759         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1760         to itself when zero or not finite.
1761         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1762         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1763         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1764         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1765
1766 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1767
1768         [BZ #20153]
1769         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1770         x * x + x for infinities and NaNs.
1771
1772         [BZ #20151]
1773         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1774         argument to itself before returning result.
1775         (__ieee754_y0l): Likewise.
1776         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1777         (__ieee754_y1l).
1778
1779         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1780         (atan_test_data): Likewise.
1781         (ceil_test_data): Likewise.
1782         (cos_test_data): Likewise.
1783         (cosh_test_data): Likewise.
1784         (erf_test_data): Likewise.
1785         (exp2_test_data): Likewise.
1786         (fabs_test_data): Likewise.
1787         (floor_test_data): Likewise.
1788         (ilogb_test_data): Likewise.
1789         (j0_test_data): Likewise.
1790         (j1_test_data): Likewise.
1791         (jn_test_data): Likewise.
1792         (lgamma_test_data): Likewise.
1793         (lrint_test_data): Likewise.
1794         (llrint_test_data): Likewise.
1795         (logb_test_data): Likewise.
1796         (lround_test_data): Likewise.
1797         (llround_test_data): Likewise.
1798         (nearbyint_test_data): Likewise.
1799         (rint_test_data): Likewise.
1800         (round_test_data): Likewise.
1801         (sin_test_data): Likewise.
1802         (sincos_test_data): Likewise.
1803         (sinh_test_data): Likewise.
1804         (sqrt_test_data): Likewise.
1805         (tan_test_data): Likewise.
1806         (tanh_test_data): Likewise.
1807         (tgamma_test_data): Likewise.
1808         (trunc_test_data): Likewise.
1809         (y0_test_data): Likewise.
1810         (y1_test_data): Likewise.
1811         (yn_test_data): Likewise.
1812
1813         * math/libm-test.inc: Update comment about NaN testing.
1814         (TEST_SNAN): New macro.
1815         (snan_value): Likewise.
1816         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1817         (fpclassify_test_data): Add sNaN tests.
1818         (isfinite_test_data): Likewise.
1819         (isinf_test_data): Likewise.
1820         (isnan_test_data): Likewise.
1821         (isnormal_test_data): Likewise.
1822         (issignaling_test_data): Likewise.
1823         (signbit_test_data): Likewise.
1824         * math/gen-libm-test.pl (%beautify): Add snan_value.
1825         (show_exceptions): Add argument $test_snan.
1826         (parse_args): Handle snan_value as non-finite.  Update call to
1827         show_exceptions.
1828         * math/Makefile (libm-test-no-inline-cflags): Add
1829         -fsignaling-nans.
1830
1831 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1832
1833         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1834         (CFLAGS-oldsendmsg.c): Add rule.
1835         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1836         Correct recvmsg symbol name.
1837         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1838         Likewise.
1839
1840 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1841
1842         * sysdeps/unix/sysv/linux/Makefile
1843         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1844         oldsendmmsg.
1845         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1846         sendmmsg.
1847         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1848         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1849         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1850         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1852         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1853         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1854         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1855         Likewise.
1856         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1857         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1858         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1859         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1860         iovlen and controllen fields to adjust to POSIX specification.
1861         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1862
1863         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1864         and change to correct expected type.
1865         (msghdr.msg_controllen): Likewise.
1866         (cmsghdr.cmsg_len): Likewise.
1867         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1868         expected POSIX assumption about the size.
1869         (msghdr.msg_controllen): Likewise.
1870         (msghdr.__glibc_reserved1): Likewise.
1871         (msghdr.__glibc_reserved2): Likewise.
1872         (cmsghdr.cmsg_len): Likewise.
1873         (cmsghdr.__glibc_reserved1): Likewise.
1874         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1875         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1876         (CFLAGS-sendmsg.c): Remove rule.
1877         (CFLAGS-recvmsg.c): Likewise.
1878         (CFLAGS-oldsendmsg.c): Add rule.
1879         (CFLAGS-oldrecvmsg.c): Likewise.
1880         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1881         recvmsg and sendmsg.
1882         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1883         Likewise.
1884         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1885         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1886         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1887         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1888         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1889         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1890         Likewise.
1891         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1892         Likewise.
1893         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1894         Likewise.
1895         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1896         Likewise.
1897         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1898         Likewise.
1899         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1900         Likewise.
1901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1902         (GLIBC_2.24): Likewise.
1903         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1904         Likewise.
1905         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1906         Likewise.
1907         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1908         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1909         Likewise.
1910         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1911         Likewise.
1912         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1913         Likewise.
1914         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
1915         (GLIBC_2.24): Likewise.
1916         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
1917         Likewise.
1918         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
1919         Likewise.
1920         * sysdeps/unix/sysv/linux/Makefile
1921         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
1922         (CFLAGS-sendmsg.c): Add rule.
1923         (CFLAGS-recvmsg.c): Likewise.
1924         (CFLAGS-oldsendmsg.c): Likewise.
1925         (CFLAGS-oldrecvmsg.c): Likewise.
1926         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
1927         initialization.
1928         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
1929         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
1930         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
1931         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1932         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
1933         iovlen and controllen fields to adjust to POSIX specification.
1934         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
1935         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
1936         added recvmsg and sendmsg.
1937         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1938         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1939         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1940         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1941         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1942         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1943         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1944         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1945         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1946         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1947         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1948         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1950         Likewise.
1951         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1953         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1954         Likewise.
1955         Likewise.
1956         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1957         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1958         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1959         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1960         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1961         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1962         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1963         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1964         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1965         Likewise.
1966         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1967         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1968
1969         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
1970         from auto-generation.
1971         (sendmsg): Likewise.
1972         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
1973         (sendmsg): Likewise.
1974         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
1975         (sendmsg): Likewise.
1976         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
1977         (sendmsg): Likewise.
1978         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
1979         (sendmsg): Likewise.
1980         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
1981         (sendmsg): Likewise.
1982         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
1983         Likewise.
1984         (sendmsg): Likewise.
1985         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
1986         (sendmsg): Likewise.
1987         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1988         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1989         Remove.
1990         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1991         Likewise.
1992         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
1993         Undefine.
1994         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
1995         Likewise.
1996         * sysdeps/unix/sysv/linux/kernel-features.h
1997         (__ASSUME_SENDMSG_SYSCALL): Define.
1998         (__ASSUME_RECVMSG_SYSCALL): Likewise.
1999         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2000         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2001         Remove.
2002         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2003         Likewise.
2004         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2005         Undefine.
2006         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2007         Likewise.
2008         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2009         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2010         Remove.
2011         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2012         Likewise.
2013         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2014         Undefine.
2015         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2016         Likewise.
2017         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2018         (__ASSUME_SENDMSG_SYSCALL): Undefine.
2019         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2020         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2021         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2022         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2023         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2024         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2025         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2026
2027 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2028
2029         * stdlib/gen-tst-strtod-round.c: Add backslash to
2030         compile command in comment.
2031         (printfp): Remove the literal suffix, and define an infinite
2032         value as INF to avoid expansion clash with INFINITY.
2033         (round_str): Remove the literal suffix.
2034         (round_for_all): Likewise, remove the now duplicate ldbl-64
2035         entry, and remove some magic constants.
2036
2037         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
2038         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
2039         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
2040         (_CONCAT): New macro.
2041         (CONCAT): Likewise.
2042         (CHOOSE_ld): Likewise.
2043         (CHOOSE_f): Likewise.
2044         (CHOOSE_d): Likewise.
2045         (FTYPE_MEMBER): Likewise.
2046         (BOOL_MEMBER): Likewise.
2047         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
2048         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
2049         (_XNTRY): Likewise.
2050         (XNTRY): Likewise.
2051         (_ENTRY): Likewise.
2052         (ENTRY): Likewise.
2053         (test_exactness): Generate members via macro.
2054         (test_results): Likewise.
2055         (test): Update members.
2056         (TEST): Redefine using new macros.
2057         (INF): New macro.
2058         (fetestmodes): New structure.
2059         (do_test): Refactor to be type generic.
2060         (test_in_one_mode): Refactor duplicate code into
2061         (GEN_ONE_TEST): New macro.
2062
2063         * stdlib/tst-strtod-round-data.h: Regenerate.
2064
2065         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
2066         Extend to pass additional arbitrary parameters to
2067         generators.
2068
2069 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
2070
2071         [BZ #15479]
2072         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
2073         floating-point state after first floating-point operation on
2074         input.  Restore full floating-point state instead of just rounding
2075         mode.
2076         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
2077         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
2078         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
2079         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
2080         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
2081
2082         [BZ #15479]
2083         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
2084         floating-point state after first floating-point operation on
2085         input.  Restore full floating-point state instead of just rounding
2086         mode.
2087         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
2088         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
2089         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
2090         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
2091         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
2092
2093 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2094
2095         [BZ #19727]
2096         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
2097         valid high surrogate.
2098         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
2099         of an utf16 surrogate.
2100         * iconv/gconv_simple.c (BODY): Likewise.
2101         * iconvdata/bug-iconv12.c: New file.
2102         * iconvdata/Makefile (tests): Add bug-iconv12.
2103
2104 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2105
2106         [BZ #19726]
2107         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
2108         outptrp in case of an illegal input.
2109         * iconv/tst-iconv6.c: New file.
2110         * iconv/Makefile (tests): Add tst-iconv6.
2111
2112 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2113
2114         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
2115         an error in case of a value in range of an utf16 low surrogate.
2116
2117 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2118
2119         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
2120         an error in case of a value in range of an utf16 low surrogate.
2121
2122 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2123
2124         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
2125         Move to ...
2126         * sysdeps/s390/Makefile: ... here.
2127         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
2128         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
2129         (BRANCH_ON_COUNT): New define.
2130         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
2131         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
2132         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
2133         run on s390-32, too.
2134         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
2135         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
2136         run on s390-32, too.
2137         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
2138         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
2139         run on s390-32, too.
2140
2141 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2142
2143         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
2144         etf3eh or new vector loop-variant.
2145
2146 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2147
2148         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
2149         etf3eh or new vector loop-variant.
2150
2151 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2152
2153         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
2154         or new vector loop-variant.
2155
2156 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2157
2158         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
2159         Rename to TR_LOOP and usage of tr instead of troo instruction.
2160
2161 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2162
2163         * sysdeps/s390/multiarch/gconv_simple.c: New File.
2164         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
2165
2166 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2167
2168         * sysdeps/s390/multiarch/8bit-generic.c: New File.
2169         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
2170         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
2171         New override define.
2172         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
2173
2174 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2175
2176         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
2177         * sysdeps/s390/configure.ac: Add test for S390 vector register
2178         support in gcc.
2179         * sysdeps/s390/configure: Regenerated.
2180
2181 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2182
2183         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
2184         Install file from $(objpfx)gconv-modules.
2185         ($(objpfx)gconv-modules): Concatenate architecture specific file
2186         in variable sysdeps-gconv-modules and gconv-modules in src dir.
2187         * sysdeps/s390/gconv-modules: New file.
2188         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
2189         Deleted.
2190         ($(objpfx)gconv-modules-s390): Deleted.
2191         (sysdeps-gconv-modules): New variable.
2192
2193 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2194
2195         [BZ #15479]
2196         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
2197         of immediate operand to rounding instruction.
2198         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
2199         Likewise.
2200         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
2201         Likewise.
2202         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
2203         Likewise.
2204
2205 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2206
2207         * math/libm-test.inc (MIN_EXP): Directly define as
2208         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
2209
2210 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2211
2212         * math/libm-test.inc (MANT_DIG): Directly define as
2213         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
2214
2215 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2216
2217         * stdlib/gen-tst-strtod-round.c (main):
2218           Change usage to more closely match the generated
2219           output.  Add usage and compilation instructions.
2220           (string_to_fp): Add and use FILE* parameter as
2221           output target.
2222           (print_fp): Likewise.
2223           (round_str): Likewise.
2224           (round_for_all): Likewise.
2225         * stdlib/tst-strtod-round.c (tests): Move into
2226         * stdlib/tst-strtod-round-data.h: New file.
2227
2228 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2229
2230         [BZ #15479]
2231         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
2232         (__round): Do not force "inexact" exception.
2233         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
2234         variable.
2235         (__round): Do not force "inexact" exception.
2236         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
2237         (__roundf): Do not force "inexact" exception.
2238         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
2239         (__roundl): Do not force "inexact" exception.
2240         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
2241         (__roundl): Do not force "inexact" exception.
2242         * math/libm-test.inc (round_test_data): Do not allow spurious
2243         "inexact" exceptions.
2244
2245         [BZ #15479]
2246         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
2247         exception in comment.
2248         (huge): Remove variable.
2249         (__floor): Do not force "inexact" exception.
2250         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
2251         "inexact" exception in comment.
2252         (huge): Remove variable.
2253         (__floor): Do not force "inexact" exception.
2254         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
2255         exception in comment.
2256         (huge): Remove variable.
2257         (__floorf): Do not force "inexact" exception.
2258         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
2259         exception in comment.
2260         (huge): Remove variable.
2261         (__floorl): Do not force "inexact" exception.
2262
2263         [BZ #15479]
2264         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
2265         exception in comment.
2266         (huge): Remove variable.
2267         (__ceil): Do not force "inexact" exception.
2268         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
2269         "inexact" exception in comment.
2270         (huge): Remove variable.
2271         (__ceil): Do not force "inexact" exception.
2272         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
2273         (__ceilf): Do not force "inexact" exception.
2274         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
2275         exception in comment.
2276         (huge): Remove variable.
2277         (__ceill): Do not force "inexact" exception.
2278
2279 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2280
2281         * config.h.in (BIND_NOW): New.
2282         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
2283         * configure: Regenerated.
2284         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
2285         indirect branch via the GOT slot.
2286
2287 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2288
2289         [BZ #19765]
2290         * sysdeps/s390/mempcpy.S: New File.
2291         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2292         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
2293         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2294         Add mempcpy variants.
2295         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
2296         (memcpy): Adjust to be usable from mempcpy entry point.
2297         (__memcpy_mvcle): Likewise.
2298         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2299         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
2300         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
2301         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
2302         (__memcpy_z10): Likewise.
2303         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2304
2305 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2306
2307         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
2308         Remove __GI_ symbol.
2309         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
2310         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
2311         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
2312         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2313         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
2314         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
2315
2316 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2317
2318         * sysdeps/s390/s390-64/memcpy.S (memcpy):
2319         Use cghi instead of chi to compare 64bit value.
2320
2321 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2322
2323         * sysdeps/s390/s390-32/memcpy.S (memcpy):
2324         Jump to 1MB check before executing mvc-loop.
2325
2326 2016-05-24  Florian Weimer  <fweimer@redhat.com>
2327
2328         [BZ #6527]
2329         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
2330         unconditionally.
2331         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
2332
2333 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2334
2335         * stdlib/tst-strtod6.c (do_test): Use new type generic
2336         invocation of the test function.
2337         (test): Refactor into ...
2338         (TEST_STRTOD): New macro base function.
2339
2340 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2341
2342         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
2343         (TEST_STRTOD): New macro.
2344         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
2345
2346 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2347
2348         * stdlib/tst-strtod6.c (do_test): Use new type generic
2349         invocation of the test function.
2350         (test): Refactor into ...
2351         (TEST_STRTOD): New macro base function.
2352
2353 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2354
2355         CVE-2016-4429
2356         [BZ #20112]
2357         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
2358         payload.
2359
2360 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2361
2362         [BZ #20111]
2363         * bits/sockaddr.h (_SS_SIZE): Define.
2364         * bits/socket.h (_SS_SIZE): Remove.
2365         (_SS_PADSIZE): Adjust to account for all padding.
2366         (struct sockaddr_storage): Update comment.  Avoid implicit
2367         padding.
2368         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
2369         (_SS_PADSIZE): Adjust to account for all padding.
2370         (struct sockaddr_storage): Update comment.  Avoid implicit
2371         padding.
2372         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
2373         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
2374         (_SS_PADSIZE): Adjust to account for all padding.
2375         (struct sockaddr_storage): Update comment.  Avoid implicit
2376         padding.
2377         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
2378         __SS_SIZE is 126 in this version.
2379         * inet/tst-sockaddr.c: New file.
2380         * inet/Makefile (tests): Add tst-sockaddr.c
2381         (tst-sockaddr.c): Compile with non-strict aliasing.
2382
2383 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
2384
2385         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
2386         [XPG3 || XPG4].
2387         (NL_ARGMAX): Also expect for [XPG3].
2388         (NL_LANGMAX): Likewise.
2389         (NL_MSGMAX): Likewise.
2390         (NL_NMAX): Likewise.
2391         (NL_SETMAX): Likewise.
2392         (NL_TEXTMAX): Likewise.
2393         (NZERO): Likewise.
2394         (TMP_MAX): Likewise.
2395         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
2396         variable.
2397
2398         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
2399         (PF_MAX): Update value.
2400         (AF_KCM): New macro.
2401         (SOL_NETBEUI): Likewise.
2402         (SOL_LLC): Likewise.
2403         (SOL_DCCP): Likewise.
2404         (SOL_NETLINK): Likewise.
2405         (SOL_TIPC): Likewise.
2406         (SOL_RXRPC): Likewise.
2407         (SOL_PPPOL2TP): Likewise.
2408         (SOL_BLUETOOTH): Likewise.
2409         (SOL_PNPIPE): Likewise.
2410         (SOL_RDS): Likewise.
2411         (SOL_IUCV): Likewise.
2412         (SOL_CAIF): Likewise.
2413         (SOL_ALG): Likewise.
2414         (SOL_NFC): Likewise.
2415         (SOL_KCM): Likewise.
2416         (MSG_BATCH): New enum value and macro.
2417
2418 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2419
2420         [BZ #18185]
2421         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
2422         sharing L2 cache to 2 for Knights Landing.
2423
2424 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
2425
2426         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
2427         (FTW_DP): Do not expect for [XPG3 || XPG4].
2428         (FTW_SL): Do not expect for [XPG3].
2429         (FTW_SLN): Likewise.
2430         (FTW_PHYS): Likewise.
2431         (FTW_MOUNT): Likewise.
2432         (FTW_DEPTH): Likewise.
2433         (FTW_CHDIR): Likewise.
2434         (nftw): Likewise.
2435         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
2436         variable.
2437
2438 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2439
2440         * manual/errno.texi: Fix various typos & grammar errors.
2441
2442 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2443
2444         * manual/intro.texi: Fix duplicated typo.
2445
2446 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2447
2448         [BZ #13304]
2449         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2450         <float.h>, <math_private.h> and <stdlib.h>.
2451         (add_split): New function.
2452         (mul_split): Likewise.
2453         (ext_val): New typedef.
2454         (store_ext_val): New function.
2455         (mul_ext_val): New function.
2456         (compare): New function.
2457         (add_split_ext): New function.
2458         (__fmal): After checking for Inf, NaN and zero, compute result as
2459         an exact sum of scaled double values in round-to-nearest before
2460         adding those up and adjusting for other rounding modes.
2461         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2462         tests of fma.
2463         * math/auto-libm-test-out: Regenerated.
2464
2465 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2466
2467         [BZ #20119]
2468         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2469         processor level type mask for CPUID with EAX == 11.
2470
2471 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2472
2473         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2474         logical threads if the HTT bit is 0.
2475         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2476         (index_cpu_HTT): Likewise.
2477         (reg_HTT): Likewise.
2478
2479 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2480
2481         [BZ #20115]
2482         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2483         Remove alignments on jump targets.
2484
2485 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2486
2487         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2488         (getpwent): Likewise.
2489         (setpwent): Likewise.
2490         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2491         variable.
2492
2493         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2494         (remque): Likewise.
2495         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2496         variable.
2497
2498 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2499
2500         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2501         not being tested.
2502
2503 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2504
2505         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2506         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2507         call.
2508         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2509         (__condvar_cleanup1): Likewise.
2510
2511 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2512
2513         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2514         New
2515         (__pthread_unwind): Renamed to ...
2516         (PTHREAD_UNWIND): This.
2517         (__pthread_enable_asynccancel): Replace
2518         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2519
2520 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2521
2522         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2523         (CLONE_NEWCGROUP): New macro.
2524
2525         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2526         (Q_GETNEXTQUOTA): New macro.
2527
2528 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2529
2530         [BZ #19907]
2531         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2532         buffer updated by the previous run.
2533         * string/test-memcpy.c (do_one_test): Likewise.
2534         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2535         * string/test-memmove.c (do_one_test): Likewise.
2536
2537 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2538
2539         [BZ #20094]
2540         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2541         not [__USE_XOPEN].
2542         (unlockpt): Likewise.
2543         (ptsname): Likewise.
2544         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2545         variable.
2546
2547         [BZ #20076]
2548         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2549         instead of [__USE_UNIX98].
2550         (S_ISSOCK): Likewise.
2551         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2552         variable.
2553
2554         [BZ #20074]
2555         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2556         [__USE_POSIX].
2557         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2558         variable.
2559
2560         [BZ #20051]
2561         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2562         (ttyslot): Do not declare.
2563         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2564         (ttyslot): New prototype.
2565         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2566         variable.
2567         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2568
2569 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2570
2571         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2572
2573 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2574
2575         Fix race condition in tst-mallocfork2, use fewer resources.
2576         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2577         to current process group.
2578         (signal_sender): Yield in the non-sleeping case.
2579
2580 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2581
2582         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2583         (ecvt): Likewise.
2584         (fcvt): Likewise.
2585         (gcvt): Likewise.
2586         (getsubopt): Likewise.
2587         (grantpt): Likewise.
2588         (initstate): Likewise.
2589         (l64a): Likewise.
2590         (mktemp): Likewise.
2591         (mkstemp): Likewise.
2592         (ptsname): Likewise.
2593         (random): Likewise.
2594         (realpath): Likewise.
2595         (setstate): Likewise.
2596         (srandom): Likewise.
2597         (ttyslot): Likewise.
2598         (unlockpt): Likewise.
2599         (valloc): Likewise.
2600
2601         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2602         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2603         variable.
2604
2605 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2606
2607         [BZ #20072]
2608         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2609         init_cpu_features only if SHARED is defined.
2610         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2611
2612 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2613
2614         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2615         non-inclusive caches on Intel processors.
2616
2617 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2618
2619         * malloc/malloc.c (dumped_main_arena_start)
2620         (dumped_main_arena_end): New variables.
2621         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2622         (do_check_chunk): Skip dumped fake mmapped chunks.
2623         (munmap_chunk): Likewise.
2624         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2625         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2626         mmapped chunks.
2627         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2628         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2629         and dumped_main_arena_end to cover the dumped heap.
2630
2631 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2632
2633         * conform/data/time.h-data (getdate_err): Do not expect for
2634         [XPG3].
2635         (getdate): Likewise.
2636         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2637         variable.
2638
2639         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2640         (F_ULOCK): Likewise.
2641         (F_TEST): Likewise.
2642         (F_TLOCK): Likewise.
2643         (useconds_t): Likewise.
2644         (intptr_t): Do not expect for [XPG3] or [XPG4].
2645         (brk): Do not expect for [XPG3]
2646         (fchown): Likewise.
2647         (fchdir): Likewise.
2648         (ftruncate): Likewise.
2649         (getdtablesize): Likewise.
2650         (gethostid): Likewise.
2651         (getpagesize): Likewise.
2652         (getpgid): Likewise.
2653         (getsid): Likewise.
2654         (getwd): Likewise.
2655         (lchown): Likewise.
2656         (lockf): Likewise.
2657         (readlink): Likewise.
2658         (sbrk): Likewise.
2659         (setpgrp): Likewise.
2660         (setregid): Likewise.
2661         (setreuid): Likewise.
2662         (symlink): Likewise.
2663         (sync): Likewise.
2664         (truncate): Likewise.
2665         (ualarm): Likewise.
2666         (usleep): Likewise.
2667         (vfork): Likewise.
2668         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2669         variable.
2670
2671         [BZ #20054]
2672         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2673         not [__USE_UNIX98].
2674         * conform/data/unistd.h-data (gethostname): Do not expect for
2675         [XPG3].
2676
2677         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2678         [!POSIX] (S_IFBLK): Likewise.
2679         [!POSIX] (S_IFCHR): Likewise.
2680         [!POSIX] (S_IFIFO): Likewise.
2681         [!POSIX] (S_IFREG): Likewise.
2682         [!POSIX] (S_IFDIR): Likewise.
2683         [!POSIX] (S_IFLNK): Likewise.
2684         [!POSIX] (S_IFSOCK): Likewise.
2685         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2686         variable.
2687         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2688
2689 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2690
2691         * sysdeps/aarch64/memset.S (__memset):
2692         Rewrite of optimized memset.
2693
2694 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2695
2696         [BZ #19703]
2697         Partially async-signal-safe fork for single-threaded processes.
2698         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2699         variable.  Do not acquire and reset/release malloc and libio locks
2700         in single-threaded processes.
2701         * malloc/tst-mallocfork2.c: New file.
2702         * malloc/Makefile (tests): Add it.
2703
2704 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2705
2706         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2707         argument.  Use scratch buffer instead of extend_alloca.
2708         (gethosts): Use scratch buffer instead of extend_alloca.
2709         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2710         extend_alloca.
2711         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2712
2713 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2714
2715         [BZ #20055]
2716         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2717         instead of [__USE_UNIX98].
2718         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2719         [__USE_UNIX98].
2720         * conform/data/termios.h-data (tcgetsid): Do not expect for
2721         [XPG3].
2722         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2723         variable.
2724         (test-xfail-XPG4/termios.h/conform): Likewise.
2725
2726 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2727
2728         Do not use mcheck in localedef.
2729         * locale/programs/localedef.c (turn_on_mcheck)
2730         (__malloc_initialize_hook): Remove.
2731
2732 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2733
2734         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2735         * sysdeps/s390/s390-64/Makefile: Likewise.
2736
2737 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2738
2739         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2740         Remove ifunc-defines.sym.
2741         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2742         Likewise.
2743         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2744         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2745         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2746         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2747         rtld-global-offsets.sym.
2748         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2749         * sysdeps/x86/cpu-features-offsets.sym: This.
2750         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2751         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2752
2753 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2754
2755         [BZ #20073]
2756         * io/sys/stat.h (fchmod): Declare for
2757         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2758         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2759         variable.
2760
2761         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2762         [XPG3] (S_IFSOCK): Likewise.
2763         [XPG3] (S_ISVTX): Likewise.
2764         [XPG3] (S_ISLNK): Likewise.
2765         [XPG3] (S_ISSOCK): Likewise.
2766         [XPG3] (fchmod): Likewise.
2767         [XPG3] (lstat): Likewise.
2768         [XPG3] (mknod): Likewise.
2769
2770         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2771         [XPG3].  Expect type long and XFAIL for [XPG4].
2772         (st_blocks): Likewise.
2773
2774         [BZ #20044]
2775         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2776         (pthread_atfork): New prototype.
2777         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2778         variable.
2779
2780         [BZ #20043]
2781         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2782         prototype.
2783
2784 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2785
2786         [BZ #20017]
2787         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2788         gmtime.
2789
2790 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2791
2792         [BZ #19994]
2793         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2794         flag in _res.options.
2795
2796 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2797
2798         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2799         [XPG3 || XPG4].
2800         (blksize_t): Likewise.
2801         (clockid_t): Likewise.
2802         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2803         variable.
2804         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2805
2806 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2807
2808         * sysdeps/unix/sysv/linux/s390/init-first.c:
2809         Add VDSO_SYMBOL(getcpu).
2810         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2811         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2812         Add VDSO_SYMBOL(getcpu).
2813         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2814         New define HAVE_GETCPU_VSYSCALL.
2815         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2816
2817 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2818
2819         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2820         instead of <sysdeps/x86_64/cacheinfo.c>.
2821         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2822         * sysdeps/x86/cacheinfo.c: Here.
2823
2824 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2825
2826         * malloc/malloc-internal.h: Adjust header file guard.
2827
2828 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2829
2830         [BZ #19787]
2831         * inet/getnameinfo.c (check_sprintf_result): New function.
2832         (CHECKED_SNPRINTF): New macro.
2833         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2834         to the host buffer.
2835         (gni_host_local): Use checked_copy to copy the host name.
2836         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2837         (gni_serv_local): Use checked_copy to copy the service name.
2838         (getnameinfo): Remove unnecessary truncation of result buffers.
2839
2840 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2841
2842         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2843         in case of inet_ntop failure.
2844
2845 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2846
2847         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2848         avoid long lines.
2849         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2850         variables.
2851         (gni_host_inet, gni_host_local): Add comment.
2852         (gni_host): Add comment.  Use temporary to avoid long lines.
2853
2854 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2855
2856         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2857         registers specifiers where general purpose registers specifiers should
2858         have been used.
2859
2860 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2861
2862         [BZ #19779]
2863         CVE-2016-1234
2864         Avoid copying names of directory entries.
2865         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2866         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2867         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2868         (struct readdir_result): New type.
2869         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2870         (GL_READDIR): New macros.
2871         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2872         (convert_dirent, convert_dirent64): New functions.
2873         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2874         convert_dirent64.  Adjust references to the readdir result.
2875         * sysdeps/unix/sysv/linux/i386/glob64.c:
2876         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2877         * posix/bug-glob2.c (LONG_NAME): Define.
2878         (filesystem): Add LONG_NAME.
2879         (my_DIR): Increase the size of room_for_dirent.
2880
2881 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2882
2883         [BZ #20041]
2884         * misc/sys/select.h (__need_timespec): Only define if
2885         [__USE_XOPEN2K].
2886         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2887         variable.
2888         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2889         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2890         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2891
2892 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2893             Segher Boessenkool  <segher@gcc.gnu.org>
2894
2895         [BZ #20004]
2896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2897         (__novec_swapcontext): Add missing load.
2898
2899 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2900
2901         [BZ #20023]
2902         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2903         <time.h>.
2904         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
2905         variable.
2906         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
2907
2908 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2909
2910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
2911         flags CLONE_VM compare.
2912
2913 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2914
2915         [BZ #20031]
2916         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
2917         completely empty.
2918
2919 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2920
2921         [BZ #19573]
2922         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
2923         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
2924         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
2925         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
2926         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
2927         (hesiod_free_list): Mark as hidden.
2928         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
2929         res_set, res_get.
2930         * hesiod/hesiod.c: Remove unnecessary forward declarations.
2931         (init, __hesiod_res_get, __hesiod_res_set): Remove.
2932         (hesiod_init): Remove obsolete res_ninit call.
2933         (hesiod_end): Do not free resolver state.  Do not invoke callback.
2934         (hesiod_bind): Do not call init.
2935         (get_txt_records): Use res_mkquery, res_send instead of
2936         res_nmkquery, res_nsend.
2937         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
2938         instead of _nss_hesiod_init.
2939         (_nss_hesiod_initgroups_dyn): Likewise.
2940         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2941         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
2942         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2943
2944 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2945
2946         * hesiod/hesiod_p.h (DEF_RHS): Remove.
2947         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
2948
2949 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2950
2951         * hesiod/hesiod.h: Remove RCS keyword.
2952         * hesiod/hesiod_p.h: Likewise.
2953
2954         * hesiod/hesiod.c: Likewise.
2955
2956 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
2957
2958         [BZ #12450]
2959         * locale/iso-639.def: Add Samogitian/sgs.
2960
2961 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
2962
2963         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
2964
2965         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
2966
2967 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
2968             Carlos O'Donell  <carlos@redhat.com>
2969
2970         [BZ #19072]
2971         * grp/Makefile (headers): Add grp-merge.h
2972         (routines): Add grp-merge.
2973         * grp/getgrgid_r.c: Include grp-merge.h.
2974         (DEEPCOPY_FN): Define.
2975         (MERGE_FN): Define.
2976         * grp/getgrname_r.c: Include grp-merge.h.
2977         (DEEPCOPY_FN): Define.
2978         (MERGE_FN): Define.
2979         * grp/grp-merge.c: New file.
2980         * grp/grp-merge.h: New file.
2981         * include/grp-merge.h: New file.
2982         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
2983         __copy_grp@GLIBC_PRIVATE.
2984         * manual/nss.texi (Actions in the NSS configuration): Describe
2985         return, continue, and merge.
2986         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
2987         (DEEPCOPY_FN): Define.
2988         (MERGE_FN): Define.
2989         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
2990         (DEEPCOPY_FN): Define.
2991         (MERGE_FN): Define.
2992         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
2993         [!MERGE_FN]: Define __merge_einval.
2994         (CHECK_MERGE): Define.
2995         (REENTRANT_NAME): Process merge if do_merge is true.
2996         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
2997         (__nss_getent_r): Likewise.
2998         * nss/nsswitch.c (nss_parse_service_list): Likewise.
2999         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
3000
3001 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3002
3003         [BZ #20012]
3004         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
3005         length to calculate the buffer to read.
3006         (fmemopen_write): Set the buffer position based on bytes written.
3007         (fmemopen_seek): Return EINVAL for invalid whence modes.
3008
3009         [BZ #19957]
3010         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
3011         tst-getpid2.
3012         (test): Add tst-clone2.
3013         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
3014         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
3015         pid/tid fields for CLONE_VM.
3016         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
3017         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
3018         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
3019         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
3020         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
3021         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
3022         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
3023         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
3024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
3025         Likewise.
3026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
3027         Likewise.
3028         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
3029         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
3030         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
3031         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
3032         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
3033         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
3034         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
3035         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
3036
3037 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3038
3039         [BZ #19642]
3040         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
3041         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
3042         (gni_serv_local, gni_serv): New functions extracted from
3043         getnameinfo.
3044         (getnameinfo): Call gni_host and gni_serv to perform the
3045         processing.  Always free scratch buffer.
3046
3047 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3048
3049         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
3050         remaining bytes in the dest string, with zeros.
3051
3052 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3053
3054         [BZ #20010]
3055         CVE-2016-3706
3056         * sysdeps/posix/getaddrinfo.c
3057         (convert_hostent_to_gaih_addrtuple): New function.
3058         (gethosts): Call convert_hostent_to_gaih_addrtuple.
3059         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
3060         AF_INET data.
3061
3062 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3063
3064         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
3065         callback function gl_readdir.
3066         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
3067         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
3068         (glob_in_dir): Remove len.  Use strdup instead of malloc and
3069         memcpy to copy the name.
3070         * manual/pattern.texi (Calling Glob): Document requirements for
3071         implementations of the gl_readdir callback function.
3072         * manual/examples/mkdirent.c: New example.
3073         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
3074         per the manual guidance.
3075         * posix/tst-gnuglob.c (my_readdir): Likewise.
3076
3077 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
3078
3079         [BZ #20014]
3080         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
3081         not [__USE_POSIX].
3082         (getchar_unlocked): Likewise.
3083         (putc_unlocked): Likewise.
3084         (putchar_unlocked): Likewise.
3085         (flockfile): Likewise.
3086         (ftrylockfile): Likewise.
3087         (funlockfile): Likewise.
3088         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
3089         variable.
3090         (test-xfail-XPG4/stdio.h/conform): Likewise.
3091
3092         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
3093         Expect constant.
3094         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
3095         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
3096         variable.
3097         (test-xfail-XPG4/langinfo.h/conform): Likewise.
3098         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
3099
3100         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
3101         [__USE_LARGEFILE64] (off64_t): Likewise.
3102         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
3103         variable.
3104
3105 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3106
3107         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
3108
3109 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3110
3111         * resolv/inet_addr.c: Reindent preprocessor conditionals.
3112         * resolv/res_init.c: Likewise.
3113         * resolv/res_mkquery.c: Likewise.
3114
3115 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3116
3117         * resolv/res_init.c (isascii): Do not define.  Use definition in
3118         <ctype.h>.
3119         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
3120         (LOG_AUTH): Remove.
3121         (SPRINTF): Remove, adjust caller.
3122         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
3123
3124 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3125
3126         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
3127         SUNSECURITY conditional.
3128         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
3129
3130 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3131
3132         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
3133         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
3134         Remove BSD-related preprocessor conditionals.
3135         * conf/portability.h: Remove.
3136
3137 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3138
3139         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
3140         * resolv/res_data.c: Likewise.
3141
3142 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3143
3144         * resolv/res_comp.c: Remove code conditional on __ultrix__.
3145         * resolv/res_data.c: Remove code conditional on ultrix.
3146
3147 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3148
3149         * resolv/res_init.c (RFC1535): Do not define.  Remove
3150         RFC1535 preprocessor conditionals.
3151         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
3152         because there configuration options which make the resolver
3153         behavior different.
3154
3155 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3156
3157         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
3158         RESOLVSORT preprocessor conditionals.
3159         * resolv/nss_dns/dns-host.c: Likewise.
3160         * resolv/res_init.c: Likewise.
3161
3162 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3163
3164         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
3165         is never defined.
3166
3167 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3168
3169         * inet/inet_lnaof.c: Remove SCSS keyword.
3170         * inet/inet_mkadr.c: Likewise.
3171         * inet/inet_net.c: Likewise.
3172         * inet/inet_netof.c: Likewise.
3173         * inet/rcmd.c: Likewise.
3174         * inet/rexec.c: Likewise.
3175         * inet/ruserpass.c: Likewise.
3176
3177 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3178
3179         * resolv/inet_addr.c: Remove _LIBC conditionals.
3180         * resolv/res_data.c: Likewise.
3181         * resolv/res_init.c: Likewise.
3182         * resolv/res_mkquery.c: Likewise.
3183         * resolv/res_libc.c: Update comment.
3184         * resolv/README: Update.
3185
3186 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3187
3188         * resolv/gethnamaddr.c: Remove SCSS keyword.
3189         * resolv/herror.c: Likewise.
3190         * resolv/inet_addr.c: Likewise.
3191         * resolv/inet_net_ntop.c: Likewise.
3192         * resolv/inet_net_pton.c: Likewise.
3193         * resolv/inet_neta.c: Likewise.
3194         * resolv/inet_ntop.c: Likewise.
3195         * resolv/inet_pton.c: Likewise.
3196         * resolv/ns_date.c: Remove RCS keyword.
3197         * resolv/ns_name.c: Likewise.
3198         * resolv/ns_netint.c: Likewise.
3199         * resolv/ns_parse.c: Likewise.
3200         * resolv/ns_print.c: Likewise.
3201         * resolv/ns_samedomain.c: Likewise.
3202         * resolv/ns_ttl.c: Likewise.
3203         * resolv/nsap_addr.c: Likewise.
3204         * resolv/res_comp.c: Remove SCSS and RCS keyword.
3205         * resolv/res_data.c: Remove RCS keyword.
3206         * resolv/res_debug.c: Remove SCSS and RCS keyword.
3207         * resolv/res_init.c: Likewise.
3208         * resolv/res_mkquery.c: Likewise.
3209         * resolv/res_query.c: Likewise.
3210         * resolv/res_send.c: Likewise.
3211
3212 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3213
3214         * conform/data/stdio.h-data (fdopen): Expect also for
3215         [XPG3 || XPG4].
3216
3217         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
3218         (fseeko): Likewise.
3219         (ftello): Likewise.
3220         (ftrylockfile): Likewise.
3221         (funlockfile): Likewise.
3222         (getc_unlocked): Likewise.
3223         (getchar_unlocked): Likewise.
3224         (putc_unlocked): Likewise.
3225         (putchar_unlocked): Likewise.
3226
3227 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3228
3229         [BZ #19868]
3230         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
3231         DNS packet syntax checks (which were not needed before).  Skip
3232         over non-PTR records.
3233
3234 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3235
3236         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
3237         definition.  Include <stddef.h> instead.
3238
3239 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3240
3241         [BZ #19831]
3242         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
3243         function.
3244         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
3245         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
3246
3247 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3248
3249         [BZ #19862]
3250         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
3251         (getanswer_r): Do not call syslog.
3252         (gaih_getanswer_slice): Likewise.
3253         * resolv/gethnamaddr.c (AskedForGot): Remove.
3254         (getanswer): Do not call syslog.
3255         (gethostbyaddr): Likewise.
3256
3257 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3258
3259         * conform/data/signal.h-data (union sigval): Expect also if
3260         [XOPEN2K].
3261         (struct sigevent): Likewise.
3262         (SIGEV_NONE): Likewise.
3263         (SIGEV_SIGNAL): Likewise.
3264         (SIGEV_THREAD): Likewise.
3265         (SIGRTMIN): Likewise.
3266         (SIGRTMAX): Likewise.
3267         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
3268         variable.
3269         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
3270
3271 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3272
3273         [BZ #19830]
3274         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
3275         (gaih_getanswer_slice): Likewise.
3276         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
3277         Also check for availability of RR metadata.
3278
3279 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3280
3281         [BZ #19825]
3282         * resolv/res_send.c (send_vc): Remove early *resplen2
3283         initialization.  Set *resplen2 on socket error.  Call
3284         close_and_return_error for other errors.
3285
3286 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
3287
3288         * sysdeps/unix/sysv/linux/netiucv/iucv.h
3289         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
3290         (SCM_IUCV_TRGCLS): New define.
3291
3292 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3293
3294         [BZ #20005]
3295         * libio/fmemopen.c (fmemopen_write): Update internal position after
3296         write.
3297         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
3298         * stdio-common/tst-fmemopen4.c: New file..
3299
3300 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
3301
3302         [BZ #19996]
3303         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
3304         not [__USE_XOPEN2K].
3305         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
3306         variable.
3307
3308         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
3309         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
3310         variable.
3311
3312         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
3313         [__USE_XOPEN2K8].
3314         [__USE_LARGEFILE64] (off64_t): Likewise.
3315         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
3316         variable.
3317
3318 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
3319
3320         [BZ #19989]
3321         * libio/stdio.h (cuserid): Do not declare if
3322         [__USE_XOPEN2K && !__USE_GNU].
3323         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
3324         variable.
3325
3326 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3327
3328         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3329         (sysdep_routines): Add P8 and PPC64 strcspn targets.
3330         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3331         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3332         ifunc'ed strcspn.
3333         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3334         [EALIGN]: Removed.
3335         [END]: Likewise
3336         [STRSPN]: Define instead of the above to control symbol name.
3337         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
3338         New file.
3339         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
3340         Likewise.
3341         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
3342         Likewise.
3343         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
3344         Likewise.
3345         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3346         [INITIAL_MASK]: New macro.
3347         [STRCSPN]: Likewise.
3348         [UPDATE_MASK]: Likewise.
3349         [USE_AS_STRCSPN]: Lisewise.
3350
3351 2016-04-25  Florian Weimer  <fweimer@redhat.com>
3352
3353         [BZ #19931]
3354         * stdio-common/tst-vfprintf-width-prec.c: New file.
3355         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
3356         (tests-special): Add tst-vfprintf-width-prec-mem.out.
3357         (generated): Add mtrace-related files.
3358         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
3359         (tst-%-mem.out): New pattern rule, replaces
3360         tst-printf-bz18872-mem.out.
3361         * stdio-common/vfprintf.c (vfprintf): When handling a precision
3362         specifier, deallocate any previously allocated work buffer.
3363
3364 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3365
3366         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
3367         Add nop before __startcontext, add explaining comments.
3368
3369 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
3370
3371         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
3372         any more. Notably since IPV6_PKTINFO has been reintroduced with a
3373         completely different API.
3374
3375         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
3376         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
3377         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
3378         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
3379         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
3380         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
3381         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
3382         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
3383         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
3384         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
3385
3386 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3387
3388         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
3389
3390 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
3391
3392         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
3393         when it is the default of 0.
3394
3395 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3396
3397         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
3398         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3399         (sysdep_routines): Add new strcasestr targets.
3400         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3401         (__libc_ifunc_impl_list): Likewise.
3402         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
3403         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
3404         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
3405         * sysdeps/powerpc/powerpc64/power8/Makefile:
3406         New file to add strcasestr-ppc64 to sysdep_routines.
3407         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
3408         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
3409
3410 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
3411
3412         * benchtests/Makefile (wcsmbs-benchset): Include only for
3413         native builds and runs.
3414         (LOCALES): Likewise.
3415         (bench-build): Build timing-type here instead of the bench
3416         target.  Generate locale only for native builds.
3417         * benchtests/README: Add note for cross-building.
3418
3419         * benchtests/Makefile (bench-clean): Clean up extra-objs.
3420
3421         * benchtests/README: Update README to include instructions on
3422         using bench-build.
3423
3424         * Makefile.in (bench-build): New target.
3425         * Rules (PHONY): Add bench-build target.
3426         * benchtests/Makefile (bench): Depend on bench-build.
3427         (bench-build): New target.
3428
3429 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3430
3431         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
3432         profil_reply_port.
3433         (profile_waiter): Do not initialize profil_reply_port.
3434         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
3435         frequency instead of tick length in us.
3436
3437 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
3438
3439         [BZ #18712]
3440         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3441         (__old_mempcpy_small): Likewise.
3442         (__old_strcpy_small): Likewise.
3443         (__old_stpcpy_small): Likewise.
3444         (__old_strpbrk_c2): Fix compat symbol name.
3445         (__old_strpbrk_c3): Likewise.
3446         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3447         (__mempcpy_small): Remove.
3448         (__strcpy_small): Remove.
3449         (__stpcpy_small): Remove.
3450
3451 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3452
3453         [BZ #19400]
3454         * locale/iso-639.def: Add the Talossan/tzl language.
3455
3456 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3457
3458         [BZ #16983]
3459         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3460         comment.  Add "ln" to strchr check on postal_fmt.
3461
3462 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3463
3464         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3465         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3466         tel_dom_fmt.
3467
3468 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3469
3470         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3471         (sysdep_routines): Added __strlen_power8.
3472         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3473         __strlen_power8 entry.
3474         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3475         Implementation for POWER8.
3476         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3477         for __strlen_power8.
3478         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3479         Implementation for POWER8.
3480
3481 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3482
3483         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3484
3485 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3486
3487         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3488         Goldmont and Airmont processors.
3489
3490 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3491
3492         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3493         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3494         (__STRING2_SMALL_GET32): Remove.
3495         (memset): Remove.
3496         (__memset_1): Remove.
3497         (__memset_gc): Remove.
3498         (__mempcpy): Remove.
3499         (mempcpy): Remove.
3500         (__mempcpy_args): Remove.
3501         (strchr): Remove.
3502         (strcpy): Remove.
3503         (strcpy_args): Remove.
3504         (__stpcpy_args): Remove.
3505         (__strcmp_cc): Remove.
3506         (__strcmp_gc): Remove.
3507         (strstr): Remove.
3508
3509 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3510
3511         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3512         * nis/nis_call.c (nis_server_cache_add): Likewise.
3513
3514 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3515
3516         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3517
3518 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3519
3520         * malloc/arena.c (__malloc_fork_lock_parent)
3521         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3522         internal_function attribute.
3523
3524 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3525
3526         * stdio-common/printf_fp.c (__printf_fp_l):
3527         Rename ___printf_fp_l to __printf_fp_l and
3528         remove strong alias. Use libc_hidden_def instead
3529         of ldbl_hidden_def macro.
3530
3531 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3532
3533         Remove malloc hooks from fork handler.  They are no longer needed
3534         because malloc runs right before fork, and no malloc calls from
3535         other fork handlers are not possible anymore.
3536         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3537         declarations.
3538         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3539         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3540         (atfork_recursive_cntr): Remove.
3541         (__malloc_fork_lock_parent): Do not override malloc hooks and
3542         thread_arena.
3543         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3544         thread_arena.
3545         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3546         thread_arena instead of save_arena.
3547
3548 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3549
3550         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3551         (thread_atfork, thread_atfork_static): Remove.
3552         * sysdeps/mach/hurd/malloc-machine.h:
3553         (thread_atfork, thread_atfork_static): Remove.
3554
3555 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3556
3557         [BZ #19431]
3558         Run the malloc fork handler as late as possible to avoid deadlocks.
3559         * malloc/malloc-internal.h: New file.
3560         * malloc/malloc.c: Include it.
3561         * malloc/arena.c (ATFORK_MEM): Remove.
3562         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3563         Update comment.
3564         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3565         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3566         Remove outdated comment.
3567         (ptmalloc_init): Do not call thread_atfork.  Remove
3568         thread_atfork_static.
3569         * malloc/tst-malloc-fork-deadlock.c: New file.
3570         * Makefile (tests): Add tst-malloc-fork-deadlock.
3571         (tst-malloc-fork-deadlock): Link against libpthread.
3572         * manual/memory.texi (Aligned Memory Blocks): Update safety
3573         annotation comments.
3574         * sysdeps/nptl/fork.c (__libc_fork): Call
3575         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3576         __malloc_fork_unlock_child.
3577         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3578
3579 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3580
3581         [BZ #19613]
3582         Remove union wait.
3583         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3584         (w_stopsig, w_stopval): Remove.
3585         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3586         stat_loc argument.
3587         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3588         (__WAIT_STATUS_DEFN): Remove.
3589         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3590         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3591         (wait, wait3, wait4): Use int * for the stat_loc argument.
3592         * posix/wait.c (__wait): Likewise.
3593         * posix/wait3.c (__wait3): Likewise.
3594         * posix/wait4.c (__wait4): Likewise.
3595         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3596         (__WAIT_STATUS_DEFN): Remove.
3597         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3598         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3599         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3600         argument.
3601         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3602         * sysdeps/posix/wait3.c (__wait3): Likewise.
3603         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3604         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3605         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3606         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3607         stat_loc argument.
3608         * manual/process.texi (BSD Wait Functions): Remove union wait.
3609
3610 2016-04-13  Andreas Schwab  <schwab@suse.de>
3611
3612         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3613         (test-extras): Add tst-tlsalign-vars.
3614         * math/Makefile: Wrap long lines.
3615         (libm-vec-test-wrappers): Define.
3616         (test-extras): Add $(libm-vec-test-wrappers).
3617         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3618         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3619         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3620         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3621         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3622         (extra-test-objs): Add corresponding objects.
3623
3624 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3625
3626         [BZ #19928]
3627         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3628         New.
3629         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3630         times of shared cache size.
3631         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3632         (VMOVNT): New.
3633         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3634         (VMOVNT): Likewise.
3635         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3636         (VMOVNT): Likewise.
3637         (VMOVU): Changed to movups for smaller code sizes.
3638         (VMOVA): Changed to movaps for smaller code sizes.
3639         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3640         comments.
3641         (PREFETCH): New.
3642         (PREFETCH_SIZE): Likewise.
3643         (PREFETCHED_LOAD_SIZE): Likewise.
3644         (PREFETCH_ONE_SET): Likewise.
3645         Rewrite to use forward and backward loops, which move 4 vector
3646         registers at a time, to support overlapping addresses and use
3647         non temporal store if size is above the threshold and there is
3648         no overlap between destination and source.
3649
3650 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3651
3652         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3653         Include dl-vdso.
3654         * sysdeps/unix/sysv/linux/mips/Versions: Add
3655         __vdso_clock_gettime.
3656         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3657         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3658         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3659         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3660         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3661         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3662         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3663         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3664         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3665
3666 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3667
3668         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3669         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3670         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3671         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3672         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3673         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3676         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3677         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3678         syscalls generation.
3679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3680         [__NR_pwrite64] (__NR_write): Remove define.
3681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3682         [__NR_pwrite64] (__NR_write): Remove define.
3683         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3684         Remove define.
3685         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3686         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3687         Remove define.
3688         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3689         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3690         Linux implementation as base.
3691         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3692
3693         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3694         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3695         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3696         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3699         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3700         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3701         syscall generation.
3702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3703         [__NR_pread64] (__NR_pread): Remove define.
3704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3705         [__NR_pread64] (__NR_pread): Likewise.
3706         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3707         define.
3708         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3709         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3710         Remove define.
3711         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3712         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3713         Linux implementation as base.
3714         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3715         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3716         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3717
3718         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3719         definition.
3720         (__ALIGNMENT_COUNT): Likewise.
3721         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3722         (__ALIGNMENT_COUNT): Likewise.
3723         (SYSCALL_LL): New define.
3724         (SYSCALL_LL64): Likewise.
3725         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3726         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3727         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3728         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3729
3730         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3731         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3732         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3733         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3734         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3735         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3736
3737 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3738
3739         [BZ #19865]
3740         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3741         original buffer before retry.
3742
3743 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3744
3745         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3746         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3747         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3748         GLRO(dl_auxv) list.
3749         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3750         including <ldsodefs.h>.
3751         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3752
3753 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3754
3755         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3756         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3757         $(CPPFLAGS).
3758
3759 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3760
3761         [BZ #17950]
3762         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3763         Add -mfpmath=387.
3764
3765 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3766
3767         * sysdeps/i386/configure.ac: Change == to = when calling test.
3768         * sysdeps/x86_64/configure.ac: Likewise.
3769         * sysdeps/i386/configure: Regenerated.
3770         * sysdeps/x86_64/configure: Likewise.
3771
3772 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3773
3774         [BZ #16137]
3775         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3776         * benchtests/bench-strcoll.c (input_files): Likewise.
3777         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3778         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3779         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3780
3781 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3782
3783         [BZ #19929]
3784         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3785         [__USE_XOPEN2K8 && !__USE_GNU].
3786         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3787         variable.
3788
3789         [BZ #19925]
3790         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3791         define if [!__USE_MISC && __USE_XOPEN2K].
3792         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3793         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3794         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3795         Likewise.
3796         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3797         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3798         variable.
3799         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3800
3801 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3802
3803         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3804         (sysdep_routines): Add new strspn targets.
3805         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3806         (__libc_ifunc_impl_list): Add strspn.
3807         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3808         New file.
3809         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3810         Likewise.
3811         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3812         Likewise.
3813         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3814         Likewise.
3815
3816 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3817
3818         * misc/hsearch_r.c: Include <limits.h>.
3819
3820 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3821
3822         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3823
3824 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3825
3826         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3827         (MEMCPY_SYMBOL): New.
3828         (MEMPCPY_SYMBOL): Likewise.
3829         (MEMMOVE_CHK_SYMBOL): Likewise.
3830         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3831         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3832         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3833         Provide alias for memcpy in libc.a and ld.so.
3834
3835 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3836
3837         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3838         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3839         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3840         Disabled fro now.
3841         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3842         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3843
3844 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3845
3846         * benchtests/Makefile (string-benchset): Add memcpy-large,
3847         memmove-large and memset-large.
3848         * benchtests/bench-memcpy-large.c: New file.
3849         * benchtests/bench-memmove-large.c: Likewise.
3850         * benchtests/bench-memmove-large.c: Likewise.
3851         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3852
3853 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3854
3855         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3856         32-bit displacement to avoid long nop between instructions.
3857
3858 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3859
3860         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3861         a comment on VMOVU and VMOVA.
3862
3863 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3864
3865         [BZ #19633]
3866         Use specified locale for number formatting in strfmon_l.
3867         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3868         (__nl_lookup_word): New inline functions.
3869         * include/printf.h (__print_fp_l): Declare.
3870         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3871         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3872         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3873         (___printf_fp): New function.
3874         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3875         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3876         * stdlib/tst-strfmon_l.c (do_test): New test.
3877         * stdlib/Makefile (tests): Add kt.
3878         (LOCALES): Build additional locales.
3879         (tst-strfmon_l.out): Require locales.
3880
3881 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3882
3883         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3884         if not in libc.
3885         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3886         Likewise.
3887         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3888         Likewise.
3889         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3890         Likewise.
3891
3892 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3893
3894         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3895         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3896         with unaligned_erms.
3897         (__memmove_erms): Skip if source == destination.
3898         (__memmove_unaligned_erms): Don't check source == destination
3899         first.
3900
3901 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3902
3903         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3904         bit_arch_Fast_Copy_Backward for Intel Core proessors.
3905
3906 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3907
3908         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
3909         * string/strspn.c (strspn): Likewise.
3910
3911 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3912
3913         * benchtests/bench-memset.c (do_test): Support 64-byte
3914         alignment.
3915         (test_main): Test 64-byte alignment.
3916
3917 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3918
3919         * benchtests/bench-memmove.c (test_main): Test 64-byte
3920         alignment.
3921
3922 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3923
3924         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
3925
3926 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3927
3928         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
3929         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
3930         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
3931
3932         * string/strpbrk.c (strpbrk): Rewrite function.
3933         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
3934         (__strpbrk_c2): Likewise.
3935         (__strpbrk_c3): Likewise.
3936         * string/string-inlines.c
3937         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
3938         Likewise.
3939         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
3940         Likewise.
3941
3942         * string/strspn.c (strcspn): Rewrite function.
3943         * string/bits/string2.h (strspn): Use __builtin_strcspn.
3944         (__strspn_c1): Remove inline function.
3945         (__strspn_c2): Likewise.
3946         (__strspn_c3): Likewise.
3947         * string/string-inlines.c
3948         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
3949         compatibility symbol.
3950         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
3951         Likewise.
3952         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
3953         Likewise.
3954         * string/string-inlines.c: Include generic version.
3955
3956 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
3957             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3958
3959         * string/Version (libc): Add GLIBC_2.24.
3960         * string/strcspn.c (strcspn): Rewrite function.
3961         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
3962         (__strcspn_c1): Remove inline function.
3963         (__strcspn_c2): Likewise.
3964         (__strcspn_c3): Likewise.
3965         * string/string-inline.c
3966         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
3967         compatibility symbol.
3968         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
3969         Likewise.
3970         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
3971         Likewise.
3972         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
3973
3974 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
3975
3976         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3977         Use ahi instead of aghi to adjust stack pointer.
3978
3979 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3980
3981         [BZ #19853]
3982         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
3983         TEST to take significant digits as second parameter.
3984         [TEST]: Redefine in terms of TEST_N taking 30
3985         significant digits.
3986         (do_test): Add test case to demonstrate precision
3987         failure in the ldbl-128ibm printf.
3988         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
3989         (__mpn_extract_long_double): Carry 7 extra intermediate
3990         bits of precision to aide computing difference when
3991         signs differ.
3992
3993 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
3994
3995         [BZ #19881]
3996         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3997         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
3998         memset-avx512-unaligned-erms.
3999         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4000         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
4001         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
4002         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
4003         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
4004         __memset_sse2_unaligned_erms, __memset_erms,
4005         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
4006         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
4007         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
4008         file.
4009         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4010         Likewise.
4011         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
4012         Likewise.
4013         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
4014         Likewise.
4015
4016 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4017
4018         [BZ #19776]
4019         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4020         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
4021         memmove-avx512-unaligned-erms.
4022         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4023         (__libc_ifunc_impl_list): Test
4024         __memmove_chk_avx512_unaligned_2,
4025         __memmove_chk_avx512_unaligned_erms,
4026         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
4027         __memmove_chk_sse2_unaligned_2,
4028         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
4029         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
4030         __memmove_avx512_unaligned_erms, __memmove_erms,
4031         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
4032         __memcpy_chk_avx512_unaligned_2,
4033         __memcpy_chk_avx512_unaligned_erms,
4034         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
4035         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
4036         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
4037         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
4038         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
4039         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
4040         __mempcpy_chk_avx512_unaligned_erms,
4041         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
4042         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
4043         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
4044         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
4045         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
4046         __mempcpy_erms.
4047         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
4048         file.
4049         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4050         Likwise.
4051         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
4052         Likwise.
4053         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4054         Likwise.
4055
4056 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4057
4058         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
4059         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
4060         (La_s390_64_regs): Likewise.
4061         (La_s390_32_retval): Append vector register lrv_v24.
4062         (La_s390_64_retval): Likeweise.
4063         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4064         Handle extended structs La_s390_32_regs and La_s390_32_retval.
4065         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4066         Handle extended structs La_s390_64_regs and La_s390_64_retval.
4067
4068 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4069
4070         [BZ #19916]
4071         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
4072         to create a non-vector/vector version for _dl_runtime_resolve and
4073         _dl_runtime_profile. Move implementation to ...
4074         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
4075         (_dl_runtime_resolve) Save and restore fpr/vrs.
4076         (_dl_runtime_profile) Save and restore vrs and fix some issues
4077         if _dl_call_pltexit is called.
4078         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
4079         Choose the correct resolver function if running on a machine with vx.
4080         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
4081         to create a non-vector/vector version for _dl_runtime_resolve and
4082         _dl_runtime_profile. Move implementation to ...
4083         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
4084         (_dl_runtime_resolve) Save and restore fpr/vrs.
4085         (_dl_runtime_profile) Save and restore vrs and fix some issues
4086         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
4087         Choose the correct resolver function if running on a machine with vx.
4088
4089 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4090
4091         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
4092
4093 2016-03-31  Florian Weimer  <fweimer@redhat.com>
4094
4095         [BZ #19509]
4096         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
4097         skip_map != NULL.
4098         * elf/tst-dlsym-error.c: New file.
4099         * elf/Makefile (tests): Add tst-dlsym-error.
4100         (tst-dlsym-error): Link against libdl.
4101
4102 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
4103
4104         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4105         (__ASSUME_FUTIMESAT): Remove macro.
4106         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
4107
4108 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4109
4110         [BZ #19879]
4111         CVE-2016-3075
4112         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
4113         copy name.
4114
4115 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4116
4117         [BZ #19837]
4118         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
4119         error if parse_line fails.
4120
4121 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4122
4123         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
4124         (index_cpu_ERMS): Likewise.
4125         (reg_ERMS): Likewise.
4126
4127 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
4128
4129         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
4130         PER_LINUX_FDPIC): Add.
4131
4132 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4133
4134         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4135         memcpy-avx512-no-vzeroupper.
4136         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
4137         to ...
4138         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
4139         (MEMCPY): Don't define.
4140         (MEMCPY_CHK): Likewise.
4141         (MEMPCPY): Likewise.
4142         (MEMPCPY_CHK): Likewise.
4143         (MEMPCPY_CHK): Renamed to ...
4144         (__mempcpy_chk_avx512_no_vzeroupper): This.
4145         (MEMPCPY_CHK): Renamed to ...
4146         (__mempcpy_chk_avx512_no_vzeroupper): This.
4147         (MEMCPY_CHK): Renamed to ...
4148         (__memmove_chk_avx512_no_vzeroupper): This.
4149         (MEMCPY): Renamed to ...
4150         (__memmove_avx512_no_vzeroupper): This.
4151         (__memcpy_avx512_no_vzeroupper): New alias.
4152         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
4153
4154 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4155
4156         [BZ #18858]
4157         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4158         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
4159         and mempcpy-avx512-no-vzeroupper.
4160         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
4161         New.
4162         (MEMPCPY): Likewise.
4163         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
4164         (MEMPCPY_CHK): New.
4165         (MEMPCPY): Likewise.
4166         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
4167         (MEMPCPY): Likewise.
4168         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
4169         (MEMPCPY): Likewise.
4170         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
4171         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
4172         Likewise.
4173         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
4174         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
4175
4176 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4177              Amit Pawar  <Amit.Pawar@amd.com>
4178
4179         [BZ #19583]
4180         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4181         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
4182         processors.  Set Fast_Copy_Backward for AMD Excavator
4183         processors.
4184         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
4185         New.
4186         (index_arch_Fast_Unaligned_Copy): Likewise.
4187         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
4188         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
4189
4190 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4191
4192         [BZ #19791]
4193         * resolv/res_send.c (close_and_return_error): New function.
4194         (send_dg): Initialize *resplen2 after reopen failure.  Call
4195         close_and_return_error for error returns.  On error paths without
4196         __res_iclose, initialze *resplen2 explicitly.  Update comment for
4197         successful return.
4198
4199 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4200
4201         [BZ# 19860]
4202         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
4203         zero if the compiler does not provide the AVX512F bit.
4204
4205 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
4206
4207         [BZ #19848]
4208         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
4209         from 8 to 4.
4210         (__ieee754_powl): Compare integer exponent against 4 not 8.
4211         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
4212         from 8 to 4.
4213         (__ieee754_powl): Compare integer exponent against 4 not 8.
4214         * math/auto-libm-test-in: Add more tests of pow.
4215         * math/auto-libm-test-out: Regenerated.
4216         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
4217         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4218
4219 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4220
4221         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
4222         Make code unconditional.
4223         [!__NR_utimensat]: Remove conditional code.
4224         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
4225         Make code unconditional.
4226         [!__NR_utimensat]: Remove conditional code.
4227         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
4228         Make code unconditional.
4229         [!__NR_utimensat]: Remove conditional code.
4230
4231 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4232
4233         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
4234         Make code unconditional.
4235
4236 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
4237
4238         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
4239         call-clobbered %eax on retry path.
4240         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
4241
4242 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4243
4244         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
4245         Don't set %rcx twice before "rep movsb".
4246
4247 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4248
4249         [BZ #19583]
4250         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
4251         inline.  Check family before setting family, model and
4252         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
4253         bits here.
4254         (init_cpu_features): Replace HAS_CPU_FEATURE and
4255         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
4256         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
4257         for Intel processors with usable AVX2.  Call get_common_indeces
4258         for other processors with family == NULL.
4259         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
4260         (CPU_FEATURES_ARCH_P): Likewise.
4261         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
4262         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
4263
4264 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4265
4266         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
4267         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
4268         $(shared-thread-library) instead of hardcoding the path to libpthread.
4269
4270 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
4271
4272         * sysdeps/unix/sysv/linux/kernel-features.h
4273         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
4274         * sysdeps/unix/sysv/linux/getdents.c
4275         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
4276         [!have_no_getdents64_defined]: Likewise.
4277         (__GETDENTS): Remove __have_no_getdents64 conditional.
4278
4279 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
4280
4281         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
4282         Remove macro.
4283         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
4284         <kernel-features.h>.
4285         (signalfd) [__NR_signalfd4]: Make code unconditional.
4286         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
4287
4288 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4289
4290         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
4291         style.
4292
4293 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4294
4295         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
4296         (__pthread_enable_asynccancel): Use JUMPTARGET to call
4297         __pthread_unwind.
4298         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4299         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
4300         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4301         (__condvar_cleanup1): Likewise.
4302
4303 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
4304
4305         [BZ #19822]
4306         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
4307         move it to the final $@ location.
4308
4309 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4310
4311         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
4312         access where posix_spawn success and pid argument is null.
4313         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
4314         success case.
4315
4316 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
4317
4318         * sysdeps/mach/hurd/i386/c++-types.data: New file.
4319
4320         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
4321
4322         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
4323         and __fcntl.
4324         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
4325         __fcntl only.
4326         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
4327         adding attribute_hidden to __open and __fcntl.
4328
4329         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
4330         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
4331         depend on libc-modules.h,
4332         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
4333
4334 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
4335
4336         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
4337         Remove macro.
4338         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
4339         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
4340         entry.
4341
4342         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
4343         Remove macro.
4344         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
4345         include <kernel-features.h>.
4346         [!__ASSUME_FALLOCATE]: Remove conditional code.
4347         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
4348
4349 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4350
4351         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
4352         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
4353         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
4354         (_ZGVdN4v_cos_avx2): Likewise.
4355         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
4356         (_ZGVdN4v_cos): Likewise.
4357         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
4358         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
4359         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
4360         (_ZGVdN4v_exp_avx2): Likewise.
4361         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
4362         (_ZGVdN4v_exp): Likewise.
4363         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
4364         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
4365         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
4366         (_ZGVdN4v_log_avx2): Likewise.
4367         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
4368         (_ZGVdN4v_log): Likewise.
4369         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
4370         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
4371         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
4372         (_ZGVdN4vv_pow_avx2): Likewise.
4373         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
4374         (_ZGVdN4vv_pow): Likewise.
4375         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
4376         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
4377         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
4378         (_ZGVdN4v_sin_avx2): Likewise.
4379         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
4380         (_ZGVdN4v_sin): Likewise.
4381         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
4382         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
4383         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
4384         (_ZGVdN4vvv_sincos_avx2): Likewise.
4385         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
4386         (_ZGVdN4vvv_sincos): Likewise.
4387         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
4388         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
4389         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
4390         (_ZGVbN4v_cosf_sse4): Likewise.
4391         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
4392         (_ZGVdN8v_cosf_avx2): Likewise.
4393         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
4394         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
4395         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
4396         (_ZGVbN4v_expf_sse4): Likewise.
4397         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
4398         (_ZGVdN8v_expf_avx2): Likewise.
4399         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
4400         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
4401         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
4402         (_ZGVbN4v_logf_sse4): Likewise.
4403         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
4404         (_ZGVdN8v_logf_avx2): Likewise.
4405         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
4406         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
4407         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
4408         (_ZGVbN4vv_powf_sse4): Likewise.
4409         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
4410         (_ZGVdN8vv_powf_avx2): Likewise.
4411         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
4412         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
4413         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
4414         (_ZGVbN4vvv_sincosf_sse4): Likewise.
4415         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
4416         (_ZGVdN8vvv_sincosf_avx2): Likewise.
4417         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
4418         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
4419         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
4420         (_ZGVbN4v_sinf_sse4): Likewise.
4421         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
4422         (_ZGVdN8v_sinf_avx2): Likewise.
4423         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4424         Use JUMPTARGET to call callee.
4425         (WRAPPER_IMPL_SSE2_ff): Likewise.
4426         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4427         (WRAPPER_IMPL_AVX): Likewise.
4428         (WRAPPER_IMPL_AVX_ff): Likewise.
4429         (WRAPPER_IMPL_AVX_fFF): Likewise.
4430         (WRAPPER_IMPL_AVX512): Likewise.
4431         (WRAPPER_IMPL_AVX512_ff): Likewise.
4432         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4433         Likewise.
4434         (WRAPPER_IMPL_SSE2_ff): Likewise.
4435         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4436         (WRAPPER_IMPL_AVX): Likewise.
4437         (WRAPPER_IMPL_AVX_ff): Likewise.
4438         (WRAPPER_IMPL_AVX_fFF): Likewise.
4439         (WRAPPER_IMPL_AVX512): Likewise.
4440         (WRAPPER_IMPL_AVX512_ff): Likewise.
4441         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4442
4443 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4444
4445         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4446         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4447         qualifier.
4448         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4449         internal_function qualifiers.
4450
4451 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4452
4453         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4454         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4455         * math/atest-exp.c (exp_mpn): Mark chk unused.
4456         * math/atest-exp2.c (exp_mpn): Likwise.
4457         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4458         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4459
4460 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4461
4462         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4463         Remove macro.
4464         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4465         <kernel-features.h>.
4466         [__NR_ppoll]: Make code unconditional.
4467         [!__ASSUME_PPOLL]: Remove conditional code.
4468
4469         * sysdeps/unix/sysv/linux/kernel-features.h
4470         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4471         (__ASSUME_ACCEPT4): Likewise.
4472         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4473         Define.
4474         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4475         Likewise.
4476         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4477         Likewise.
4478         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4479         Likewise.
4480         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4481         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4482         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4483         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4484         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4485         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4486         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4487         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4488         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4489         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4490         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4491         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4492         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4493         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4494         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4495         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4496         Likewise.
4497         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4498         Likewise.
4499         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4500         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4501         0x040300].
4502         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4503         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4504         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4505         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4506         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4507         0x030300].
4508         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4509         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4510         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4511         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4512         0x040300].
4513         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4514         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4515         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4516         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4517         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4518         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4519         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4520         0x030300].
4521         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4522         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4523         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4524         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4525         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4526         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4527         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4528         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4529         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4530         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4531         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4532         0x040300].
4533         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4534         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4535         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4536         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4537         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4538         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4539         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4540         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4541         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4542         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4543         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4544         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4545         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4546         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4547         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4548         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4549         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4550         Likewise.
4551         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4552         Likewise.
4553
4554 2016-03-15  Andreas Schwab  <schwab@suse.de>
4555
4556         [BZ #19257]
4557         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4558         statp->_u._ext.nscount as loop count.
4559
4560 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4561
4562         * math/test-signgam-finite-c99.c: Also #undef
4563         __LIBC_INTERNAL_MATH_INLINES.
4564         * math/test-signgam-main.c: Likewise.
4565
4566 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4567
4568         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4569         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4570         (MADV_FREE): Likewise.
4571         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4572         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4573         EPOLLEXCLUSIVE.
4574
4575 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4576
4577         * timezone/README: Remove mention of checktab.awk. Mention wiki
4578         SharedSourceFiles.
4579
4580 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4581
4582         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4583         WUNTRACED.
4584
4585 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4586
4587         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4588         order to match the type of p when calling atomic_exchange_acq().
4589
4590 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4591
4592         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4593         cfi_offset calls.
4594         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4595         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4596         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4597         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4598         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4599
4600 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4601
4602         * timezone/checktab.awk: Removed.
4603
4604 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4605
4606         * manual/math.texi (Errors in Math Functions): Document relaxed
4607         accuracy goals for IBM long double.
4608         * math/libm-test.inc (test_exceptions): Always allow spurious
4609         "underflow" and "inexact" exceptions for IBM long double.
4610
4611 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4612
4613         [BZ #19762]
4614         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4615         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4616         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4617         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4618         (bit_arch_*): This for feature array.
4619         (bit_*): Renamed to ...
4620         (bit_cpu_*): This for cpu array.
4621         (index_*): Renamed to ...
4622         (index_arch_*): This for feature array.
4623         (index_*): Renamed to ...
4624         (index_cpu_*): This for cpu array.
4625         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4626         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4627         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4628         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4629         bit_##name with index_cpu_##name and bit_cpu_##name.
4630         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4631         bit_##name with index_arch_##name and bit_arch_##name.
4632
4633 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4634
4635         [BZ #19792]
4636         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4637         Terminate FDE before return label.
4638
4639 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4640
4641         [BZ #19790]
4642         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4643         (rintl): Define as macro.
4644         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4645         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4646         of fesetround.  Ensure results are evaluated before end of scope.
4647         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4648         USE_AS_NEARBYINTL and include s_rintl.c.
4649         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4650         Disable exception traps in new environment.
4651         (libc_feholdsetround_ppc_ctx): Likewise.
4652
4653 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4654
4655         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4656         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4657         (tst_audit10_aux) [__AVX512F__]: ... here.
4658
4659 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4660
4661         * include/sys/auxv.h: New file.
4662
4663 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4664
4665         [BZ #19759]
4666         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4667
4668 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4669
4670         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4671         operand modifier.
4672         (feclearexcept): Likewise.
4673
4674 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4675
4676         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4677         to reflect the entire 32-bit HWCAP.
4678         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4679         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4680
4681 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4682
4683         [BZ #19783]
4684         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4685         $(test-via-rtld-prefix).
4686         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4687
4688 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4689
4690         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4691         union wait.  Report any non-zero exit status as error.
4692
4693 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4694
4695         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4696         configured with --enable-hardcoded-path-in-tests.
4697
4698 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4699
4700         [BZ #19677]
4701         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4702         (__ieee754_remainderl): Put zero low parts in canonical form.
4703         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4704         file.  Based on
4705         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4706         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4707         with wrapper round test-fmodrem-ldbl-128ibm.c.
4708         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4709         file.
4710         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4711         Likewise.
4712         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4713         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4714
4715 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4716
4717         [BZ #19610]
4718         * elf/ldconfig.c (opt_link): Update comment.
4719         (options): Update help string for option -X.
4720         (search_dir): Unlink stale symbolic link only if updating symbolic
4721         links.
4722         * elf/tst-ldconfig-X.sh: New file.
4723         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4724         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4725
4726 2016-03-07  Andreas Schwab  <schwab@suse.de>
4727
4728         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4729         needed arguments.
4730
4731 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4732
4733         [BZ #15333]
4734         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4735         to lstat64.
4736
4737 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4738
4739         * libio/filedoalloc.c (isatty): Remove.
4740         (local_isatty): Add comment.  Call __isatty directly.
4741         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4742         * libio/wfiledoalloc.c (isatty): Remove.
4743         (_IO_wfile_doallocate): Update comment.
4744
4745 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4746
4747         [BZ #19269]
4748         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4749         tst-audit4-aux.o.
4750         (tst-audit10): Depend on tst-audit10-aux.o.
4751         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4752         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4753         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4754         instead of inline AVX code.
4755         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4756         instead of inline AVX512 code.
4757         * sysdeps/x86_64/tst-audit4-aux.c: New file
4758         * sysdeps/x86_64/tst-audit10-aux.c: New file
4759
4760         [BZ #19648]
4761         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4762
4763 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4764
4765         [BZ #14750]
4766         [BZ #10354]
4767         [BZ #18433]
4768         * include/sched.h (__clone): Add hidden prototype.
4769         (__clone2): Likewise.
4770         * include/unistd.h (__dup): Likewise.
4771         * posix/Makefile (tests): Add tst-spawn2.
4772         * posix/tst-spawn2.c: New file.
4773         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4774         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4775         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4776         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4777         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4778         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4779         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4780         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4781         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4782         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4783         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4785         Likewise.
4786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4787         Likewise.
4788         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4789         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4790         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4791         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4792         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4793         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4794         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4795         * sysdeps/unix/sysv/linux/nptl-signals.h
4796         (____nptl_is_internal_signal): New function.
4797         * sysdeps/unix/sysv/linux/spawni.c: New file.
4798
4799         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4800         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4801         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4802         * posix/tst-execvp2.c (do_test): Likewise.
4803         * posix/tst-execvp3.c (do_test): Likewise.
4804         * posix/tst-execvp4.c (do_test): Likewise.
4805         * posix/tst-execvpe1.c: New file.
4806         * posix/tst-execvpe2.c: Likewise.
4807         * posix/tst-execvpe3.c: Likewise.
4808         * posix/tst-execvpe4.c: Likewise.
4809         * posix/tst-execvpe5.c: Likewise.
4810         * posix/tst-execvpe6.c: Likewise.
4811
4812         [BZ #19534]
4813         * posix/execl.c (execl): Remove dynamic memory allocation.
4814         * posix/execle.c (execle): Likewise.
4815         * posix/execlp.c (execlp): Likewise.
4816
4817 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4818
4819         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4820         Replace .text with .text.avx512.
4821         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4822         Likewise.
4823
4824 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4825
4826         * sysdeps/generic/libnsl.abilist: New file.
4827         * sysdeps/generic/libutil.abilist: New file.
4828
4829 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4830
4831         [BZ #19762]
4832         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4833         HAS_ARCH_FEATURE with Fast_Rep_String.
4834         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4835         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4836         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4837         Likewise.
4838         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4839         Likewise.
4840         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4841         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4842         Likewise.
4843         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4844         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4845         Likewise.
4846
4847 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4848
4849         [BZ #19745]
4850         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4851         with *%rax in call.
4852
4853 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4854
4855         [BZ #19745]
4856         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4857         with *__libc_start_main@GOTPCREL(%rip) in call.
4858
4859 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4860
4861         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4862         inside conditional for nonempty $(CXX).
4863
4864         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4865         nonempty.
4866
4867         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4868         to test for empty $(CXX) rather than $(CXX) of "no".
4869
4870 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4871
4872         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4873
4874 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4875             H.J. Lu  <hongjiu.lu@intel.com>
4876
4877         [BZ #18880]
4878         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4879         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4880         enable __memcpy_ssse3_back.
4881
4882 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4883
4884         [BZ #19758]
4885         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4886         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4887
4888 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4889
4890         [BZ #19490]
4891         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4892         (__fentry__): Likewise.
4893
4894 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4895
4896         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4897         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4898
4899 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4900
4901         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4902         __mcount_internal directly.
4903         (C_LABEL(__fentry__)): Likewise.
4904         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
4905         directly.
4906
4907 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4908
4909         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4910         (__start_context): Call __setcontext directly.
4911
4912 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
4913
4914         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4915         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4916         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
4917         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4918         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4919         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4920         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
4921         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4922         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4923         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
4924         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4925         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4926         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4927         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4928         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4929         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4930         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
4931         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4932         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4933         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4934         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
4935         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4936         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4937         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4938         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
4939         Remove conditional code.
4940         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4941         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
4942         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4943         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4944         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
4945         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4946         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4947         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4948         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4949         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4950         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4951         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4952
4953 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
4954
4955         * NEWS (2.23): Fix typo in bug 19048 text.
4956
4957 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
4958
4959         [BZ #14259]
4960         * Makeconfig: Rename msgcatdir to localedir.
4961         Rename inst_msgcatdir to inst_localedir.
4962         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
4963         * config.make.in: Add localedir.
4964         * elf/Makefile ($(objpfx)sotruss): Use localedir.
4965         (ldd-rewrite): Likewise.
4966         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
4967         (install-others): Use inst_localedir.
4968         (CPPFLAGS): Use localedir.
4969         * locale/Makefile (locale-CPPFLAGS): Likewise.
4970         * po/Makefile (mo-installed): Use inst_localedir.
4971
4972         [BZ #19575]
4973         * localedata/charmaps/GB18030: Update comments regarding PAU to
4974         non-PUA mappings.
4975
4976 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
4977
4978         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
4979         test for header.
4980         * sysdeps/unix/sysv/linux/configure: Regenerated.
4981         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
4982         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
4983         Remove conditional code.
4984         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
4985
4986         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4987         Define to 3.2.0.
4988         (arch_minimum_kernel): Likewise.
4989         * sysdeps/unix/sysv/linux/configure: Regenerated.
4990         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
4991         Define to 2.6.32.
4992         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
4993         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
4994         (arch_minimum_kernel): Define to 2.6.32.
4995         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
4996         * README: Document Linux 3.2 requirement.
4997         * manual/install.texi (Linux): Document Linux 3.2 headers
4998         requirement.
4999         * INSTALL: Regenerated.
5000
5001 2016-02-24  Andreas Schwab  <schwab@suse.de>
5002
5003         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
5004         if !NO_LONG_DOUBLE.
5005
5006 2016-02-22  Roland McGrath  <roland@hack.frob.com>
5007
5008         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
5009         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
5010
5011 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
5012
5013         [BZ #19512]
5014         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
5015
5016 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5017
5018         * posix/tst-dir.c: Include libc-internal.h.
5019
5020 2016-02-20  Florian Weimer  <fweimer@redhat.com>
5021
5022         [BZ #19056]
5023         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
5024         * manual/filesys.texi (Reading/Closing Directory): Mention
5025         deprecaion.
5026         * posix/tst-dir.c (main): Disable deprecation warning in test.
5027
5028 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
5029
5030         [BZ #19679]
5031         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
5032         Renamed to ...
5033         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
5034         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5035         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
5036         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5037         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5038         * sysdeps/x86_64/dl-trampoline.h
5039         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5040         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5041
5042 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5043
5044         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
5045
5046 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5047
5048         * elf/elf.h (R_386_GOT32X): New.
5049         (R_386_NUM): Update.
5050         (R_X86_64_GOTPCRELX: New.
5051         (R_X86_64_REX_GOTPCRELX): New.
5052         (R_X86_64_NUM): Update.
5053
5054 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
5055
5056         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
5057
5058 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
5059
5060         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
5061         assign attr->stackaddr to it, and adjust it down when
5062         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
5063         [_STACK_GROWS_UP]: Delete assert.
5064         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
5065         Implement stack grows up logic.
5066         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
5067         stack grows up logic.
5068
5069 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5070
5071         * NEWS: Update with 2.24 template.
5072
5073 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5074
5075         [BZ #19678]
5076         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5077         Ensure +0.0 is returned when taking the next value below the least
5078         positive value.
5079
5080 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5081
5082         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
5083         available.  Do not define NO_THREADS.
5084         * malloc/malloc.c: Do not check NO_THREADS.
5085         * malloc/arena.c: Likewise.
5086
5087 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5088
5089         * malloc/malloc.c (__libc_mallinfo): Update comment.
5090         (struct malloc_par): Remove max_total_mem member, it was always 0.
5091         (int_mallinfo): Store 0 into usmblks (no functional change).
5092         * malloc/hooks.c (struct malloc_state): Document that
5093         max_total_mem is always 0.
5094         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
5095         always 0.
5096         * manual/memory.texi (Statistics of Malloc): Likewise.
5097
5098 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5099
5100         * malloc/malloc.c (sysmalloc): Do not update arena_max.
5101         * malloc/arena.c (arena_max): Remove.
5102         (heap_trim, _int_new_arena): Do not update arena_max.
5103
5104 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5105
5106         * resolv/res_init.c (res_ninit): Update comment.
5107
5108 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5109
5110         [BZ #19505]
5111         * posix/spawn_int.h: Add headers and include guard.
5112         (__spawn_valid_fd): New function.
5113         * posix/spawn_faction_addopen.c
5114         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
5115         * posix/spawn_faction_addclose.c
5116         (posix_spawn_file_actions_addclose): Likewise.
5117         * posix/spawn_faction_adddup2.c
5118         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
5119         second file descriptor.
5120         * posix/spawn_valid_fd.c: New file.
5121         * posix/tst-posix_spawn-fd.c: New file.
5122         * posix/Makefile (routines): Add spawn_valid_fd.
5123         (tests): Add tst-posix_spawn-fd.
5124
5125 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5126
5127         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
5128         (do_test): Limit the number of arenas, so that we can use fewer
5129         outer threads.  Limit timeout to 3 seconds, in preparation for a
5130         larger TIMEOUT value.
5131
5132 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5133
5134         [BZ #19674]
5135         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
5136         sign in overflowing and underflowing results when overflow or
5137         underflow is detected early.  Include sign in result before rather
5138         than after scaling.
5139
5140         [BZ #19603]
5141         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
5142         (__ieee754_remainderl): Adjust sign of integer version of low part
5143         when taking absolute value of high part.
5144         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5145         * math/libm-test.inc (remainder_test_data): Add another test.
5146         (remquo_test_data): Likewise.
5147
5148 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
5149
5150         [BZ #19602]
5151         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
5152         equal high parts and both low parts zero specially.
5153         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
5154         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
5155         Add test-fmodl-ldbl-128ibm.
5156
5157         [BZ #19595]
5158         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
5159         common logic for all cases of shifting subnormal results.  Do not
5160         insert sign bit in shifted mantissa.  Always pass -1023 as biased
5161         exponent to ldbl_insert_mantissa in subnormal case.
5162
5163         [BZ #19594]
5164         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
5165         on high and low parts then adjust result and use
5166         ldbl_canonicalize_int if needed.
5167
5168         [BZ #19593]
5169         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
5170         on high part and __floor or __ceil on low part then use
5171         ldbl_canonicalize_int if needed.
5172
5173         [BZ #19592]
5174         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
5175         high and low parts then use ldbl_canonicalize_int if needed.
5176
5177         [BZ #17899]
5178         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
5179         New function.
5180         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
5181         on high and low parts then use ldbl_canonicalize_int if needed.
5182
5183 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5184
5185         * configure: Regenerated.
5186
5187         * po/libc.pot: Regenerated.
5188
5189         * po/be.po: Updated translation.
5190         * po/bg.po: Likewise.
5191         * po/ca.po: Likewise.
5192         * po/cs.po: Likewise.
5193         * po/da.po: Likewise.
5194         * po/el.po: Likewise.
5195         * po/eo.po: Likewise.
5196         * po/es.po: Likewise.
5197         * po/fi.po: Likewise.
5198         * po/fr.po: Likewise.
5199         * po/gl.po: Likewise.
5200         * po/hr.po: Likewise.
5201         * po/hu.po: Likewise.
5202         * po/ia.po: Likewise.
5203         * po/id.po: Likewise.
5204         * po/it.po: Likewise.
5205         * po/ja.po: Likewise.
5206         * po/lt.po: Likewise.
5207         * po/nb.po: Likewise.
5208         * po/nl.po: Likewise.
5209         * po/pt_BR.po: Likewise.
5210         * po/rw.po: Likewise.
5211         * po/sk.po: Likewise.
5212         * po/sl.po: Likewise.
5213         * po/sv.po: Likewise.
5214         * po/tr.po: Likewise.
5215         * po/zh_CN.po: Likewise.
5216         * po/zh_TW.po: Likewise.
5217
5218         * version.h (RELEAES): Set to "development".
5219         (VERSION): Set to 2.23.90.
5220
5221         * version.h (RELEASE): Set to "stable".
5222         (VERSION): Set to 2.23.
5223         * include/feature.h (__GLIBC_MINOR__): Set to 23.
5224
5225         * NEWS: Updated fixed bugs.
5226
5227 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5228             Wilco Dijkstra  <wdijkstr@arm.com>
5229
5230         [BZ #19462]
5231         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
5232         (_STRING_INLINE_unaligned): This.
5233         * include/string.h: Include <string_private.h>.
5234         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
5235         _STRING_INLINE_unaligned.
5236         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
5237         (_STRING_INLINE_unaligned): New.
5238         * sysdeps/aarch64/string_private.h: New file.
5239         * sysdeps/generic/string_private.h: Likewise.
5240         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
5241         * sysdeps/s390/string_private.h: Likewise.
5242         * sysdeps/x86/string_private.h: Likewise.
5243         * sysdeps/m68k/m680x0/m68020/bits/string.h
5244         (_STRING_ARCH_unaligned): Renamed to ...
5245         (_STRING_INLINE_unaligned): This.
5246         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
5247         to ...
5248         (_STRING_INLINE_unaligned): This.
5249         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
5250         to ...
5251         (_STRING_INLINE_unaligned): This.
5252         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
5253         to ...
5254         (_STRING_INLINE_unaligned): This.
5255
5256 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
5257             H.J. Lu  <hongjiu.lu@intel.com>
5258
5259         [BZ #19590]
5260         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
5261         relocation.
5262
5263 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
5264
5265         [BZ #18665]
5266         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
5267         *herrno_p.
5268         (gaih_getanswer): Document functional behviour. Return tryagain
5269         if any result is tryagain.
5270         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
5271         when freed.
5272         * resolv/res_send.c: Add copyright text.
5273         (__libc_res_nsend): Document that MAXPACKET is expected.
5274         (send_vc): Document. Remove buffer reuse.
5275         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
5276         size of the buffer. Add Dprint for truncated UDP buffer.
5277
5278 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
5279
5280         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
5281         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
5282         * INSTALL: Regenerate.
5283
5284 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
5285             Jonathan Wakely  <jwakely@redhat.com>
5286             Carlos O'Donell  <carlos@redhat.com>
5287
5288         [BZ 19439]
5289         * math/Makefile (tests): Add test-math-isinff.
5290         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
5291         * math/bits/mathcalls.h [__USE_MISC]: Use
5292         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
5293         functions not in C++11 and which don't conflict e.g. isinff,
5294         isinfl etc.
5295         * math/test-math-isinff.cc: New file.
5296
5297 2016-02-12  Florian Weimer  <fweimer@redhat.com>
5298
5299         * misc/bug18240.c (do_test): Set RLIMIT_AS.
5300
5301 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5302
5303         [BZ #19529]
5304         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
5305
5306 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5307
5308         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5309
5310 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
5311
5312         [BZ #19550]
5313         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
5314         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
5315         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
5316         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
5317         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
5318         New syscall entry.
5319         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
5320         New syscall entry.
5321         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
5322         syscall entry.
5323
5324 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5325
5326         [BZ #18240]
5327         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
5328         unsigned int wraparound.
5329
5330 2016-01-27  Florian Weimer  <fweimer@redhat.com>
5331
5332         [BZ #18240]
5333         * misc/bug18240.c: New test.
5334         * misc/Makefile (tests): Add it.
5335
5336 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
5337             Joseph Myers  <joseph@codesourcery.com>
5338
5339         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
5340         load in branch delay slot when less than a word of input left.
5341
5342 2016-01-27  Andreas Schwab  <schwab@suse.de>
5343
5344         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
5345         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
5346         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
5347         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
5348
5349 2016-01-26  David S. Miller  <davem@davemloft.net>
5350
5351         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
5352
5353 2016-01-25  David S. Miller  <davem@davemloft.net>
5354
5355         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
5356         __sqrtl_finite.
5357         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
5358         instead using versioned_symbol.
5359         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
5360         of entries.
5361
5362         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
5363         __sqrtl_finite to GLIBC_2.23
5364
5365 2016-01-25  Ricchard Henderson  <rth@redhat.com>
5366
5367         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5368
5369 2016-01-25  Andreas Schwab  <schwab@suse.de>
5370
5371         [BZ #17514]
5372         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
5373         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
5374         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
5375         * nptl/tst-mutex-errorcheck.c: New file.
5376
5377 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5378
5379         [BZ #18560]
5380         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
5381         (IPCOP_semop): Likewise.
5382         (IPCOP_semget): Likewise.
5383         (IPCOP_semctl): Likewise.
5384         (IPCOP_msgsnd): Likewise.
5385         (IPCOP_msgrcv): Likewise.
5386         (IPCOP_msgget): Likewise.
5387         (IPCOP_msgctl): Likewise.
5388         (IPCOP_shmat): Likewise.
5389         (IPCOP_shmdt): Likewise.
5390         (IPCOP_shmget): Likewise.
5391         (IPCOP_shmctl): Likewise.
5392
5393 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5394
5395         * string/tst-endian.c: Include <libc-internal.h>.
5396         (do_test): Ignore tautological-compare warnings around
5397         "htobeXX (beXXtoh (i)) != i" and
5398         "htoleXX (leXXtoh (i)) != i" if-statements.
5399
5400 2016-01-24  David S. Miller  <davem@davemloft.net>
5401
5402         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
5403         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
5404         alias.
5405         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5406         __sqrtl_finite.
5407
5408         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5409
5410 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
5411
5412         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
5413         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
5414         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5415
5416 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5417
5418         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
5419         (thread_func): Use new function to simplify barrier check.
5420         (do_test): Use new function to simplify checking barrier exit
5421         code, and actually join the child thread.
5422
5423 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5424
5425         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
5426         semicolon.
5427         (__libc_tend): Likewise.
5428         (__libc_tabort): Likewise.
5429
5430 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
5431
5432         * sysdeps/nios2/libm-test-ulps: Update.
5433         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
5434         (__gtsf2): Likewise.
5435         (__unorddf2): Likewise.
5436         (__unordsf2): Likewise.
5437         (__ledf2): Likewise.
5438
5439 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
5440
5441         * nis/nis_table.c (__follow_path): Disable diagnostic for
5442         uninitialized variable that is a false positive for gcc 4.7.
5443         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5444
5445 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5446
5447         * sysdeps/nacl/lowlevellock-futex.h
5448         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5449         Always evaluate PRIVATE argument.
5450
5451 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5452
5453         [BZ #19490]
5454         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5455         (pthread_cond_broadcast): Use ENTRY/END
5456         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5457         (pthread_cond_signal): Likewise.
5458         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5459         Likewise.
5460         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5461         Likewise.
5462         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5463         Likewise.
5464
5465 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5466
5467         * sysdeps/ieee754/dbl-64/s_finite.c
5468         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5469         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5470         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5471         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5472         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5473
5474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5475         (__gtsf2): Add as optional for libc.so.
5476         (__unordsf2): Likewise.
5477         (__signbit): Remove for libc.so.
5478         (__signbitl): Likewise.
5479
5480 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5481
5482         * iconvdata/bug-iconv11.c (test_ibm93x):
5483         Use %zu printf format specifier for size_t argument.
5484
5485 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5486
5487         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5488         already-recorded ulps.
5489         * sysdeps/arm/libm-test-ulps: Regenerated.
5490         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5491         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5492         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5493
5494 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5495             Paul Pluzhnikov  <ppluzhnikov@google.com>
5496
5497         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5498         assembler not supporting AVX-512.
5499
5500 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5501
5502         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5503
5504 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5505
5506         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5507         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5508
5509         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5510
5511         * sysdeps/arm/libm-test-ulps: Regenerated.
5512
5513 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5514
5515         [BZ #19451]
5516         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5517
5518 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5519
5520         [BZ #19486]
5521         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5522         * sysdeps/generic/fix-fp-int-convert-overflow.h
5523         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5524         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5525         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5526         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5527         Likewise.
5528         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5529         Avoid conversions to long int where inexact exceptions
5530         could be raised.
5531         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5532         Likewise.
5533         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5534         Avoid conversions to long long int where inexact exceptions
5535         could be raised.
5536         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5537         Likewise.
5538
5539 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5540
5541         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5542         * configure: Regenerated.
5543
5544 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5545
5546         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5547
5548 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5549
5550         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5551         outside of comment.
5552
5553 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5554
5555         * nptl/tst-barrier1.c: Add description on first line.
5556         * nptl/tst-barrier2.c: Likewise.
5557         * nptl/tst-barrier3.c: Likewise.
5558         * nptl/tst-barrier4.c: Likewise.
5559         * nptl/tst-barrier5.c: Likewise.
5560
5561 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5562
5563         [BZ #18868]
5564         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5565
5566 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5567
5568         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5569         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5570         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5571         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5572         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5573         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5574         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5575         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5576         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5577         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5578         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5579
5580 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5581
5582         [BZ #13065]
5583         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5584         new implementation.
5585         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5586         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5587         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5588         (BARRIER_IN_THRESHOLD): New macro.
5589         * nptl/pthread_barrierattr_setpshared.c
5590         (pthread_barrierattr_setpshared): Clean up.
5591         * nptl/tst-barrier4.c: Correct comment.
5592         * nptl/tst-barrier5.c: New file.
5593         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5594         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5595         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5596         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5597         * nptl/lowlevelbarrier.sym: Remove.
5598         * nptl/DESIGN-barrier.txt: Remove.
5599         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5600         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5601         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5602         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5603         error.
5604         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5605         implementation.
5606
5607 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5608
5609         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5610         (do_child): Mask SIGRTMIN while thr is running.
5611
5612 2016-01-15  Martin Sebor  <msebor@redhat.com>
5613
5614         [BZ #19432]
5615         * iconvdata/Makefile: Add bug-iconv11.
5616         * iconvdata/bug-iconv11.c: New test.
5617         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5618         * iconvdata/ibm933.c: Same.
5619         * iconvdata/ibm935.c: Same.
5620         * iconvdata/ibm937.c: Same.
5621         * iconvdata/ibm939.c: Same.
5622
5623 2016-01-15  Martin Sebor  <msebor@redhat.com>
5624
5625         [BZ #19443]
5626         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5627         [DEBUG] (_ufc_set_bits): Declare used.
5628         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5629         [DEBUG] (print_all): Declare used.
5630         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5631         operands of the ternary ?: expression to target type.
5632         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5633         calling the undeclared abort.
5634         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5635
5636 2016-01-15  Martin Sebor  <msebor@redhat.com>
5637
5638         [BZ #18755]
5639         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5640         warnings.
5641         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5642         (__gai_create_helper_thread): Same.
5643         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5644         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5645         to suppress -Wmaybe-uninitialized warnings.
5646
5647 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5648
5649         [BZ #19465]
5650         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5651         inside if.
5652         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5653         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5654         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5655
5656 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5657
5658         [BZ #19466]
5659         * time/tst-mktime2.c (time_t_max): Removed.
5660         (time_t_min): Likewise.
5661         (TYPE_SIGNED): New.
5662         (TYPE_MINIMUM): Likewise.
5663         (TYPE_MAXIMUM): Likewise.
5664         (TIME_T_MIN): Likewise.
5665         (TIME_T_MAX): Likewise.
5666         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5667         and TIME_T_MIN.
5668         (do_test): Likewise.
5669
5670 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5671
5672         [BZ #19467]
5673         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5674         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5675
5676 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5677
5678         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5679
5680 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5681
5682         * benchtests/Makefile (PYTHON): Define.
5683         (bench-func): Use $(PYTHON) to run python scripts.
5684         ($(objpfx)bench-%.c): Likewise.
5685
5686 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5687
5688         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5689         leading slash when `file_name' is "/".
5690
5691 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5692
5693         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5694         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5695         Likewise.
5696         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5697         Likewise.
5698         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5699         Likewise.
5700         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5701         enum constant and macro.
5702         (PTRACE_SETSIGMASK): Likewise.
5703         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5704         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5705         (PTRACE_GETSIGMASK): Likewise.
5706         (PTRACE_SETSIGMASK): Likewise.
5707         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5708         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5709         Likewise.
5710         (PTRACE_SETSIGMASK): Likewise.
5711         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5712         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5713         (PTRACE_GETSIGMASK): Likewise.
5714         (PTRACE_SETSIGMASK): Likewise.
5715         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5716         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5717         Likewise.
5718         (PTRACE_SETSIGMASK): Likewise.
5719         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5720         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5721         Likewise.
5722         (PTRACE_SETSIGMASK): Likewise.
5723         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5724         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5725         Likewise.
5726         (PTRACE_SETSIGMASK): Likewise.
5727         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5728
5729 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5730             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5731
5732         [BZ #19439]
5733         * math/bits/mathcalls.h
5734         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5735         prototype.
5736         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5737
5738 2016-01-11  Andreas Schwab  <schwab@suse.de>
5739
5740         [BZ #19253]
5741         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5742         cache when TZDEFRULES was used.
5743         * time/tst-tzname.c: New file.
5744         * time/Makefile (test): Add tst-tzname.
5745         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5746         * timezone/Makefile (test-zones): Add $(posixrules-file).
5747         ($(testdata)/$(posixrules-file)): New rule.
5748
5749 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5750
5751         Fix doc quoting problems with Texinfo 5
5752         Without this change, in the info file output, Texinfo 5 quotes code
5753         in text with undirected single quotes 'like this' and generates
5754         code examples that with many PDF readers cannot be cut out of PDFs
5755         and pasted into code.
5756         * manual/libc.texinfo: Configure the libc manual like the GNU
5757         Emacs manual, by using @documentencoding and setting
5758         txicodequoteundirected and txicodequotebacktick.  This way,
5759         Texinfo 5 quotes code in text with directed single quotes ‘like
5760         this’ and produces examples that can be cut out of PDFs.  This
5761         change causes Texinfo 5 to generate info files that contain UTF-8
5762         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5763         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5764
5765 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5766
5767         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5768         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5769         barriers to their respective compiler built-ins.
5770         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5771         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5772         * sysdeps/powerpc/sysdep.h: Likewise.
5773         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5774         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5775         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5776
5777 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5778
5779         * scripts/config.guess: Revert previous shebang change.
5780         * scripts/config.sub: Likewise.
5781         * scripts/mkinstalldirs: Likewise.
5782
5783 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5784
5785         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5786         PPC_FEATURE2_HAS_IEEE128.
5787         * sysdeps/powerpc/dl-procinfo.c:
5788         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5789
5790 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5791
5792         [BZ #19415]
5793         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5794         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5795         (_dl_lookup_address): Rewrite using function resolver trampoline.
5796         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5797         two bits in address.
5798
5799 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5800
5801         * longlong.h: Change !__SHMEDIA__ to
5802         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5803         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5804
5805 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5806             Joseph Myers  <joseph@codesourcery.com>
5807             Mark Shinwell  <shinwell@codesourcery.com>
5808             Andrew Stubbs  <ams@codesourcery.com>
5809             Rich Felker <dalias@libc.org>
5810
5811         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5812
5813 2016-01-07  Richard Henderson  <rth@redhat.com>
5814
5815         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5816
5817 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5818
5819         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5820         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5821         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5822         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5823         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5824
5825 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5826             Joseph Myers  <joseph@codesourcery.com>
5827
5828         * timezone/private.h: Update from tzcode 2015g.
5829         * timezone/tzfile.h: Likewise.
5830         * timezone/tzselect.ksh: Likewise.
5831         * timezone/zdump.c: Likewise.
5832         * timezone/zic.c: Likewise.
5833         * timezone/ialloc.c: Remove file.
5834         * timezone/scheck.c: Likewise.
5835         * timezone/Makefile (extra-objs): Remove variable.
5836         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5837         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5838         -Wno-maybe-uninitialized.
5839         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5840         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5841         (CFLAGS-ialloc.c): Remove variable.
5842         (CFLAGS-scheck.c): Likewise.
5843         * timezone/README: Update list of files from tzcode.
5844
5845 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5846
5847         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5848         instead of __fxprintf when _LIBC is undefined.
5849
5850 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5851
5852         * catgets/test-gencat.sh: Remove space after shebang.
5853         * conform/GlibcConform.pm: Likewise.
5854         * conform/check-header-lists.sh: Likewise.
5855         * conform/conformtest.pl: Likewise.
5856         * conform/linknamespace.pl: Likewise.
5857         * conform/list-header-symbols.pl: Likewise.
5858         * debug/catchsegv.sh: Likewise.
5859         * elf/genrtldtbl.awk: Likewise.
5860         * elf/tst-pathopt.sh: Likewise.
5861         * elf/tst-rtld-load-self.sh: Likewise.
5862         * grp/tst_fgetgrent.sh: Likewise.
5863         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5864         * iconvdata/gen-8bit-gap.sh: Likewise.
5865         * iconvdata/gen-8bit.sh: Likewise.
5866         * iconvdata/run-iconv-test.sh: Likewise.
5867         * intl/tst-gettext.sh: Likewise.
5868         * intl/tst-gettext2.sh: Likewise.
5869         * intl/tst-gettext4.sh: Likewise.
5870         * intl/tst-gettext6.sh: Likewise.
5871         * intl/tst-translit.sh: Likewise.
5872         * io/ftwtest-sh: Likewise.
5873         * libio/test-freopen.sh: Likewise.
5874         * locale/gen-translit.pl: Likewise.
5875         * malloc/tst-mtrace.sh: Likewise.
5876         * manual/check-safety.sh: Likewise.
5877         * manual/libc-texinfo.sh: Likewise.
5878         * manual/tsort.awk: Likewise.
5879         * manual/xtract-typefun.awk: Likewise.
5880         * nptl/tst-cancel-wrappers.sh: Likewise.
5881         * nptl/tst-tls6.sh: Likewise.
5882         * posix/globtest.sh: Likewise.
5883         * posix/tst-getconf.sh: Likewise.
5884         * posix/wordexp-tst.sh: Likewise.
5885         * scripts/check-c++-types.sh: Likewise.
5886         * scripts/check-local-headers.sh: Likewise.
5887         * scripts/config.guess: Likewise.
5888         * scripts/config.sub: Likewise.
5889         * scripts/cpp: Likewise.
5890         * scripts/cross-test-ssh.sh: Likewise.
5891         * scripts/documented.sh: Likewise.
5892         * scripts/evaluate-test.sh: Likewise.
5893         * scripts/gen-libc-abis: Likewise.
5894         * scripts/gen-sorted.awk: Likewise.
5895         * scripts/list-fixed-bugs.py: Likewise.
5896         * scripts/merge-test-results.sh: Likewise.
5897         * scripts/mkinstalldirs: Likewise.
5898         * scripts/rellns-sh: Likewise.
5899         * scripts/test-installation.pl: Likewise.
5900         * scripts/update-copyrights: Likewise.
5901         * stdio-common/tst-printf.sh: Likewise.
5902         * stdio-common/tst-unbputc.sh: Likewise.
5903         * stdlib/tst-fmtmsg.sh: Likewise.
5904         * stdlib/tst-setcontext3.sh: Likewise.
5905         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
5906         * sysdeps/unix/make-syscalls.sh: Likewise.
5907
5908 2016-01-06  John David Anglin  <dave.anglin@bell.net>
5909
5910         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
5911         asm stw with atomic_exchange_rel.  Add explanatory comment.
5912         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
5913         Likewise.
5914
5915 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5916
5917         [BZ #19122]
5918         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
5919         * sysdeps/generic/dl-unistd.h: New file.
5920         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
5921
5922 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5923
5924          [BZ #19122]
5925          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
5926          * sysdeps/generic/dl-mman.h: New file.
5927          * sysdeps/mach/hurd/dl-mman.h: Likewise.
5928
5929 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
5930
5931         * manual/texinfo.tex: Update to version 2016-01-04.21 with
5932         trailing whitespace removed.
5933         * scripts/config.guess: Update to version 2016-01-01.
5934         * scripts/config.sub: Update to version 2016-01-01.
5935         * scripts/move-if-change: Update from gnulib.
5936
5937 2016-01-04  Anton Blanchard  <anton@samba.org>
5938
5939         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
5940         for array indices.
5941         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
5942
5943 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
5944
5945         * NEWS: Update copyright dates.
5946         * catgets/gencat.c (print_version): Likewise.
5947         * csu/version.c (banner): Likewise.
5948         * debug/catchsegv.sh: Likewise.
5949         * debug/pcprofiledump.c (print_version): Likewise.
5950         * debug/xtrace.sh (do_version): Likewise.
5951         * elf/ldconfig.c (print_version): Likewise.
5952         * elf/ldd.bash.in: Likewise.
5953         * elf/pldd.c (print_version): Likewise.
5954         * elf/sotruss.sh: Likewise.
5955         * elf/sprof.c (print_version): Likewise.
5956         * iconv/iconv_prog.c (print_version): Likewise.
5957         * iconv/iconvconfig.c (print_version): Likewise.
5958         * locale/programs/locale.c (print_version): Likewise.
5959         * locale/programs/localedef.c (print_version): Likewise.
5960         * login/programs/pt_chown.c (print_version): Likewise.
5961         * malloc/memusage.sh (do_version): Likewise.
5962         * malloc/memusagestat.c (print_version): Likewise.
5963         * malloc/mtrace.pl: Likewise.
5964         * manual/libc.texinfo: Likewise.
5965         * nptl/version.c (banner): Likewise.
5966         * nscd/nscd.c (print_version): Likewise.
5967         * nss/getent.c (print_version): Likewise.
5968         * nss/makedb.c (print_version): Likewise.
5969         * posix/getconf.c (main): Likewise.
5970         * scripts/test-installation.pl: Likewise.
5971         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5972
5973         * All files with FSF copyright notices: Update copyright dates
5974         using scripts/update-copyrights.
5975         * intl/plural.c: Regenerated.
5976         * locale/programs/charmap-kw.h: Likewise.
5977         * locale/programs/locfile-kw.h: Likewise.
5978
5979 2016-01-02  Helge Deller  <deller@gmx.de>
5980
5981         [BZ #19285]
5982         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
5983         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
5984         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
5985         (MADV_xxK_PAGES): Remove.
5986
5987 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
5988
5989         [BZ #15421]
5990         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
5991         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
5992         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
5993         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
5994
5995 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
5996
5997         [BZ #19408]
5998         * sysdeps/unix/sysv/linux/personality.c: New file.
5999         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
6000         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
6001         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
6002         (sysdep_routines): Add personality.
6003         (tests): Add tst-personality.
6004         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
6005         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
6006         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
6007         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
6008         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
6009         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
6010         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
6011         Likewise.
6012         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
6013         Likewise.
6014         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
6015         Likewise.
6016         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
6017         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
6018         Likewise.
6019
6020 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
6021
6022         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
6023         (PATH_ARM_SYSTYPE): Remove.
6024         (PATH_CPUINFO): Likewise.
6025         (IO_BASE_FOOTBRIDGE): Likewise.
6026         (IO_SHIFT_FOOTBRIDGE): Likewise.
6027         (struct platform): Likewise.
6028         (init_iosys): Remove compatibility code for 2.4 kernels.
6029         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
6030
6031 2015-12-29  Florian Weimer  <fweimer@redhat.com>
6032
6033         * malloc/tst-malloc-thread-fail.c: New file.
6034         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
6035         (tst-malloc-thread-fail): Link against libpthread.
6036
6037 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
6038
6039         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
6040         (get_parser): New function.
6041         (main): New function.
6042
6043 2015-12-29  Rob Wu  <rob@robwu.nl>
6044
6045         [BZ #19369]
6046         * resolv/res_init.c (__res_vinit): Reset defdname before use.
6047
6048 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
6049
6050         [BZ #19270]
6051         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6052
6053 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
6054
6055         [BZ #15421]
6056         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
6057
6058 2015-12-23  Torvald Riegel  <triegel@redhat.com>
6059
6060         [BZ #13690]
6061         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
6062         after releasing it.
6063         (__lll_robust_unlock): Likewise.
6064         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6065         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
6066         (lll_robust_unlock): Likewise.
6067         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
6068         Prevent warnings in callers.
6069
6070 2015-12-23  Florian Weimer  <fweimer@redhat.com>
6071
6072         * malloc/arena.c (list_lock): Update comment.
6073
6074 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6075
6076         * sysdeps/powerpc/hwcapinfo.c: Export symbol
6077         __parse_hwcap_and_convert_at_platform to libc.a.
6078
6079 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6080
6081         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
6082         platform and feature support for POWER9.
6083         * sysdeps/powerpc/dl-procinfo.h: Likewise.
6084         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
6085         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
6086         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
6087         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
6088         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
6089         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
6090         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
6091
6092 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6093
6094         Harmonize generic stdio-lock support with nptl
6095
6096         This fixes build when _IO_funlockfile is a macro, fixes build where
6097         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
6098         stack unwind.
6099
6100         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
6101         _IO_release_lock ): Use cleanup attribute on new
6102         _IO_acquire_lock_file variable instead of assuming that
6103         _IO_release_lock will be called.
6104         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
6105         _IO_acquire_lock_needs_exceptions_enabled.
6106         (_IO_acquire_lock_clear_flags2): New macro.
6107
6108 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6109
6110         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
6111
6112 2015-12-21  Florian Weimer  <fweimer@redhat.com>
6113
6114         [BZ #19182]
6115         * malloc/arena.c (list_lock): Document lock ordering requirements.
6116         (free_list_lock): New lock.
6117         (ptmalloc_lock_all): Comment on free_list_lock.
6118         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
6119         (detach_arena): Update comment.  free_list_lock is now needed.
6120         (_int_new_arena): Use free_list_lock around detach_arena call.
6121         Acquire arena lock after list_lock.  Add comment, including FIXME
6122         about incorrect synchronization.
6123         (get_free_list): Switch to free_list_lock.
6124         (reused_arena): Acquire free_list_lock around detach_arena call
6125         and attached threads counter update.  Add two FIXMEs about
6126         incorrect synchronization.
6127         (arena_thread_freeres): Switch to free_list_lock.
6128         * malloc/malloc.c (struct malloc_state): Update comments to
6129         mention free_list_lock.
6130
6131 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6132
6133         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
6134         Remove functions.
6135         (sloww, sloww1): Accept argument to offset quadrant.
6136         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
6137         quadrant.
6138         (__sin, __cos): Consolidate common code into new functions.
6139         (reduce_sincos_1, do_sincos_1): New functions.
6140         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6141
6142         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
6143         code to new functions.
6144         (reduce_sincos_2, do_sincos_2): New functions.
6145         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6146
6147         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
6148         common code for sincos.
6149         (__cos) [!IN_SINCOS]: Likewise.
6150         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
6151         New function.
6152         (__sincos): Use it.
6153
6154 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
6155
6156         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
6157         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
6158         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6159
6160 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
6161
6162         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
6163         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
6164         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
6165         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
6166         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6167         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
6168         index_Prefer_No_VZEROUPPER): New feature.
6169         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
6170         Prefer_No_VZEROUPPER for Knights Landing.
6171
6172 015-12-18  Torvald Riegel  <triegel@redhat.com>
6173
6174         * math/atest-exp2.c (mp_exp_m1): Remove.
6175
6176 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6177
6178         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
6179         syscalls.
6180         (__SYSCALL0): New macro.
6181         (__SYSCALL1): Likewise.
6182         (__SYSCALL2): Likewise.
6183         (__SYSCALL3): Likewise.
6184         (__SYSCALL4): Likewise.
6185         (__SYSCALL5): Likewise.
6186         (__SYSCALL6): Likewise.
6187         (__SYSCALL_CONCAT_X): Likewise.
6188         (__SYSCALL_CONCAT): Likewise.
6189         (__SYSCALL_DIST): Likewise.
6190         (__SYSCALL_CALL): Likewise.
6191
6192 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
6193
6194         [BZ #19363]
6195         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
6196
6197 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6198
6199         [BZ #19375]
6200         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
6201         negative subnormals.
6202
6203 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
6204
6205         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6206         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
6207         (INTERNAL_SYSCALL_NCS): Use it.
6208         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6209
6210 2015-12-16  Florian Weimer  <fweimer@redhat.com>
6211
6212         [BZ #19243]
6213         * malloc/arena.c (get_free_list): Remove assert and adjust
6214         reference count handling.  Add comment about reused_arena
6215         interaction.
6216         (reused_arena): Add comments abount get_free_list interaction.
6217         * malloc/tst-malloc-thread-exit.c: New file.
6218         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
6219         (tst-malloc-thread-exit): Link against libpthread.
6220
6221 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6222
6223         [BZ #19367]
6224         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
6225         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
6226         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
6227         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
6228         (index_Prefer_MAP_32BIT_EXEC): Likewise.
6229
6230 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6231
6232         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
6233         Silvermont optimizations for Knights Landing.
6234
6235 2015-12-15  Andreas Schwab  <schwab@suse.de>
6236
6237         [BZ #17197]
6238         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
6239         immediately after emitting SI.
6240         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
6241         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
6242         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
6243         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
6244         * iconvdata/bug-iconv10.c: New file.
6245         * iconvdata/Makefile (tests): Add bug-iconv10.
6246         ($(objpfx)bug-iconv10.out): New rule.
6247
6248 2015-12-15  Florian Weimer  <fweimer@redhat.com>
6249
6250         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
6251         aliasing violation.
6252
6253 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
6254
6255         [BZ #18472]
6256         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
6257         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
6258         conditionals for them.
6259         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
6260         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
6261         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
6262         sys/kdaemon.h.
6263         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
6264         compat-only syscall, obsoleted in glibc 2.23.
6265         (create_module): Likewise.
6266         (get_kernel_syms): Likewise.
6267         (query_module): Likewise.
6268         (uselib): Likewise.
6269         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
6270
6271 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
6272
6273         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
6274         <linux/version.h>.
6275         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
6276         conditional code.
6277         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
6278         and ioshift_name initialization.
6279
6280 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6281
6282         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
6283         Fix indentation.
6284
6285 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6286
6287         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
6288
6289 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6290
6291         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
6292
6293 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
6294             Jakub Wilk  <jwilk@debian.org>
6295
6296         [BZ #19347]
6297         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
6298         to change the group of the device to the tty group.
6299
6300 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6301
6302         Split large string section; add truncation advice
6303         * manual/examples/strncat.c: Remove.
6304         This example was misleading, as the code would have undefined
6305         behavior if "hello" was longer than SIZE.  Anyway, the manual
6306         shouldn't encourage strncpy+strncat for this sort of thing.
6307         * manual/string.texi (Copying Strings and Arrays): Split into
6308         three sections Copying Strings and Arrays, Concatenating Strings,
6309         and Truncating Strings, as this section was way too long.  All
6310         cross-referenced changed.  Add advice about string-truncation
6311         functions.  Remove misleading strncat example.
6312
6313 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
6314
6315         * manual/nss.texi (NSS Modules Interface): Document
6316         NSS_STATUS_NOTFOUND and SUCCESS.
6317
6318 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6319
6320         [BZ 18568]
6321         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6322         201505L, for Unicode 8.
6323
6324 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
6325
6326         * locale/C-translit.h: Regenerate.
6327
6328 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6329
6330         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
6331         and U+0153.
6332
6333 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
6334
6335         [BZ #19351]
6336         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
6337         expanding log(1+z), compare z rather than its square with epsilon
6338         to determine when to avoid evaluating the expansion.
6339
6340         [BZ #19350]
6341         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
6342         Increase overflow threshold.
6343
6344         [BZ #19349]
6345         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
6346         when small.
6347
6348         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6349         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6350         New macro.
6351         [__LINUX_KERNEL_VERSION >= 0x040300]
6352         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6353         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6354         Likewise.
6355         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6356         Likewise.
6357         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6358         Likewise.
6359         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6360         Likewise.
6361         [__LINUX_KERNEL_VERSION >= 0x040300]
6362         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6363         [__LINUX_KERNEL_VERSION >= 0x040300]
6364         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6365         [__LINUX_KERNEL_VERSION >= 0x040300]
6366         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6367         [__LINUX_KERNEL_VERSION >= 0x040300]
6368         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6369         [__LINUX_KERNEL_VERSION >= 0x040300]
6370         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6371         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6372         Likewise.
6373         [__LINUX_KERNEL_VERSION >= 0x040300]
6374         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6375         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6376         Likewise.
6377         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6378         Likewise.
6379         [__LINUX_KERNEL_VERSION >= 0x040300]
6380         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6381         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6382         Likewise.
6383         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6384         Likewise.
6385         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6386         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
6387         Likewise.
6388         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
6389         Likewise.
6390         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6391         Likewise.
6392         [__LINUX_KERNEL_VERSION >= 0x040300]
6393         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6394         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6395         Likewise.
6396         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6397         Likewise.
6398         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6399         Likewise.
6400         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6401         Likewise.
6402         [__LINUX_KERNEL_VERSION >= 0x040300]
6403         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6404         [__LINUX_KERNEL_VERSION >= 0x040300]
6405         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6406         [__LINUX_KERNEL_VERSION >= 0x040300]
6407         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6408         [__LINUX_KERNEL_VERSION >= 0x040300]
6409         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6410         [__LINUX_KERNEL_VERSION >= 0x040300]
6411         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6412         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6413         Likewise.
6414         [__LINUX_KERNEL_VERSION >= 0x040300]
6415         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6416         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6417         Likewise.
6418         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6419         Likewise.
6420         [__LINUX_KERNEL_VERSION >= 0x040300]
6421         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6422         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6423         Likewise.
6424         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6425         Likewise.
6426         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6427         (__ASSUME_SOCKET_SYSCALL): Likewise.
6428         (__ASSUME_BIND_SYSCALL): Likewise.
6429         (__ASSUME_CONNECT_SYSCALL): Likewise.
6430         (__ASSUME_LISTEN_SYSCALL): Likewise.
6431         (__ASSUME_ACCEPT_SYSCALL): Likewise.
6432         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6433         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6434         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6435         (__ASSUME_SEND_SYSCALL): Likewise.
6436         (__ASSUME_SENDTO_SYSCALL): Likewise.
6437         (__ASSUME_RECV_SYSCALL): Likewise.
6438         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6439         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
6440         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6441         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6442         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6443         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6444         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6445         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6446         Likewise.
6447         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6448         Likewise.
6449         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6450         Likewise.
6451         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6452         Likewise.
6453         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6454         Likewise.
6455         [__LINUX_KERNEL_VERSION >= 0x020625]
6456         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6457         [__LINUX_KERNEL_VERSION >= 0x020625]
6458         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6459         [__LINUX_KERNEL_VERSION >= 0x020625]
6460         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6461         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6462         Likewise.
6463         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6464         Likewise.
6465         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6466         Likewise.
6467         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6468         Likewise.
6469         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6470         Likewise.
6471         [__LINUX_KERNEL_VERSION >= 0x020625]
6472         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6473         [__LINUX_KERNEL_VERSION >= 0x020625]
6474         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6475         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6476         Likewise.
6477         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6478         Likewise.
6479
6480 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6481
6482         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6483         record the current if the current ABI and CPU support the FP64
6484         extension.
6485         (has-modd-spreg): Define to record the current if the current ABI and
6486         CPU support 32-bit floating point values in odd FPU registers.
6487         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6488         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6489         $(has-modd-spreg) equals yes.
6490         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6491         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6492         $(has-modd-spreg) equal yes.
6493
6494 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6495
6496         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6497         basename.
6498
6499 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6500
6501         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6502         (bench-string): ... here.
6503         (bench): Add bench-string.
6504         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6505         to *-benchset to reflect what they are.
6506         (benchset): Adjust.
6507
6508         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6509         cos-inputs.
6510
6511 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6512
6513         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6514         __attribute__ ((__simd__)) for vector math function declarations.
6515
6516 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6517
6518         Fix typo in strncat, wcsncat manual entries
6519         * manual/string.texi (Copying and Concatenation): Fix typos in
6520         sample implementations of strncat and wcsncat, by having them use
6521         the old value of the destination length, not the new one.
6522
6523 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6524
6525         [BZ #16961]
6526         [BZ #16962]
6527         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6528         string on the stack for strtod.
6529         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6530         a string on the stack for strtof.
6531         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6532         constructing a string on the stack for strtold.
6533         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6534         __strtold_nan to GLIBC_PRIVATE.
6535         * math/test-nan-overflow.c: New file.
6536         * math/test-nan-payload.c: Likewise.
6537         * math/Makefile (tests): Add test-nan-overflow and
6538         test-nan-payload.
6539
6540 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6541
6542         Consistency about byte vs character in string.texi
6543         * manual/string.texi (String and Array Utilities):
6544         Distinguish more carefully among bytes, multibyte characters,
6545         and wide characters.  Use "byte" when talking about C 'char',
6546         to distinguish it more clearly from multibyte characters.
6547         Say "wide character" or "multibyte character" instead of
6548         "character", when a wide or multibyte character is intended.
6549         Similarly for "multibyte string" versus "string".
6550         Define these terms more carefully.
6551
6552 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6553
6554         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6555         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6556         Likewise.
6557         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6558         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6559         * sysdeps/sh/math_private.h: New file.
6560         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6561         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6562         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6563         long double function name.
6564         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6565         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6566         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6567         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6568         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6569         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6570         Remove __finitel, __isinfl, and __isnanl.
6571         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6572         Likewise.
6573         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6574         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6575         Remove __finitel.
6576         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6577         Likewise.
6578         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6579
6580 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6581
6582         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6583         installed libmvec_nonshared.a.
6584
6585 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6586
6587         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6588         (sysdep_routines): Likewise.
6589         (sysdep-rtld-routines): Likewise.
6590         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6591         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6592         * sysdeps/powerpc/Versions: Added new
6593         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6594         * sysdeps/powerpc/hwcapinfo.c: New file.
6595         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6596         and parse hwcap, hwcap2 and platform number information.
6597         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6598         to store HWCAP+HWCAP2 and platform number.
6599         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6600         for HWCAP+HWCAP2 and platform number in the TCB.
6601         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6602         the HWCAP, HWCAP2 and platform number in the TCB.
6603         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6604         (TLS_INIT_TP): Included calls to add the hwcap and
6605         at_platform values in the TCB in TP initialization.
6606         (TLS_DEFINE_INIT_TP): Likewise.
6607         (THREAD_GET_HWCAP): New macro.
6608         (THREAD_SET_HWCAP): Likewise.
6609         (THREAD_GET_AT_PLATFORM): Likewise.
6610         (THREAD_SET_AT_PLATFORM): Likewise.
6611         * sysdeps/powerpc/powerpc32/dl-machine.h:
6612         (dl_platform_init): New function that calls
6613         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6614         powerpc32.
6615         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6616         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6617         this functionality, static linking case.
6618         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6619         linking case.
6620         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6621         __parse_hwcap_and_convert_at_platform for the static linking case.
6622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6623         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6624         ABI list for GLIBC 2.23.
6625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6626         Likewise.
6627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6628         Likewise.
6629
6630 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6631
6632         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6633         * configure: Regenerate.
6634         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6635         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6636
6637 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6638
6639         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6640         * iconvdata/ibm933.c: Likewise.
6641         * iconvdata/ibm935.c: Likewise.
6642         * iconvdata/ibm937.c: Likewise.
6643         * iconvdata/ibm939.c: Likewise.
6644
6645 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6646
6647         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6648         pthread_join.
6649         * nptl/tst-cancel21.c (tf): Likewise.
6650
6651 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6652
6653         [BZ #19313]
6654         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6655         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6656         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6657         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6658         Likewise.
6659         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6660         Likewise.
6661         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6662         Likewise.
6663         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6664         Likewise.
6665         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6666         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6667         unsigned long int with __CPU_MASK_TYPE.
6668
6669 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6670
6671         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6672
6673 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6674
6675         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6676         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6677         t512.x.
6678         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6679
6680 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6681
6682         [BZ #19214]
6683         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6684         argument to return extended model.  Update family and model
6685         with extended family and model when family == 0x0f.
6686         (init_cpu_features): Updated.
6687
6688 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6689
6690         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6691         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6692
6693         * sysdeps/mach/hurd/mmap64.c: New file.
6694
6695 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6696
6697         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6698         rights for its main user thread in NEWTASK.
6699
6700 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6701
6702         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6703         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6704
6705 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6706
6707         [BZ #14259]
6708         * Makeconfig: Rename localedir to complocaledir.
6709         Rename inst_localedir to inst_complocaledir.
6710         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6711         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6712         * configure.ac: Use libc_cv_complocaledir.
6713         * configure: Regenerate.
6714         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6715         -DCOMPLOCALEDIR.
6716         * locale/findlocale.c: Use COMPLOCALEDIR.
6717         * locale/loadarchive.c: Likewise.
6718         * locale/programs/locale.c: Likewise.
6719         * locale/programs/localedef.c: Likewise.
6720         * locale/programs/locarchive.c: Likewise.
6721         * localedata/Makefile: Use inst_complocaledir.
6722         * sysdeps/gnu/configure: Regenerate.
6723         * sysdeps/hppa/configure: Regenerate.
6724         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6725         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6727         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6728         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6729         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6730         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6731
6732 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6733
6734         [BZ #19058]
6735         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6736         AS_NEEDED.
6737         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6738         workaround.
6739         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6740         libmvec-static-only-routines): Added new file.
6741         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6742
6743 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6744
6745         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6746         of interrupted RPC instead of restoring it.
6747
6748         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6749         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6750         libc_hidden_def.
6751         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6752         into initialized data instead of common. Define rtld_hidden_data_def.
6753         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6754         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6755         libc_hidden_def.
6756         (if_freenameindex): Add libc_hidden_weak.
6757         (if_nameindex): Add libc_hidden_weak.
6758         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6759         __open64.
6760         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6761         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6762         * sysdeps/mach/nanosleep.c: Include <time.h>
6763         (__nanosleep): Rename to __libc_nanosleep.
6764         (__nanosleep): Add weak_alias.
6765         (nanosleep): Update alias.
6766
6767 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6768
6769         * stdlib/strtod_nan.c: New file.
6770         * stdlib/strtod_nan_double.h: Likewise.
6771         * stdlib/strtod_nan_float.h: Likewise.
6772         * stdlib/strtod_nan_main.c: Likewise.
6773         * stdlib/strtod_nan_narrow.h: Likewise.
6774         * stdlib/strtod_nan_wide.h: Likewise.
6775         * stdlib/strtof_nan.c: Likewise.
6776         * stdlib/strtold_nan.c: Likewise.
6777         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6778         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6779         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6780         * wcsmbs/wcstod_nan.c: Likewise.
6781         * wcsmbs/wcstof_nan.c: Likewise.
6782         * wcsmbs/wcstold_nan.c: Likewise.
6783         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6784         strtold_nan.
6785         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6786         wcstof_nan.
6787         * include/stdlib.h (__strtof_nan): Declare and use
6788         libc_hidden_proto.
6789         (__strtod_nan): Likewise.
6790         (__strtold_nan): Likewise.
6791         (__wcstof_nan): Likewise.
6792         (__wcstod_nan): Likewise.
6793         (__wcstold_nan): Likewise.
6794         * include/wchar.h (____wcstoull_l_internal): Declare.
6795         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6796         (____strtoull_l_internal): Remove declaration.
6797         (STRTOF_NAN): Define macro.
6798         (SET_MANTISSA): Remove macro.
6799         (STRTOULL): Likewise.
6800         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6801         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6802         (STRTOF_NAN): Define macro.
6803         (SET_MANTISSA): Remove macro.
6804         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6805         (SET_MANTISSA): Remove macro.
6806         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6807         macro.
6808         (SET_MANTISSA): Remove macro.
6809         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6810         macro.
6811         (SET_MANTISSA): Remove macro.
6812         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6813         (SET_MANTISSA): Remove macro.
6814         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6815         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6816         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6817
6818         [BZ #19266]
6819         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6820         upper case and lower case letters inside NAN(), not using TOLOWER.
6821         * stdlib/tst-strtod-nan-locale-main.c: New file.
6822         * stdlib/tst-strtod-nan-locale.c: Likewise.
6823         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6824         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6825         Depend on $(gen-locales).
6826         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6827         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6828         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6829         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6830         Depend on $(gen-locales).
6831         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6832
6833 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6834
6835         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6836
6837         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6838         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6839         __finitel, __isinfl, and __isnanl.
6840         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6841         Likewise.
6842         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6843         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6844         __finitel.
6845         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6846         Likewise.
6847         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6848
6849 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6850
6851         * malloc/memusage.c (me): Remove redundant getenv call.
6852
6853 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6854
6855         [BZ #19143]
6856         [BZ #19164]
6857         * nptl/check-cpuset.h: Remove.
6858         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6859         Remove CPU set size check.
6860         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6861         Likewise.
6862         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6863         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6864         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6865         (__pthread_setaffinity_new): Remove CPU set size check.
6866         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6867         (__kernel_cpumask_size): Remove.
6868         (__sched_setaffinity_new): Remove CPU set size check.
6869         * manual/threads.texi (Default Thread Attributes): Remove stale
6870         reference to check_cpuset_attr, determine_cpumask_size in comment.
6871         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6872         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6873         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6874         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6875         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6876         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6877         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6878         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6879         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6880         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6881         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6882         skeleton test file.
6883         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6884         tst-affinity-pid.
6885
6886 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6887
6888         * scripts/update-abilist.sh: New file.
6889         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6890         * Makerules (update-all-abi-%, update-all-abi)
6891         (subdir_update-all-abi): New targets.
6892         * elf/Makefile (update-all-abi): New target.
6893
6894 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6895
6896         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6897         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6898         (__libc_lock_define_initialized): Use it.
6899         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6900         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6901         * malloc/malloc.c (main_arena): Likewise.
6902         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6903         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6904
6905 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
6906
6907         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6908         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
6909         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6910         (PTRACE_O_MASK): Update value.
6911         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
6912         New value in enum __ptrace_setoptions.
6913         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6914         (PTRACE_O_MASK): Update value.
6915         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6916         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6917         (PTRACE_O_MASK): Update value.
6918         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
6919         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6920         (PTRACE_O_MASK): Update value.
6921         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
6922         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6923         (PTRACE_O_MASK): Update value.
6924         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
6925         New value in enum __ptrace_setoptions.
6926         (PTRACE_O_MASK): Update value.
6927         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
6928         New value in enum __ptrace_setoptions.
6929         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6930         (PTRACE_O_MASK): Update value.
6931
6932         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
6933         New macro.
6934         (PACKET_AUXDATA): Likewise.
6935         (PACKET_ORIGDEV): Likewise.
6936         (PACKET_VERSION): Likewise.
6937         (PACKET_HDRLEN): Likewise.
6938         (PACKET_RESERVE): Likewise.
6939         (PACKET_TX_RING): Likewise.
6940         (PACKET_LOSS): Likewise.
6941         (PACKET_VNET_HDR): Likewise.
6942         (PACKET_TX_TIMESTAMP): Likewise.
6943         (PACKET_TIMESTAMP): Likewise.
6944         (PACKET_FANOUT): Likewise.
6945         (PACKET_TX_HAS_OFF): Likewise.
6946         (PACKET_QDISC_BYPASS): Likewise.
6947         (PACKET_ROLLOVER_STATS): Likewise.
6948         (PACKET_FANOUT_DATA): Likewise.
6949         (PACKET_MR_UNICAST): Likewise.
6950
6951         [BZ #19242]
6952         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
6953         (TOUPPER): Likewise.
6954         * stdlib/tst-strtol-locale-main.c: New file.
6955         * stdlib/tst-strtol-locale.c: Likewise.
6956         * stdlib/Makefile (tests): Add tst-strtol-locale.
6957         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
6958         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
6959         Depend on $(gen-locales).
6960         * wcsmbs/tst-wcstol-locale.c: New file.
6961         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
6962         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
6963         tr_TR.ISO-8859-9.
6964         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
6965         Depend on $(gen-locales).
6966
6967 2015-11-20  Roland McGrath  <roland@hack.frob.com>
6968
6969         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
6970         __glibc_likely instead of __builtin_expect.  After falling back to
6971         dyncode_create in a non-ET_DYN case, use the allocate_code_data
6972         system interface to register the code pages as occupied.
6973
6974 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
6975
6976         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6977         [!ARM_MATH_PRIVATE_H].
6978         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
6979         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6980         [!HPPA_MATH_PRIVATE_H].
6981         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
6982         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
6983         to [!I386_MATH_PRIVATE_H].
6984         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
6985         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
6986         Change guard to [!M68K_MATH_PRIVATE_H].
6987         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
6988         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
6989         guard to [!MICROBLAZE_MATH_PRIVATE_H].
6990         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
6991         macro.
6992         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6993         [!MIPS_MATH_PRIVATE_H].
6994         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
6995         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6996         [!NIO2_MATH_PRIVATE_H].
6997         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
6998         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
6999         [!TILE_MATH_PRIVATE_H].
7000         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
7001
7002         [BZ #15421]
7003         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
7004         initialize with 0 and define as weak alias of __signgam.
7005         * include/math.h [!_ISOMAC] (__signgam): Declare.
7006         * math/Makefile (libm-calls): Add w_lgamma_compat.
7007         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
7008         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
7009         test-signgam-ullong-init.
7010         (tests-static): Add test-signgam-uchar-static,
7011         test-signgam-uchar-init-static, test-signgam-uint-static,
7012         test-signgam-uint-init-static, test-signgam-ullong-static and
7013         test-signgam-ullong-init-static.
7014         (CFLAGS-test-signgam-uchar.c): New variable.
7015         (CFLAGS-test-signgam-uchar-init.c): Likewise.
7016         (CFLAGS-test-signgam-uchar-static.c): Likewise.
7017         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
7018         (CFLAGS-test-signgam-uint.c): Likewise.
7019         (CFLAGS-test-signgam-uint-init.c): Likewise.
7020         (CFLAGS-test-signgam-uint-static.c): Likewise.
7021         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
7022         (CFLAGS-test-signgam-ullong.c): Likewise.
7023         (CFLAGS-test-signgam-ullong-init.c): Likewise.
7024         (CFLAGS-test-signgam-ullong-static.c): Likewise.
7025         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
7026         * math/Versions (libm): Add GLIBC_2.23.
7027         * math/lgamma-compat.h: New file.
7028         * math/test-signgam-main.c: Likewise.
7029         * math/test-signgam-uchar-init-static.c: Likewise.
7030         * math/test-signgam-uchar-init.c: Likewise.
7031         * math/test-signgam-uchar-static.c: Likewise.
7032         * math/test-signgam-uchar.c: Likewise.
7033         * math/test-signgam-uint-init-static.c: Likewise.
7034         * math/test-signgam-uint-init.c: Likewise.
7035         * math/test-signgam-uint-static.c: Likewise.
7036         * math/test-signgam-uint.c: Likewise.
7037         * math/test-signgam-ullong-init-static.c: Likewise.
7038         * math/test-signgam-ullong-init.c: Likewise.
7039         * math/test-signgam-ullong-static.c: Likewise.
7040         * math/test-signgam-ullong.c: Likewise.
7041         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
7042         wrapper of w_lgamma_main.c.
7043         * math/w_lgamma_compat.c: New file.
7044         * math/w_lgamma_compatf.c: Likewise.
7045         * math/w_lgamma_compatl.c: Likewise.
7046         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
7047         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7048         defining compatibility symbols.
7049         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
7050         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
7051         wrapper of w_lgammaf_main.c.
7052         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
7053         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7054         defining compatibility symbols.
7055         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
7056         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
7057         wrapper of w_lgammal_main.c.
7058         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
7059         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7060         defining compatibility symbols.
7061         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
7062         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
7063         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
7064         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
7065         <lgamma-compat.h>.
7066         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
7067         (__ieee754_gamma): Define as alias.
7068         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
7069         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
7070         <lgamma-compat.h>.
7071         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
7072         (__ieee754_gammaf): Define as alias.
7073         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
7074         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
7075         <lgamma-compat.h>.
7076         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
7077         (__ieee754_gammal): Define as alias.
7078         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
7079         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
7080         <math/w_lgamma_compat.c>.
7081         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
7082         Define as alias of __lgamma_compat and use in defining lgammal.
7083         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
7084         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
7085         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
7086         (USE_AS_COMPAT): New macro.
7087         (LGAMMA_OLD_VER): Undefine and redefine.
7088         (lgammal): Do not define here.
7089         (gammal): Only define here if [GAMMA_ALIAS].
7090         * conform/linknamespace.pl (@whitelist): Remove signgam.
7091         * sysdeps/nacl/libm.abilist: Update.
7092         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7093         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7094         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7095         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7096         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7097         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7098         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7099         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7100         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7101         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7102         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7103         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7105         Likewise.
7106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7107         Likewise.
7108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7109         Likewise.
7110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7111         Likewise.
7112         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7113         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7114         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7115         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7116         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7117         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7118         Likewise.
7119         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7120         Likewise.
7121         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7122         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7123         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7124
7125 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7126
7127         [BZ #16364]
7128         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
7129         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
7130
7131 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7132
7133         * sysdeps/s390/fpu/bits/mathinline.h:
7134         Use __asm__ [__volatile__] instead of asm [volatile].
7135         * sysdeps/s390/abort-instr.h: Likewise.
7136         * sysdeps/s390/atomic-machine.h: Likewise.
7137         * sysdeps/s390/bits/string.h: Likewise.
7138         * sysdeps/s390/dl-tls.h: Likewise.
7139         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
7140         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
7141         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
7142         * sysdeps/s390/fpu/fesetround.c: Likewise.
7143         * sysdeps/s390/fpu/fpu_control.h: Likewise.
7144         * sysdeps/s390/fpu/s_fma.c: Likewise.
7145         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
7146         * sysdeps/s390/memusage.h: Likewise.
7147         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
7148         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
7149         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
7150         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
7151         * sysdeps/s390/nptl/tls.h: Likewise.
7152         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
7153         * sysdeps/s390/s390-32/backtrace.c: Likewise.
7154         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7155         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
7156         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7157         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
7158         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
7159         * sysdeps/s390/s390-64/backtrace.c: Likewise.
7160         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7161         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
7162         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
7163         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7164         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
7165         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
7166         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
7167         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
7168         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
7169         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
7170         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
7171         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7172         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
7173         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7174         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
7175
7176 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7177             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7178
7179         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
7180         Add lwarx hint, and use macro for acquire instruction.
7181         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
7182         Likewise.
7183         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
7184         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
7185         update to use new atomic macros.
7186
7187 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7188
7189         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
7190         (__lll_trylock_elision): Fix setting of adapt_count.
7191         * sysdeps/unix/sysv/linux/powerpc/htm.h
7192         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
7193         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
7194         (_ABORT_SYSCALL): Renumber, and clarify definition.
7195         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
7196
7197 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7198
7199         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
7200         after system headers to prevent MIN/MAX redefinition.  Define
7201         HAVE_ALLOCA to preserve builtin alloca usage.
7202
7203 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
7204
7205         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
7206         static and don't set or restore rounding.
7207         (__cos)[IN_SINCOS]: Likewise.
7208         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
7209         (__sincos): Set and restore rounding mode.  Remove check for infinite
7210         or NaN input.
7211
7212         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
7213
7214         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
7215         as used.
7216
7217 2015-11-16  Florian Weimer  <fweimer@redhat.com>
7218
7219         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
7220
7221 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7222
7223         * config.make.in (have-glob-dat-reloc): New.
7224         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
7225         target supports GLOB_DAT relocaton. AC_SUBST.
7226         * configure: Regenerated.
7227         * elf/Makefile (tests): Add tst-prelink.
7228         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7229         (tst-prelink-ENV): New.
7230         ($(objpfx)tst-prelink-conflict.out): Likewise.
7231         ($(objpfx)tst-prelink-cmp.out): Likewise.
7232         * sysdeps/x86/tst-prelink.c: Moved to ...
7233         * elf/tst-prelink.c: Here.
7234         * sysdeps/x86/tst-prelink.exp: Moved to ...
7235         * elf/tst-prelink.exp: Here.
7236         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
7237         (tst-prelink-ENV): Removed.
7238         ($(objpfx)tst-prelink-conflict.out): Likewise.
7239         ($(objpfx)tst-prelink-cmp.out): Likewise.
7240         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
7241
7242 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
7243
7244         [BZ #14551]
7245         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
7246         (__mpn_construct_long_double): If high part overflows to infinity,
7247         set errno and recompute overflowed result of the correct sign.
7248         * sysdeps/ieee754/ldbl-128ibm/Makefile
7249         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
7250         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
7251         $(libm).
7252         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
7253
7254 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
7255
7256         [BZ #15479]
7257         [BZ #19238]
7258         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
7259         floating-point state after first operation on input.  Restore full
7260         state rather than just rounding mode.
7261         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7262         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7263         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7264
7265         [BZ #19235]
7266         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
7267         add 0.5 to integer arguments.
7268         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
7269         Likewise.
7270         (.LC2): New object.
7271
7272 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
7273
7274         * scripts/pylintrc (reports): Set to no.
7275
7276 2015-11-10  Roland McGrath  <roland@hack.frob.com>
7277
7278         * elf/dl-load.c (open_verify): Take new argument FD.
7279         Skip __open call if passed FD is not -1.
7280         (_dl_map_object, open_path): Update callers.
7281         * elf/dl-sysdep-open.h: New file.
7282         * elf/dl-load.c: Include it.
7283         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
7284         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
7285         * sysdeps/nacl/dl-sysdep-open.h: New file.
7286         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
7287         from libc to rtld.
7288
7289 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7290
7291         [BZ #19228]
7292         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
7293         and restore full floating-point state.
7294         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7295         Likewise.
7296         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7297         Likewise.
7298         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7299         Likewise.
7300         * math/test-nearbyint-except-2.c: New file.
7301         * math/Makefile (tests): Add test-nearbyint-except-2.
7302
7303 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
7304
7305         [BZ #19178]
7306         * sysdeps/x86/Makefile (tests): Add tst-prelink.
7307         (tst-prelink-ENV): New.
7308         ($(objpfx)tst-prelink-conflict.out): Likewise.
7309         ($(objpfx)tst-prelink-cmp.out): Likewise.
7310         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7311         * sysdeps/x86/tst-prelink.c: New file.
7312         * sysdeps/x86/tst-prelink.exp: Likewise.
7313
7314 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7315
7316         * math/auto-libm-test-in: Add another test of pow.
7317         * math/auto-libm-test-out: Regenerated.
7318         * math/libm-test.inc (pow_test_data): Add another test.
7319
7320 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7321
7322         [BZ #19219]
7323         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
7324         weak_alias to nearbyintl.
7325
7326 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7327
7328         * sysdeps/aarch64/bits/string.h: New file.
7329         (_STRING_ARCH_unaligned): Define.
7330
7331 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7332
7333         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
7334         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
7335         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
7336         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
7337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
7338
7339 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
7340
7341         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
7342         for original name of the DSO.  Add it to the name list of the DSO
7343         if it is actually given.
7344         (_dl_map_object): Keep track of whether an audit module rewrote
7345         the file name.  If yes, pass the original name to
7346         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
7347         debugging is enabled, log the change of the file name.
7348         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
7349         _dl_map_object_from_fd.
7350         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
7351         * elf/tst-audit11.c: New file
7352         * elf/tst-auditmod11.c: New file.
7353         * elf/tst-audit11mod1.c: New file.
7354         * elf/tst-audit11mod2.c: New file.
7355         * elf/tst-audit11mod2.map: New file.
7356         * elf/tst-audit12.c: New file
7357         * elf/tst-auditmod12.c: New file.
7358         * elf/tst-audit12mod1.c: New file.
7359         * elf/tst-audit12mod2.c: New file.
7360         * elf/tst-audit12mod2.map: New file.
7361         * elf/tst-audit12mod3.c: New file.
7362
7363 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7364
7365         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
7366         Don't create weak aliases,
7367         because versioned symbols are created later.
7368         * sysdeps/s390/s390-32/setjmp.S
7369         (setjmp, _setjmp): Remove weak and rename to an unique name
7370         in SHARED case due to existing versioned symbols.
7371         * sysdeps/s390/s390-64/setjmp.S: Likewise.
7372         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
7373         (getcontext): Create weak alias only in non SHARED case.
7374         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7375
7376 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7377
7378         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
7379         (__ASSUME_*_SYSCALL) Define new macros.
7380         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
7381         Remove socketcall syscalls.
7382         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
7383         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
7384         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
7385         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
7386         * sysdeps/unix/sysv/linux/send.c (__libc_send):
7387         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
7388
7389 2015-11-09  Florian Weimer  <fweimer@redhat.com>
7390
7391         [BZ #12926]
7392         Terminate process on invalid netlink response.
7393         * sysdeps/unix/sysv/linux/netlinkaccess.h
7394         (__netlink_assert_response): Declare.
7395         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
7396         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
7397         (sysdep_routines): Add netlink_assert_response.
7398         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
7399         __netlink_assert_response.
7400         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7401         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7402         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
7403         __netlink_assert_response.
7404
7405 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7406
7407         [BZ #19178]
7408         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
7409         (RTYPE_CLASS_PLT): Likewise.
7410         (RTYPE_CLASS_COPY): Likewise.
7411         (RTYPE_CLASS_TLS): Likewise.
7412         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
7413         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
7414         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
7415         DL_DEBUG_PRELINK.
7416
7417 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
7418
7419         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
7420         calls with argument -0.5.
7421         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
7422
7423         * configure.ac (libc_cv_z_nodelete): Remove configure test.
7424         (libc_cv_z_nodlopen): Likewise.
7425         (libc_cv_z_initfirst): Likewise.
7426         * configure: Regenerated.
7427
7428 2015-11-06  Florian Weimer  <fweimer@redhat.com>
7429
7430         Simplify abilist format to be line-based.
7431         * scripts/abilist.awk: Collect descriptors in the descs variable.
7432         (emit): Write descs variable and sort it
7433         externally, with sort.
7434         * sysdeps/**/*.abilist: Convert to new format.
7435
7436 2015-11-06  Mark Wielaard  <mjw@redhat.com>
7437
7438         [BZ #11460]
7439         * io/Makefile (routines): Add fts64.
7440         (tests): Add tst-fts and tst-fts-lfs.
7441         (CFLAGS-fts64.c): New.
7442         * io/Versions (GLIBC_2.23): New.
7443         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7444         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7445         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7446         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7447         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7448         (FTSENT64): Likewise.
7449         (fts64_children): Likewise.
7450         (fts64_close): Likewise.
7451         (fts64_open): Likewise.
7452         (fts64_read): Likewise.
7453         (fts64_set): Likewise.
7454         * io/fts64.c: New file.
7455         * io/tst-fts.c: New test.
7456         * io/tst-fts-lfs.c: Likewise.
7457         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7458         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7459         fts64_set.
7460         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7461         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7462         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7463         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7464         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7465         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7466         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7467         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7468         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7469         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7470         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7471         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7472         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7474         Likewise.
7475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7476         Likewise.
7477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7479         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7480         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7481         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7482         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7483         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7484         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7485         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7486         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7487         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7488         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7489         * sysdeps/wordsize-64/fts.c: New file.
7490         * sysdeps/wordsize-64/fts64.c: Likewise.
7491         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7492         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7493         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7494         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7495
7496 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7497
7498         * math/libm-test.inc (NON_FINITE): New macro.
7499         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7500         * math/gen-libm-test.pl (show_exceptions): Add argument
7501         $non_finite.
7502         (parse_args): Update call to show_exceptions.
7503         * math/test-math-finite.h: New file.
7504         * math/test-math-no-finite.h: Likewise.
7505         * math/test-double-finite.c: Likewise.
7506         * math/test-float-finite.c: Likewise.
7507         * math/test-ldouble-finite.c: Likewise.
7508         * math/test-double.c: Include "test-math-no-finite.h".
7509         * math/test-float.c: Include "test-math-no-finite.h".
7510         * math/test-ldouble.c: Include "test-math-no-finite.h".
7511         * math/test-math-inline.h (TEST_FINITE): New macro.
7512         * math/test-math-vector.h (TEST_FINITE): Likewise.
7513         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7514         (libm-tests): Add test-float-finite and test-double-finite.
7515         ($(objpfx)test-float-finite.o): New dependency on
7516         $(objpfx)libm-test.stmp.
7517         ($(objpfx)test-double-finite.o): Likewise.
7518         ($(objpfx)test-ldouble-finite.o): Likewise.
7519         (libm-test-no-inline-cflags): New variable.
7520         (libm-test-finite-cflags): Likewise.
7521         (CFLAGS-test-float-finite.c): Likewise.
7522         (CFLAGS-test-double-finite.c): Likewise.
7523         (CFLAGS-test-ldouble-finite.c): Likewise.
7524         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7525         (CFLAGS-test-double.c): Likewise.
7526         (CFLAGS-test-ldouble.c): Likewise.
7527
7528 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7529
7530         * io/fcntl.c (__fcntl): Add ... to prototype.
7531         * misc/ioctl.c (__ioctl): Likewise.
7532         * misc/syscall.c (syscall): Likewise.
7533
7534 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7535
7536         * scripts/list-fixed-bugs.py: New file.
7537
7538         [BZ #19213]
7539         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7540         returned for argument 1.
7541         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7542         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7543         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7544         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7545         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7546         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7547
7548         [BZ #19211]
7549         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7550         __USE_XOPEN], not if [!__USE_ISOC99].
7551         (lgammaf): Likewise.
7552         (lgammal): Likewise.
7553         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7554         (gammaf): Likewise.
7555         (gammal): Likewise.
7556         * math/test-signgam-finite-c11.c: New file.
7557         * math/test-signgam-finite-c99.c: Likewise.
7558         * math/test-signgam-finite.c: Likewise.
7559         * math/Makefile (tests): Add test-signgam-finite,
7560         test-signgam-finite-c99 and test-signgam-finite-c11.
7561         (CFLAGS-test-signgam-finite.c): New variable.
7562         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7563         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7564
7565         [BZ #19212]
7566         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7567         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7568         500].
7569         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7570         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7571         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7572         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7573         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7574         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7575         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7576         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7577         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7578         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7579
7580         [BZ #19209]
7581         * math/bits/math-finite.h (ldexp): Remove declaration.
7582         (ldexpf): Likewise.
7583         (ldexpl): Likewise.
7584
7585         [BZ #19205]
7586         * math/bits/math-finite.h (acosf): Condition declaration on
7587         [__USE_ISOC99].
7588         (acosl): Likewise.
7589         (acoshf): Likewise.
7590         (acoshl): Likewise.
7591         (asinf): Likewise.
7592         (asinl): Likewise.
7593         (atan2f): Likewise.
7594         (atan2l): Likewise.
7595         (atanhf): Likewise.
7596         (atanhl): Likewise.
7597         (coshf): Likewise.
7598         (coshl): Likewise.
7599         (expf): Likewise.
7600         (expl): Likewise.
7601         (fmodf): Likewise.
7602         (fmodl): Likewise.
7603         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7604         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7605         (j0l): Likewise.
7606         (y0f): Likewise.
7607         (y0l): Likewise.
7608         (j1f): Likewise.
7609         (j1l): Likewise.
7610         (y1f): Likewise.
7611         (y1l): Likewise.
7612         (jnf): Likewise.
7613         (jnl): Likewise.
7614         (ynf): Likewise.
7615         (ynl): Likewise.
7616         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7617         (lgammal_r): Likewise.
7618         (__lgamma_r_finite): New declaration.
7619         (__lgammaf_r_finite): Likewise.
7620         (__lgammal_r_finite): Likewise.
7621         (lgamma): Use __lgamma_r_finite.
7622         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7623         __lgammaf_r_finite.
7624         (lgammal): Condition definition on [__USE_ISOC99].  Use
7625         __lgammal_r_finite.
7626         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7627         __lgamma_r_finite.
7628         (gammaf): Condition definition on [__USE_ISOC99].  Use
7629         __lgammaf_r_finite.
7630         (gammal): Condition definition on [__USE_ISOC99].  Use
7631         __lgammal_r_finite.
7632         (logf): Condition declaration on [__USE_ISOC99].
7633         (logl): Likewise.
7634         (log10f): Likewise.
7635         (log10l): Likewise.
7636         (ldexpf): Likewise.
7637         (ldexpl): Likewise.
7638         (powf): Likewise.
7639         (powl): Likewise.
7640         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7641         __USE_ISOC99].
7642         (remainderf): Condition declaration on [__USE_ISOC99].
7643         (remainderl): Likewise.
7644         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7645         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7646         (scalbl): Likewise.
7647         (sinhf): Condition declaration on [__USE_ISOC99].
7648         (sinhl): Likewise.
7649         (sqrtf): Likewise.
7650         (sqrtl): Likewise.
7651
7652 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7653
7654         * sysdeps/arm/atomic-machine.h
7655         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7656         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7657         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7658         Remove conditional code.
7659         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7660         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7661         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7662         Change conditional to [__ASSEMBLER__].
7663         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7664         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7665         [!__ASSEMBLER__].
7666         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7667         code.
7668         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7669         conditional macro definitions.
7670         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7671         (__arch_compare_and_exchange_val_16_acq): Likewise.
7672         (__arch_compare_and_exchange_val_32_acq): Likewise.
7673         (atomic_exchange_and_add): Likewise.
7674         (atomic_add): Likewise.
7675         (atomic_add_negative): Likewise.
7676         (atomic_add_zero): Likewise.
7677         (atomic_bit_set): Likewise.
7678         (atomic_bit_test_set): Likewise.
7679         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7680         code unconditional.
7681         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7682
7683         * math/test-math-errno.h: New file.
7684         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7685         empty.
7686         (TEST_ERRNO): New macro.
7687         (TEST_EXCEPTIONS): Likewise.
7688         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7689         (TEST_EXCEPTIONS): Likewise.
7690         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7691         * math/test-double.c: Include "test-math-errno.h".
7692         * math/test-float.c: Likewise.
7693         * math/test-ldouble.c: Likewise.
7694         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7695         code unconditional.
7696         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7697         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7698         unconditional.
7699         (test_errno): Only run code if TEST_ERRNO.
7700         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7701
7702 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7703
7704         * nptl/tst-once5.cc: Remove attribution.
7705
7706 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7707
7708         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7709         sqrt, tan, tanh, y0, y1 and yn.
7710         * math/auto-libm-test-out: Regenerated.
7711         * math/libm-test.inc (scalb_test_data): Add more tests.
7712         (scalbn_test_data): Likewise.
7713         (scalbln_test_data): Likewise.
7714         (signbit_test_data): Likewise.
7715         (sin_test_data): Likewise.
7716         (sincos_test_data): Likewise.
7717         (sinh_test_data): Likewise.
7718         (sqrt_test_data): Likewise.
7719         (tan_test_data): Likewise.
7720         (tanh_test_data): Likewise.
7721         (tgamma_test_data): Likewise.
7722         (y0_test_data): Likewise.
7723         (y1_test_data): Likewise.
7724         (yn_test_data): Likewise.
7725         (significand_test_data): Likewise.
7726         * sysdeps/i386/fpu/libm-test-ulps: Update.
7727
7728 2015-11-03  David Kastrup  <dak@gnu.org>
7729
7730         [BZ #18604]
7731         * assert/assert.h (assert): Don't macro-expand failed assertion
7732         expression in error message.
7733         * malloc/malloc.c (assert): Likewise.
7734
7735 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7736
7737         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7738         test.
7739         * configure: Regenerated.
7740
7741 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7742
7743         * math/libm-test.inc (modf_test_data): Add more tests.
7744         (nearbyint_test_data): Likewise.
7745         (nextafter_test_data): Likewise.
7746         (nexttoward_test_data): Likewise.
7747         (pow_test_data): Likewise.
7748         (remainder_test_data): Likewise.
7749         (remquo_test_data): Likewise.
7750         (rint_test_data): Likewise.
7751
7752         [BZ #19201]
7753         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7754         Check for zero remainder in case of large exponents and ensure
7755         correct sign of result in that case.
7756         * math/libm-test.inc (remainder_test_data): Add more tests.
7757
7758         [BZ #6799]
7759         * math/s_nextafter.c: Include <errno.h>.
7760         (__nextafter): Set errno on overflow and underflow.
7761         * math/s_nexttowardf.c: Include <errno.h>.
7762         (__nexttowardf): Set errno on overflow and underflow.
7763         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7764         (__nextafterl): Set errno on overflow and underflow.
7765         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7766         (__nexttoward): Set errno on overflow and underflow.
7767         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7768         (__nexttowardf): Set errno on overflow and underflow.
7769         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7770         (__nextafterf): Set errno on overflow and underflow.
7771         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7772         (__nextafterl): Set errno on overflow and underflow.
7773         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7774         (__nexttoward): Set errno on overflow and underflow.
7775         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7776         (__nexttowardf): Set errno on overflow and underflow.
7777         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7778         (__nextafterl): Set errno on overflow and underflow.
7779         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7780         (__nexttoward): Set errno on overflow and underflow.
7781         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7782         (__nexttowardf): Set errno on overflow and underflow.
7783         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7784         (__nexttoward): Set errno on overflow and underflow.
7785         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7786         (__nexttowardf): Set errno on overflow and underflow.
7787         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7788         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7789         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7790         (__nextafterl): Set errno on overflow and underflow.
7791         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7792         setting to be missing on overflow.  Add more tests.
7793         (nexttoward_test_data): Likewise.
7794
7795         * configure.ac (libc_cv_initfini_array): Remove configure test.
7796         * configure: Regenerated.
7797
7798 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7799
7800         [BZ #19189]
7801         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7802         non-finite argument handle arguments with negative sign.
7803
7804         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7805         result from infinite argument.
7806         (j1_test_data): Likewise.
7807         (jn_test_data): Likewise.
7808         (y0_test_data): Likewise.
7809         (y1_test_data): Likewise.
7810         (yn_test_data): Likewise.
7811
7812         [BZ #16171]
7813         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7814         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7815         * math/w_remainderf.c (dremf): Define as weak alias of
7816         __remainderf.
7817         * math/w_remainderl.c (dreml): Define as weak alias of
7818         __remainderl.
7819         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7820         __remainder.
7821         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7822         __remainderf.
7823         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7824         __remainderl.
7825         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7826         weak alias of remainderl.
7827         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7828         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7829         alias of __remainder.
7830         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7831         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7832         strong alias of __remainderl.
7833         (dreml): Use long_double_symbol.
7834         * math/Makefile (libm-calls): Remove w_drem.
7835         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7836         (CFLAGS-nldbl-drem.c): Remove variable.
7837         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7838         * math/w_drem.c: Remove file.
7839         * math/w_dremf.c: Likewise.
7840         * math/w_dreml.c: Likewise.
7841         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7842         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7843         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7844
7845         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7846         * sysdeps/i386/configure: Regenerated.
7847         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7848         * sysdeps/x86_64/configure: Regenerated.
7849
7850         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7851         test.
7852         (libc_cv_visibility_attribute): Likewise.
7853         (libc_cv_protected_data): Test unconditionally.
7854         (libc_cv_broken_visibility_attribute): Remove configure test.
7855         (libc_cv_have_sdata_section): Test unconditionally.
7856         * configure: Regenerated.
7857
7858         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7859         * include/scratch_buffer.h: Include <stddef.h> instead of
7860         <libc-internal.h>.
7861         (struct scratch_buffer): Use max_align_t instead of
7862         libc_max_align_t.
7863
7864 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7865
7866         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7867         instead of extend_alloca.  Change control flow to avoid a goto.
7868         Remove assert which is trivially always true.
7869
7870 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7871
7872         [BZ #16068]
7873         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7874         (FE_ALL_EXCEPT_X86): New macro.
7875         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7876         FE_ALL_EXCEPT.  Ensure precision control is included in
7877         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7878         handle "denormal operand exception" and clear FZ and DAZ bits.
7879         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7880         (FE_ALL_EXCEPT_X86): New macro.
7881         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7882         FE_ALL_EXCEPT.  Ensure precision control is included in
7883         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7884         handle "denormal operand exception" and clear FZ and DAZ bits.
7885         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7886         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7887         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7888         test-fenv-x87 and test-fenv-sse-2.
7889         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7890
7891         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7892         * math/test-double.h (BUILD_COMPLEX): New macro.
7893         * math/test-float.h (BUILD_COMPLEX): Likewise.
7894         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7895
7896         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7897         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7898         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7899         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7900         instead of DBL_DENORM_MIN in comment.
7901         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7902         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7903         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
7904         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
7905         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
7906         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7907
7908 2015-10-28  Florian Weimer  <fweimer@redhat.com>
7909
7910         [BZ# 19048]
7911         * malloc/malloc.c (struct malloc_state): Update comment.  Add
7912         attached_threads member.
7913         (main_arena): Initialize attached_threads.
7914         * malloc/arena.c (list_lock): Update comment.
7915         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
7916         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
7917         (deattach_arena): New function.
7918         (_int_new_arena): Initialize arena reference count and deattach
7919         replaced arena.
7920         (get_free_list, reused_arena): Update reference count and deattach
7921         replaced arena.
7922         (arena_thread_freeres): Update arena reference count and only put
7923         unreferenced arenas on the free list.
7924
7925 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7926
7927         [BZ #19181]
7928         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
7929         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
7930         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
7931         * math/test-fenv-clear-main.c: New file.
7932         * math/test-fenv-clear.c: Likewise.
7933         * math/Makefile (tests): Add test-fenv-clear.
7934         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
7935         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7936         test-fenv-clear-sse.
7937         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
7938
7939         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
7940         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
7941         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
7942
7943 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7944
7945         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
7946         static libc.
7947
7948 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7949
7950         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
7951         test.
7952         * sysdeps/i386/configure: Regenerated.
7953         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
7954         test.
7955         * sysdeps/x86_64/configure: Regenerated.
7956         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
7957         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7958         memset-avx2 unconditionally instead of conditionally on
7959         [$(config-cflags-avx2) = yes].
7960         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7961         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
7962         unconditional.
7963         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
7964         * sysdeps/x86_64/multiarch/memset_chk.S
7965         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
7966         to [IS_IN (libc) && SHARED].
7967
7968 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7969
7970         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
7971         configure test.
7972         * sysdeps/arm/configure: Regenerated.
7973         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
7974         Define variable if not already defined.
7975
7976         [BZ #17404]
7977         * sysdeps/mips/atomic-machine.h
7978         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
7979         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
7980         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7981
7982         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
7983         unconditional.
7984         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
7985         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7986         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
7987         unconditional.
7988         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7989         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
7990         unconditional.
7991         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7992         * stdlib/setenv.c
7993         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
7994         code unconditional.
7995         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
7996         Remove conditional code.
7997         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
7998         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
7999         unconditional.
8000         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8001         code.
8002         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
8003         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
8004         unconditional.
8005         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8006         code.
8007         * sysdeps/ieee754/ldbl-128/k_tanl.c
8008         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8009         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8010         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
8011         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8012         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8013         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
8014         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
8015         unconditional.
8016         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8017         code.
8018         * sysdeps/ieee754/ldbl-96/k_tanl.c
8019         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8020         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8021
8022         * nptl/tst-initializers1-c11.c: New file.
8023         * nptl/tst-initializers1-gnu11.c: Likewise.
8024         * nptl/Makefile (tests): Add these new tests.
8025         (CFLAGS-tst-initializers1-c11.c): New variable.
8026         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
8027
8028         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
8029         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
8030         instead of -std=gnu99.
8031         * configure.ac (systemtap): Test with -std=gnu11 instead of
8032         -std=gnu99.
8033         * configure: Regenerated.
8034         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
8035         in compilation command in comment.
8036
8037         * sysdeps/nptl/configure.ac: Remove file.
8038         * sysdeps/nptl/configure: Remove generated file.
8039         * configure.ac (libc_cv_forced_unwind): Do not substitute.
8040         * configure: Regenerated.
8041         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
8042         * config.make.in (have-forced-unwind): Remove variable.
8043         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8044         unconditional.
8045         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
8046         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
8047         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
8048         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
8049         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8050         unconditional.
8051
8052 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8053
8054         [BZ #19174]
8055         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
8056         .skip_lock_out_of_tbegin_retries.
8057         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
8058         (__lll_lock_elision): Likewise, and respect a value of
8059         try_tbegin <= 0.
8060
8061 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8062
8063         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
8064         statement.
8065
8066 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8067
8068         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
8069         variable.
8070         (test-xfail-ISO11/stdalign.h/conform): Likewise.
8071         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
8072
8073         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
8074         of -std=c1x -D_ISOC11_SOURCE.
8075
8076         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
8077         * configure: Regenerated.
8078         * manual/install.texi (Tools for Compilation): Document
8079         requirement for GCC 4.7 or later.
8080         * INSTALL: Regenerated.
8081
8082 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
8083
8084         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
8085         on CNT to a conditional jump to 'puntdata'.
8086
8087 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8088
8089         * configure.ac (libc_cv_gcc___thread): Remove configure test.
8090         (libc_cv_gcc_tls_model_attr): Likewise.
8091         * configure: Regenerated.
8092
8093         * configure.ac (libc_cv_need_minus_P): Remove configure test.
8094         * configure: Regenerated.
8095         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
8096
8097 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
8098
8099         * configure.ac (old_glibc_headers): Remove configure test.
8100         * configure: Regenerated.
8101         * config.make.in (old-glibc-headers): Remove variable.
8102         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
8103         (install): Remove dependency on remove-old-headers.
8104         (headers2_0): Remove variable.
8105         (remove-old-headers): Remove rule.
8106
8107         * configure.ac (libc_cv_dot_text): Remove configure test.
8108         (libc_cv_asm_set_directive): Use .text instead of
8109         ${libc_cv_dot_text} in configure test.
8110         * configure: Regenerated.
8111
8112 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8113
8114         [BZ #19168]
8115         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8116
8117 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8118
8119         * configure.ac (CXX): Clear the variable if the C++ toolchain does
8120         not support static linking.
8121         * configure: Regenerate.
8122
8123 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
8124
8125         * math/libm-test.inc (check_float_internal): Do not special-case
8126         errors up to 0.5 ulp.
8127
8128         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
8129         log2.
8130         * math/auto-libm-test-out: Regenerated.
8131         * math/libm-test.inc (MAX_EXP): New macro.
8132         (ilogb_test_data): Add more tests.
8133         (isfinite_test_data): Likewise.
8134         (isgreater_test_data): Likewise.
8135         (isgreaterequal_test_data): Likewise.
8136         (isinf_test_data): Likewise.
8137         (isless_test_data): Likewise.
8138         (islessequal_test_data): Likewise.
8139         (islessgreater_test_data): Likewise.
8140         (isnan_test_data): Likewise.
8141         (isnormal_test_data): Likewise.
8142         (issignaling_test_data): Likewise.
8143         (isunordered_test_data): Likewise.
8144         (j0_test_data): Likewise.
8145         (j1_test_data): Likewise.
8146         (jn_test_data): Likewise.
8147         (lgamma_test_data): Likewise.
8148         (log_test_data): Likewise.
8149         (log10_test_data): Likewise.
8150         (log1p_test_data): Likewise.
8151         (log2_test_data): Likewise.
8152         (logb_test_data): Likewise.
8153         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8154
8155         [BZ #18611]
8156         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
8157         avoid excess range and precision on underflow.
8158         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8159         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
8160         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8161         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
8162         underflow.
8163         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8164         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8165         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8166         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8167         * math/auto-libm-test-in: Do not allow missing errno setting for
8168         tests of j1 and jn.
8169         * math/auto-libm-test-out: Regenerated.
8170
8171 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
8172
8173         [BZ #15491]
8174         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
8175         floating-point environment instead of clearing all exceptions.
8176         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
8177         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
8178         merging in "invalid" exceptions from frndint.
8179         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
8180         * math/test-nearbyint-except.c: New file.
8181         * math/Makefile (tests): Add test-nearbyint-except.
8182
8183 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
8184
8185         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
8186
8187         * sysdeps/tile/libm-test-ulps: Regenerated.
8188
8189 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8190
8191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
8192         (__NR_sync_file_range2): Assume it is always defined.
8193         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
8194         (__NR_sync_file_range): Assume it is always defined.
8195
8196 2015-10-22  Andreas Schwab  <schwab@suse.de>
8197
8198         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
8199         INTERNAL_SYSCALL_ERRNO.
8200         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8201         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
8202         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8203         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
8204         Likewise.
8205         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8206
8207 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8208
8209         * io/tst-fcntl.c (fd): New static variable.
8210         (do_prepare): Open temporary file here....
8211         (do_test): ...not here.
8212
8213         * io/ftwtest-sh: Also trap on exit to remove temporary files.
8214
8215 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8216
8217         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
8218         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8219         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8220         Moved before "#ifdef __ASSEMBLER__".
8221
8222 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8223
8224         [BZ #19156]
8225         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
8226         arguments very close to 0.
8227
8228 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
8229
8230         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
8231         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
8232
8233 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8234
8235         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8236         New.  Defined for GCC 5 and above when not compiling for
8237         profiling.
8238         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8239
8240         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
8241         Renamed to ...
8242         (CFLAGS-epoll_pwait.o): This.
8243         (CFLAGS-mmap.c): Renamed to ...
8244         (CFLAGS-mmap.o): This.
8245         (CFLAGS-mmap64.c): Renamed to ...
8246         (CFLAGS-mmap64.o): This.
8247         (CFLAGS-epoll_pwait.os): New.
8248         (CFLAGS-mmap.os): Likewise.
8249         (CFLAGS-mmap64.os): Likewise.
8250         (CFLAGS-semtimedop.os): Likewise.
8251         (CFLAGS-semtimedop.c): Renamed to ...
8252         (CFLAGS-semtimedop.o): This.
8253
8254 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8255
8256         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
8257         warning message.
8258
8259 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8260
8261         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
8262         * Makefile ($(objpfx)c++-types-check.out): Filter out
8263         $(+gccwarn-c) instead of -Wstrict-prototypes.
8264
8265         * io/fts.c (fts_open): Convert to prototype-style function
8266         definition.
8267         * malloc/mcheck.c (mcheck): Likewise.
8268         (mcheck_pedantic): Likewise.
8269         * posix/regexec.c (re_search_2_stub): Likewise.  Use
8270         internal_function.
8271         (re_search_internal): Likewise.
8272         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
8273         prototype-style function definition.
8274         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8275         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8276         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
8277         (xdr_utmpptr): Likewise.
8278         (xdr_utmparr): Likewise.
8279         (xdr_utmpidle): Likewise.
8280         (xdr_utmpidleptr): Likewise.
8281         (xdr_utmpidlearr): Likewise.
8282
8283         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
8284         log, log10 and log2.
8285         * math/auto-libm-test-out: Regenerated.
8286         * math/libm-test.inc (fmod_test_data): Add more tests.
8287         (fpclassify_test_data): Likewise.
8288         (frexp_test_data): Likewise.
8289         (hypot_test_data): Likewise.
8290         (ilogb_test_data): Likewise.
8291
8292 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8293
8294         * debug/fortify_fail.c (__fortify_fail): Convert to
8295         prototype-style function definition.  Use internal_function.
8296         * libio/genops.c (save_for_backup): Convert to prototype-style
8297         function definition.
8298         * libio/wgenops.c (save_for_wbackup): Likewise.
8299         * login/grantpt.c (grantpt): Likewise.
8300         * login/ptsname.c (ptsname): Likewise.
8301         (__ptsname_r): Likewise.
8302         * login/unlockpt.c (unlockpt): Likewise.
8303         * mach/msgserver.c (__mach_msg_server): Likewise.
8304         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
8305         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
8306         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
8307         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
8308         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
8309         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
8310         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
8311         Likewise.
8312         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
8313         internal_function.
8314         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
8315         prototype-style function definition.
8316         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
8317         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
8318         (__pthread_create_2_0): Likewise.
8319         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
8320         * nptl/register-atfork.c (__register_atfork): Likewise.
8321         * posix/glob.c (glob): Likewise.
8322         * posix/regcomp.c (re_comp): Likewise.
8323         * posix/regexec.c (re_exec): Likewise.
8324         * stdlib/add_n.c [__STDC__]: Make code unconditional.
8325         [!__STDC__]: Remove conditional code.
8326         * stdlib/cmp.c [__STDC__]: Make code unconditional.
8327         [!__STDC__]: Remove conditional code.
8328         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
8329         [!__STDC__]: Remove conditional code.
8330         * stdlib/divrem.c [__STDC__]: Make code unconditional.
8331         [!__STDC__]: Remove conditional code.
8332         * stdlib/lshift.c [__STDC__]: Make code unconditional.
8333         [!__STDC__]: Remove conditional code.
8334         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
8335         [!__STDC__]: Remove conditional code.
8336         * stdlib/mul.c [__STDC__]: Make code unconditional.
8337         [!__STDC__]: Remove conditional code.
8338         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
8339         [!__STDC__]: Remove conditional code.
8340         * stdlib/rshift.c [__STDC__]: Make code unconditional.
8341         [!__STDC__]: Remove conditional code.
8342         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
8343         function definition.
8344         (STRTOF): Likewise.
8345         * stdlib/strtod_l.c (__STRTOF): Likewise.
8346         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
8347         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
8348         (__strtol_l): Likewise.
8349         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
8350         [!__STDC__]: Remove conditional code.
8351         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
8352         definition.
8353         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8354         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8355         type.
8356         (__strcasecmp): Convert to prototype-style function definition.
8357         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
8358         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8359         type.
8360         (__strncasecmp): Convert to prototype-style function definition.
8361         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
8362         * sunrpc/xdr.c (xdr_union): Likewise.
8363         * sunrpc/xdr_array.c (xdr_array): Likewise.
8364         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
8365         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
8366         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
8367         Likewise.
8368         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
8369         Likewise.
8370         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
8371         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8372         Likewise.
8373         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
8374         (LOCALE_PARAM_PROTO): Likewise.
8375         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
8376         argument type.
8377         (ut_argument_spec): Remove macro.
8378         (ut_argument_spec_iso): Rename to ut_argument_spec.
8379         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
8380         prototype-style function definition.
8381         (memcpy_uppcase): Likewise.
8382         (__strftime_internal): Likewise.
8383         (my_strftime): Likewise.
8384         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
8385         (LOCALE_PARAM_DECL): Likewise.
8386         [_LIBC] (LOCALE_PARAM): Include argument type.
8387         (__strptime_internal): Convert to prototype-style function
8388         definition.
8389         (strptime): Likewise.
8390         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8391         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8392         type.
8393         (__wcscasecmp): Convert to prototype-style function definition.
8394         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
8395         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8396         type.
8397         (__wcsncasecmp): Convert to prototype-style function definition.
8398
8399         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
8400         function definition.
8401         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8402         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8403         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
8404         * elf/dl-minimal.c (_itoa): Likewise.
8405         * hurd/hurdmalloc.c (malloc): Likewise.
8406         (free): Likewise.
8407         (realloc): Likewise.
8408         * inet/inet6_option.c (inet6_option_space): Likewise.
8409         (inet6_option_init): Likewise.
8410         (inet6_option_append): Likewise.
8411         (inet6_option_alloc): Likewise.
8412         (inet6_option_next): Likewise.
8413         (inet6_option_find): Likewise.
8414         * io/ftw.c (FTW_NAME): Likewise.
8415         (NFTW_NAME): Likewise.
8416         (NFTW_NEW_NAME): Likewise.
8417         (NFTW_OLD_NAME): Likewise.
8418         * libio/iofwide.c (_IO_fwide): Likewise.
8419         * libio/strops.c (_IO_str_init_static_internal): Likewise.
8420         (_IO_str_init_static): Likewise.
8421         (_IO_str_init_readonly): Likewise.
8422         (_IO_str_overflow): Likewise.
8423         (_IO_str_underflow): Likewise.
8424         (_IO_str_count): Likewise.
8425         (_IO_str_seekoff): Likewise.
8426         (_IO_str_pbackfail): Likewise.
8427         (_IO_str_finish): Likewise.
8428         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
8429         (_IO_wstr_overflow): Likewise.
8430         (_IO_wstr_underflow): Likewise.
8431         (_IO_wstr_count): Likewise.
8432         (_IO_wstr_seekoff): Likewise.
8433         (_IO_wstr_pbackfail): Likewise.
8434         (_IO_wstr_finish): Likewise.
8435         * locale/programs/localedef.c (normalize_codeset): Likewise.
8436         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8437         (add_locales_to_archive): Likewise.
8438         (delete_locales_from_archive): Likewise.
8439         * malloc/malloc.c (__libc_mallinfo): Likewise.
8440         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8441         * misc/tsearch.c (__tfind): Likewise.
8442         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8443         * nptl/pthread_attr_getdetachstate.c
8444         (__pthread_attr_getdetachstate): Likewise.
8445         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8446         Likewise.
8447         * nptl/pthread_attr_getinheritsched.c
8448         (__pthread_attr_getinheritsched): Likewise.
8449         * nptl/pthread_attr_getschedparam.c
8450         (__pthread_attr_getschedparam): Likewise.
8451         * nptl/pthread_attr_getschedpolicy.c
8452         (__pthread_attr_getschedpolicy): Likewise.
8453         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8454         Likewise.
8455         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8456         Likewise.
8457         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8458         Likewise.
8459         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8460         Likewise.
8461         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8462         (__pthread_attr_init_2_0): Likewise.
8463         * nptl/pthread_attr_setdetachstate.c
8464         (__pthread_attr_setdetachstate): Likewise.
8465         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8466         Likewise.
8467         * nptl/pthread_attr_setinheritsched.c
8468         (__pthread_attr_setinheritsched): Likewise.
8469         * nptl/pthread_attr_setschedparam.c
8470         (__pthread_attr_setschedparam): Likewise.
8471         * nptl/pthread_attr_setschedpolicy.c
8472         (__pthread_attr_setschedpolicy): Likewise.
8473         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8474         Likewise.
8475         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8476         Likewise.
8477         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8478         Likewise.
8479         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8480         Likewise.
8481         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8482         Likewise.
8483         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8484         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8485         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8486         use internal_function.
8487         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8488         prototype-style function definition.
8489         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8490         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8491         internal_function.
8492         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8493         Convert to prototype-style function definition.
8494         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8495         Likewise.
8496         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8497         Likewise.
8498         (__pthread_mutex_unlock): Likewise.
8499         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8500         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8501         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8502         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8503         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8504         * nss/makedb.c (process_input): Likewise.
8505         * posix/fnmatch.c (__strchrnul): Likewise.
8506         (__wcschrnul): Likewise.
8507         (fnmatch): Likewise.
8508         * posix/fnmatch_loop.c (FCT): Likewise.
8509         * posix/glob.c (globfree): Likewise.
8510         (__glob_pattern_type): Likewise.
8511         (__glob_pattern_p): Likewise.
8512         * posix/regcomp.c (re_compile_pattern): Likewise.
8513         (re_set_syntax): Likewise.
8514         (re_compile_fastmap): Likewise.
8515         (regcomp): Likewise.
8516         (regerror): Likewise.
8517         (regfree): Likewise.
8518         * posix/regexec.c (regexec): Likewise.
8519         (re_match): Likewise.
8520         (re_search): Likewise.
8521         (re_match_2): Likewise.
8522         (re_search_2): Likewise.
8523         (re_search_stub): Likewise.  Use internal_function
8524         (re_copy_regs): Likewise.
8525         (re_set_registers): Convert to prototype-style function
8526         definition.
8527         (prune_impossible_nodes): Likewise.  Use internal_function.
8528         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8529         prototype-style function definition.
8530         (inet_net_pton_ipv4): Likewise.
8531         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8532         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8533         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8534         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8535         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8536         Make variadic.
8537         * time/strptime_l.c (localtime_r): Convert to prototype-style
8538         function definition.
8539         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8540         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8541         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8542         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8543
8544         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8545         definition.
8546         (_ufc_doit_r): Likewise.
8547         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8548         (_ufc_output_conversion_r): Likewise.
8549         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8550         * inet/rcmd.c (rcmd_af): Likewise.
8551         (rcmd): Likewise.
8552         (ruserok_af): Likewise.
8553         (ruserok): Likewise.
8554         (ruserok2_sa): Likewise.
8555         (ruserok_sa): Likewise.
8556         (iruserok_af): Likewise.
8557         (iruserok): Likewise.
8558         (__ivaliduser): Likewise.
8559         (__validuser2_sa): Likewise.
8560         * inet/rexec.c (rexec_af): Likewise.
8561         (rexec): Likewise.
8562         * inet/ruserpass.c (ruserpass): Likewise.
8563         * locale/programs/xmalloc.c (xcalloc): Likewise.
8564         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8565         * math/w_drem.c (__drem): Likewise.
8566         * math/w_dremf.c (__dremf): Likewise.
8567         * math/w_dreml.c (__dreml): Likewise.
8568         * misc/daemon.c (daemon): Likewise.
8569         * resolv/res_debug.c (p_fqnname): Likewise.
8570         * stdlib/div.c (div): Likewise.
8571         * string/memcmp.c (memcmp_bytes): Likewise.
8572         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8573         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8574
8575         * crypt/cert.c (main): Convert to prototype-style function
8576         definition.
8577         * io/pipe.c (__pipe): Likewise.
8578         * io/pipe2.c (__pipe2): Likewise.
8579         * misc/futimesat.c (futimesat): Likewise.
8580         * misc/utimes.c (__utimes): Likewise.
8581         * posix/execve.c (__execve): Likewise.
8582         * posix/execvp.c (execvp): Likewise.
8583         * posix/execvpe.c (__execvpe): Likewise.
8584         * posix/fexecve.c (fexecve): Likewise.
8585         * socket/socketpair.c (socketpair): Likewise.
8586         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8587         * stdlib/erand48.c (erand48): Likewise.
8588         * stdlib/erand48_r.c (__erand48_r): Likewise.
8589         * stdlib/jrand48.c (jrand48): Likewise.
8590         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8591         * stdlib/lcong48.c (lcong48): Likewise.
8592         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8593         * stdlib/nrand48.c (nrand48): Likewise.
8594         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8595         * stdlib/seed48.c (seed48): Likewise.
8596         * stdlib/seed48_r.c (__seed48_r): Likewise.
8597         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8598         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8599         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8600
8601 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8602
8603         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8604         * configure: Regenerated.
8605         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8606         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8607         unconditional.
8608         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8609         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8610         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8611         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8612         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8613         unconditional.
8614         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8615
8616         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8617         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8618
8619         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8620         function definition.
8621         * crypt/crypt_util.c (__encrypt_r): Likewise.
8622         * libio/genops.c (_IO_no_init): Likewise.
8623         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8624         (_IO_old_fopencookie): Likewise.
8625         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8626         * libio/iogetline.c (_IO_getline): Likewise.
8627         (_IO_getline_info): Likewise.
8628         * libio/iogetwline.c (_IO_getwline): Likewise.
8629         (_IO_getwline_info): Likewise.
8630         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8631         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8632         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8633         (find_entry): Likewise.
8634         (iterate_table): Likewise.
8635         (lookup): Likewise.
8636         * login/forkpty.c (forkpty): Likewise.
8637         * misc/hsearch_r.c (__hsearch_r): Likewise.
8638         * misc/select.c (__select): Likewise.
8639         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8640         Likewise.
8641         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8642         Likewise.
8643         * nptl/old_pthread_cond_timedwait.c
8644         (__pthread_cond_timedwait_2_0): Likewise.
8645         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8646         * nptl/pthread_barrierattr_getpshared.c
8647         (pthread_barrierattr_getpshared): Likewise.
8648         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8649         Likewise.
8650         * nptl/pthread_mutex_setprioceiling.c
8651         (pthread_mutex_setprioceiling): Likewise.
8652         * nptl/pthread_mutexattr_getprioceiling.c
8653         (pthread_mutexattr_getprioceiling): Likewise.
8654         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8655         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8656         Likewise.
8657         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8658         Likewise.
8659         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8660         Likewise.
8661         * socket/recvfrom.c (__recvfrom): Likewise.
8662         * socket/sendto.c (__sendto): Likewise.
8663         * socket/setsockopt.c (__setsockopt): Likewise.
8664         * stdio-common/_itoa.c (_itoa): Likewise.
8665         * stdio-common/_itowa.c (_itowa): Likewise.
8666         * stdio-common/reg-printf.c (__register_printf_specifier):
8667         Likewise.
8668         (__register_printf_function): Likewise.
8669         * stdio-common/tempname.c (__path_search): Likewise.
8670         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8671         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8672         * stdlib/random_r.c (__initstate_r): Likewise.
8673         * stdlib/setenv.c (__add_to_environ): Likewise.
8674         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8675         * streams/getpmsg.c (getpmsg): Likewise.
8676         * streams/putmsg.c (putmsg): Likewise.
8677         * streams/putpmsg.c (putpmsg): Likewise.
8678         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8679         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8680         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8681         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8682         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8683         * sunrpc/svc_udp.c (cache_get): Likewise.
8684         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8685         * sysdeps/mach/hurd/getcwd.c
8686         (__canonicalize_directory_name_internal): Likewise.
8687         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8688         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8689         * sysdeps/mach/hurd/select.c (__select): Likewise.
8690         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8691         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8692         * sysdeps/sparc/nptl/pthread_barrier_init.c
8693         (__pthread_barrier_init): Likewise.
8694         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8695         (__pthread_cond_timedwait): Likewise.
8696         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8697         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8698         Likewise.
8699         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8700         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8701         Likewise.
8702         * sysvipc/semtimedop.c (semtimedop): Likewise.
8703         * time/setitimer.c (__setitimer): Likewise.
8704         * time/strftime_l.c (emacs_strftime): Likewise.
8705
8706 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8707
8708         * config.make.in (have-ssp): Delete.
8709         (stack-protector): New variable.
8710         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8711         cache test for -fstack-protector-strong.  Export stack_protector to
8712         the best ssp flag.
8713         * configure: Regenerated.
8714         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8715         * nscd/Makefile (CFLAGS-nscd): Likewise.
8716         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8717
8718 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8719
8720         [BZ #19122]
8721         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8722         attribute_hidden.
8723
8724 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8725
8726         [BZ #18743]
8727         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8728         code to...
8729         (ELIDE_LOCK): ...here.
8730         (__get_new_count): New function with part of the code from
8731         __elide_lock that updates the value of adapt_count after a
8732         transaction abort.
8733         (__elided_trylock): Moved this code to...
8734         (ELIDE_TRYLOCK): ...here.
8735
8736 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8737
8738         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8739         * configure: Regenerate.
8740         * INSTALL: Regenerate.
8741         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8742         and tweak grammar.
8743
8744 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8745
8746         * login/programs/pt_chown.c: Include signal.h
8747         (main): Clear any signal mask from the parent process.
8748
8749 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8750
8751         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8752         * configure: Regenerated.
8753         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8754         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8755         $(gnu89-inline-CFLAGS).
8756
8757         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8758         test.
8759         (libc_cv_asm_weakext_directive): Likewise.
8760         * configure: Regenerated.
8761         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8762         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8763         * include/libc-symbols.h
8764         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8765         #error.
8766         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8767         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8768
8769         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8770         prototype-style function definition.
8771         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8772         * sysdeps/i386/ffs.c (__ffs): Likewise.
8773         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8774         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8775         Likewise.
8776         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8777         Likewise.
8778         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8779         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8780         Likewise.
8781         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8782         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8783         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8784         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8785         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8786         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8787         * sysdeps/mach/hurd/access.c (__access): Likewise.
8788         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8789         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8790         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8791         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8792         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8793         (cthread_getspecific): Likewise.
8794         (cthread_setspecific): Likewise.
8795         (__libc_getspecific): Likewise.
8796         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8797         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8798         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8799         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8800         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8801         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8802         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8803         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8804         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8805         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8806         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8807         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8808         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8809         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8810         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8811         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8812         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8813         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8814         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8815         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8816         * sysdeps/mach/hurd/link.c (__link): Likewise.
8817         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8818         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8819         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8820         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8821         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8822         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8823         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8824         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8825         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8826         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8827         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8828         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8829         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8830         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8831         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8832         * sysdeps/mach/hurd/send.c (__send): Likewise.
8833         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8834         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8835         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8836         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8837         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8838         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8839         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8840         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8841         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8842         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8843         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8844         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8845         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8846         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8847         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8848         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8849         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8850         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8851         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8852         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8853         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8854         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8855         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8856         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8857         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8858         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8859         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8860         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8861         * sysdeps/posix/alarm.c (alarm): Likewise.
8862         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8863         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8864         * sysdeps/posix/dup.c (__dup): Likewise.
8865         * sysdeps/posix/dup2.c (__dup2): Likewise.
8866         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8867         (main): Likewise.
8868         * sysdeps/posix/flock.c (__flock): Likewise.
8869         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8870         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8871         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8872         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8873         * sysdeps/posix/isatty.c (__isatty): Likewise.
8874         * sysdeps/posix/killpg.c (killpg): Likewise.
8875         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8876         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8877         * sysdeps/posix/raise.c (raise): Likewise.
8878         * sysdeps/posix/remove.c (remove): Likewise.
8879         * sysdeps/posix/rename.c (rename): Likewise.
8880         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8881         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8882         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8883         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8884         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8885         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8886         * sysdeps/posix/sigset.c (sigset): Likewise.
8887         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8888         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8889         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8890         * sysdeps/posix/time.c (time): Likewise.
8891         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8892         (ttyname): Likewise.
8893         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8894         * sysdeps/posix/utime.c (utime): Likewise.
8895         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8896         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8897         Likewise.
8898         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8899         (pthread_spin_trylock): Likewise.
8900         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8901         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8902         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8903         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
8904         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
8905         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
8906         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
8907         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
8908         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
8909         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
8910         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
8911         * sysdeps/s390/ffs.c (__ffs): Likewise.
8912         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
8913         Likewise.
8914         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8915         Likewise.
8916         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
8917         Likewise.
8918         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
8919         (pthread_barrier_destroy): Likewise.
8920         * sysdeps/sparc/nptl/pthread_barrier_wait.c
8921         (__pthread_barrier_wait): Likewise.
8922         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
8923         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
8924         (__pthread_barrier_wait): Likewise.
8925         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
8926         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
8927         (memcmp_not_common_alignment): Likewise.
8928         (MEMCMP): Likewise.
8929         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
8930         (_wordcopy_fwd_dest_aligned): Likewise.
8931         (_wordcopy_bwd_aligned): Likewise.
8932         (_wordcopy_bwd_dest_aligned): Likewise.
8933         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
8934         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
8935         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8936         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
8937         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
8938         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
8939         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
8940         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
8941         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
8942         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
8943         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
8944         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
8945         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
8946         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
8947         * sysdeps/unix/stime.c (stime): Likewise.
8948         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
8949         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
8950         Likewise.  Use internal_function.
8951         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
8952         Convert to prototype-style function definition.
8953         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8954         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8955         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
8956         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8957         Likewise.  Use internal_function.
8958         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
8959         prototype-style function definition
8960         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8961         Likewise.
8962         (__getlogin_r): Likewise.
8963         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
8964         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
8965         (__pthread_cond_broadcast): Likewise.
8966         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
8967         (__pthread_cond_destroy): Likewise.
8968         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
8969         (__pthread_cond_init): Likewise.
8970         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
8971         (__pthread_cond_signal): Likewise.
8972         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
8973         (__pthread_cond_wait): Likewise.
8974         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
8975         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
8976         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
8977         Likewise.
8978         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
8979         Likewise.
8980         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
8981         Likewise.
8982         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
8983         Likewise.
8984         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
8985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
8986         (__ftruncate64): Likewise.
8987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
8988         (truncate64): Likewise.
8989         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
8990         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
8991         (pthread_getcpuclockid): Likewise.
8992         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
8993         Likewise.
8994         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
8995         Likewise.
8996         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
8997         Likewise.
8998         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8999         Likewise.
9000         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
9001         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
9002         (__libc_sigaction): Likewise.
9003         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
9004         Likewise.
9005         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
9006         (__sigprocmask): Likewise.
9007         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
9008         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
9009         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
9010         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9011         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
9012         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
9013         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
9014         Likewise.
9015         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
9016         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
9017         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
9018         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
9019         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
9020         Likewise.
9021         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
9022         (__sigprocmask): Likewise.
9023         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
9024         (cfgetispeed): Likewise.
9025         (cfsetospeed): Likewise.
9026         (cfsetispeed): Likewise.
9027         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
9028         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
9029         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
9030         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9031         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
9032         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
9033         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
9034         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
9035         Likewise.
9036         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
9037         Likewise.
9038         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
9039         Likewise.
9040         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
9041         Likewise.
9042         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
9043
9044 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9045
9046         sunrpc: Rewrite with explicit TLS access using __thread.
9047         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
9048         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
9049         directly.
9050         (__rpc_thread_variables): Access thread_rpc_vars directly.
9051         Eliminate redundant assignment of the tvp variable.
9052
9053 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9054
9055         malloc: Rewrite with explicit TLS access using __thread.
9056         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
9057         (tsd_setspecific, tsd_getspecific): Remove.
9058         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
9059         (tsd_setspecific, tsd_getspecific): Likewise.
9060         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
9061         (tsd_setspecific, tsd_getspecific): Likewise.
9062         * malloc/arena.c (thread_arena): New TLS variable.
9063         (arena_key): Remove variable.
9064         (arena_get): Use thread_arena.
9065         (arena_lookup): Remove macro.
9066         (malloc_atfork, free_atfork, ptmalloc_lock_all)
9067         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
9068         (_int_new_arena, get_free_list, reused_arena)
9069         (arena_thread_freeres): Use thread_arena.
9070         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
9071         tsd_getspecific, tsd_setspecific from safety annotations.
9072         (Allocating Cleared Space): Remove arena_lookup from safety
9073         annotations.
9074
9075 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9076
9077         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
9078         struct scratch_buffer instead of extend_alloca.
9079
9080 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9081
9082         * sysdeps/unix/sysv/linux/kernel-features.h
9083         (__ASSUME_SOCK_CLOEXEC): Remove.
9084         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
9085         (__have_paccept): Remove unused macro.
9086         * include/unistd.h (__have_sock_cloexec): Remove declaration.
9087         * misc/syslog.c (openlog_internal): Remove fallback code for
9088         !__ASSUME_SOCK_CLOEXEC.
9089         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
9090         missing SOCK_CLOEXEC.
9091         * nscd/connections.c (have_sock_cloexec): Remove definition.
9092         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9093         * nscd/nscd_helper.c (open_socket): Remove fallback code for
9094         !__ASSUME_SOCK_CLOEXEC.
9095         * resolv/res_send.c (__have_o_nonblock): Remove definition.
9096         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9097         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
9098         definition.
9099         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
9100         code for !__ASSUME_SOCK_CLOEXEC.
9101
9102 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9103
9104         [BZ #18982]
9105         * manual/stdio.texi (Variable Arguments Output): Add portability
9106         note, explaining that vfprintf clobbers the va_list pointer.
9107
9108 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9109
9110         * math/libm-test.inc (fabs_test_data): Add more tests.
9111         (fdim_test_data): Likewise.
9112         (fma_test_data): Likewise.
9113         (fmax_test_data): Likewise.
9114         (fmin_test_data): Likewise.
9115         (fmod_test_data): Likewise.
9116
9117 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
9118
9119         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
9120         data.
9121
9122 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9123
9124         * math/libm-test.inc (ceil_test_data): Add more tests and more
9125         expectations for "inexact".
9126         (floor_test_data): Add more tests.
9127         (round_test_data): Likewise.
9128         (trunc_test_data): Likewise.
9129
9130         * crypt/cert.c (good_bye): Convert to prototype-style function
9131         definition.
9132         (get8): Likewise.
9133         (put8): Likewise.
9134         * crypt/crypt-entry.c (crypt): Likewise.
9135         (__fcrypt): Likewise.
9136         * crypt/crypt_util.c (_ufc_prbits): Likewise.
9137         (_ufc_set_bits): Likewise.
9138         (_ufc_clearmem): Likewise.
9139         (__init_des_r): Likewise.
9140         (shuffle_sb): Likewise.
9141         (shuffle_sb): Likewise.
9142         (_ufc_setup_salt_r): Likewise.
9143         (_ufc_mk_keytab_r): Likewise.
9144         (_ufc_dofinalperm_r): Likewise.
9145         (encrypt): Likewise.
9146         (__setkey_r): Likewise.
9147         (setkey): Likewise.
9148         * crypt/md5.c (md5_init_ctx): Likewise.
9149         (md5_read_ctx): Likewise.
9150         (md5_finish_ctx): Likewise.
9151         (md5_stream): Likewise.
9152         (md5_buffer): Likewise.
9153         (md5_process_bytes): Likewise.
9154         * crypt/sha256.c (__sha256_init_ctx): Likewise.
9155         (__sha256_finish_ctx): Likewise.
9156         (__sha256_process_bytes): Likewise.
9157         * crypt/sha512.c (__sha512_init_ctx): Likewise.
9158         (__sha512_finish_ctx): Likewise.
9159         (__sha512_process_bytes): Likewise.
9160         * ctype/isctype.c (__isctype): Likewise.
9161         * debug/backtrace.c (__backtrace): Likewise.
9162         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
9163         * debug/fgets_chk.c (__fgets_chk): Likewise.
9164         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
9165         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
9166         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
9167         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
9168         * debug/memset_chk.c (__memset_chk): Likewise.
9169         * debug/strcat_chk.c (__strcat_chk): Likewise.
9170         * debug/strncat_chk.c (__strncat_chk): Likewise.
9171         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
9172         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
9173         * dirent/dirfd.c (dirfd): Likewise.
9174         * dirent/getdents.c (__getdirentries): Likewise.
9175         * dirent/getdents64.c (getdirentries64): Likewise.
9176         * dirent/rewinddir.c (__rewinddir): Likewise.
9177         * dirent/seekdir.c (seekdir): Likewise.
9178         * dirent/telldir.c (telldir): Likewise.
9179         * elf/sln.c (makesymlinks): Likewise.
9180         (makesymlink): Likewise.
9181         * gmon/gmon.c (__moncontrol): Likewise.
9182         (__monstartup): Likewise.
9183         (write_hist): Likewise.
9184         (write_call_graph): Likewise.
9185         (write_bb_counts): Likewise.
9186         * grp/setgroups.c (setgroups): Likewise.
9187         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9188         * inet/inet_net.c (inet_network): Likewise.
9189         * inet/inet_netof.c (inet_netof): Likewise.
9190         * inet/rcmd.c (rresvport_af): Likewise.
9191         (rresvport): Likewise.
9192         * io/access.c (__access): Likewise.
9193         * io/chdir.c (__chdir): Likewise.
9194         * io/chmod.c (__chmod): Likewise.
9195         * io/chown.c (__chown): Likewise.
9196         * io/close.c (__close): Likewise.
9197         * io/creat.c (creat): Likewise.
9198         * io/creat64.c (creat64): Likewise.
9199         * io/dup.c (__dup): Likewise.
9200         * io/dup2.c (__dup2): Likewise.
9201         * io/dup3.c (__dup3): Likewise.
9202         * io/euidaccess.c (__euidaccess): Likewise.
9203         * io/faccessat.c (faccessat): Likewise.
9204         * io/fchmod.c (__fchmod): Likewise.
9205         * io/fchmodat.c (fchmodat): Likewise.
9206         * io/fchown.c (__fchown): Likewise.
9207         * io/fchownat.c (fchownat): Likewise.
9208         * io/fcntl.c (__fcntl): Likewise.
9209         * io/flock.c (__flock): Likewise.
9210         * io/fts.c (fts_load): Likewise.
9211         (fts_close): Likewise.
9212         (fts_read): Likewise.
9213         (fts_set): Likewise.
9214         (fts_children): Likewise.
9215         (fts_build): Likewise.
9216         (fts_stat): Likewise.
9217         (fts_sort): Likewise.
9218         (fts_alloc): Likewise.
9219         (fts_lfree): Likewise.
9220         (fts_palloc): Likewise.
9221         (fts_padjust): Likewise.
9222         (fts_maxarglen): Likewise.
9223         (fts_safe_changedir): Likewise.
9224         * io/getwd.c (getwd): Likewise.
9225         * io/isatty.c (__isatty): Likewise.
9226         * io/lchown.c (__lchown): Likewise.
9227         * io/link.c (__link): Likewise.
9228         * io/linkat.c (linkat): Likewise.
9229         * io/lseek.c (__libc_lseek): Likewise.
9230         * io/mkdir.c (__mkdir): Likewise.
9231         * io/mkdirat.c (mkdirat): Likewise.
9232         * io/mkfifo.c (mkfifo): Likewise.
9233         * io/mkfifoat.c (mkfifoat): Likewise.
9234         * io/open.c (__libc_open): Likewise.
9235         * io/open64.c (__libc_open64): Likewise.
9236         * io/readlink.c (__readlink): Likewise.
9237         * io/readlinkat.c (readlinkat): Likewise.
9238         * io/rmdir.c (__rmdir): Likewise.
9239         * io/symlink.c (__symlink): Likewise.
9240         * io/symlinkat.c (symlinkat): Likewise.
9241         * io/ttyname.c (ttyname): Likewise.
9242         * io/ttyname_r.c (__ttyname_r): Likewise.
9243         * io/umask.c (__umask): Likewise.
9244         * io/unlink.c (__unlink): Likewise.
9245         * io/unlinkat.c (unlinkat): Likewise.
9246         * io/utime.c (utime): Likewise.
9247         * libio/clearerr.c (clearerr): Likewise.
9248         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
9249         * libio/feof.c (_IO_feof): Likewise.
9250         * libio/feof_u.c (feof_unlocked): Likewise.
9251         * libio/ferror.c (_IO_ferror): Likewise.
9252         * libio/ferror_u.c (ferror_unlocked): Likewise.
9253         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
9254         * libio/fileno.c (__fileno): Likewise.
9255         * libio/fputc.c (fputc): Likewise.
9256         * libio/fputc_u.c (fputc_unlocked): Likewise.
9257         * libio/fputwc.c (fputwc): Likewise.
9258         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
9259         * libio/freopen.c (freopen): Likewise.
9260         * libio/freopen64.c (freopen64): Likewise.
9261         * libio/fseek.c (fseek): Likewise.
9262         * libio/fseeko.c (fseeko): Likewise.
9263         * libio/fseeko64.c (fseeko64): Likewise.
9264         * libio/ftello.c (__ftello): Likewise.
9265         * libio/ftello64.c (ftello64): Likewise.
9266         * libio/fwide.c (fwide): Likewise.
9267         * libio/genops.c (_IO_un_link): Likewise.
9268         (_IO_link_in): Likewise.
9269         (_IO_least_marker): Likewise.
9270         (_IO_switch_to_main_get_area): Likewise.
9271         (_IO_switch_to_backup_area): Likewise.
9272         (_IO_switch_to_get_mode): Likewise.
9273         (_IO_free_backup_area): Likewise.
9274         (_IO_switch_to_put_mode): Likewise.
9275         (__overflow): Likewise.
9276         (__underflow): Likewise.
9277         (__uflow): Likewise.
9278         (_IO_setb): Likewise.
9279         (_IO_doallocbuf): Likewise.
9280         (_IO_default_underflow): Likewise.
9281         (_IO_default_uflow): Likewise.
9282         (_IO_default_xsputn): Likewise.
9283         (_IO_sgetn): Likewise.
9284         (_IO_default_xsgetn): Likewise.
9285         (_IO_sync): Likewise.
9286         (_IO_default_setbuf): Likewise.
9287         (_IO_default_seekpos): Likewise.
9288         (_IO_default_doallocate): Likewise.
9289         (_IO_init): Likewise.
9290         (_IO_old_init): Likewise.
9291         (_IO_default_sync): Likewise.
9292         (_IO_default_finish): Likewise.
9293         (_IO_default_seekoff): Likewise.
9294         (_IO_sputbackc): Likewise.
9295         (_IO_sungetc): Likewise.
9296         (_IO_set_column): Likewise.
9297         (_IO_set_column): Likewise.
9298         (_IO_adjust_column): Likewise.
9299         (_IO_get_column): Likewise.
9300         (_IO_init_marker): Likewise.
9301         (_IO_remove_marker): Likewise.
9302         (_IO_marker_difference): Likewise.
9303         (_IO_marker_delta): Likewise.
9304         (_IO_seekmark): Likewise.
9305         (_IO_unsave_markers): Likewise.
9306         (_IO_nobackup_pbackfail): Likewise.
9307         (_IO_default_pbackfail): Likewise.
9308         (_IO_default_seek): Likewise.
9309         (_IO_default_stat): Likewise.
9310         (_IO_default_read): Likewise.
9311         (_IO_default_write): Likewise.
9312         (_IO_default_showmanyc): Likewise.
9313         (_IO_default_imbue): Likewise.
9314         (_IO_iter_next): Likewise.
9315         (_IO_iter_file): Likewise.
9316         * libio/getc.c (_IO_getc): Likewise.
9317         * libio/getwc.c (_IO_getwc): Likewise.
9318         * libio/iofclose.c (_IO_new_fclose): Likewise.
9319         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9320         * libio/iofflush.c (_IO_fflush): Likewise.
9321         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
9322         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9323         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
9324         * libio/iofgets.c (_IO_fgets): Likewise.
9325         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
9326         * libio/iofgetws.c (fgetws): Likewise.
9327         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9328         * libio/iofopen64.c (_IO_fopen64): Likewise.
9329         * libio/iofopncook.c (_IO_cookie_read): Likewise.
9330         (_IO_cookie_write): Likewise.
9331         (_IO_cookie_seek): Likewise.
9332         (_IO_cookie_close): Likewise.
9333         (_IO_cookie_seekoff): Likewise.
9334         (_IO_old_cookie_seek): Likewise.
9335         * libio/iofputs.c (_IO_fputs): Likewise.
9336         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
9337         * libio/iofputws.c (fputws): Likewise.
9338         * libio/iofputws_u.c (fputws_unlocked): Likewise.
9339         * libio/iofread.c (_IO_fread): Likewise.
9340         * libio/iofread_u.c (__fread_unlocked): Likewise.
9341         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
9342         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9343         * libio/ioftell.c (_IO_ftell): Likewise.
9344         * libio/iofwrite.c (_IO_fwrite): Likewise.
9345         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9346         * libio/iogets.c (_IO_gets): Likewise.
9347         * libio/iopadn.c (_IO_padn): Likewise.
9348         * libio/iopopen.c (_IO_new_proc_open): Likewise.
9349         (_IO_new_popen): Likewise.
9350         (_IO_new_proc_close): Likewise.
9351         * libio/ioputs.c (_IO_puts): Likewise.
9352         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
9353         (_IO_seekoff): Likewise.
9354         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
9355         (_IO_seekpos): Likewise.
9356         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
9357         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9358         * libio/ioungetc.c (_IO_ungetc): Likewise.
9359         * libio/ioungetwc.c (ungetwc): Likewise.
9360         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9361         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
9362         * libio/iowpadn.c (_IO_wpadn): Likewise.
9363         * libio/libc_fatal.c (__libc_fatal): Likewise.
9364         * libio/memstream.c (__open_memstream): Likewise.
9365         (_IO_mem_sync): Likewise.
9366         (_IO_mem_finish): Likewise.
9367         * libio/oldfileops.c (_IO_old_file_init): Likewise.
9368         (_IO_old_file_close_it): Likewise.
9369         (_IO_old_file_finish): Likewise.
9370         (_IO_old_file_fopen): Likewise.
9371         (_IO_old_file_attach): Likewise.
9372         (_IO_old_file_setbuf): Likewise.
9373         (_IO_old_do_write): Likewise.
9374         (old_do_write): Likewise.
9375         (_IO_old_file_underflow): Likewise.
9376         (_IO_old_file_overflow): Likewise.
9377         (_IO_old_file_sync): Likewise.
9378         (_IO_old_file_seekoff): Likewise.
9379         (_IO_old_file_write): Likewise.
9380         (_IO_old_file_xsputn): Likewise.
9381         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
9382         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
9383         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
9384         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
9385         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
9386         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
9387         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
9388         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9389         (_IO_old_popen): Likewise.
9390         (_IO_old_proc_close): Likewise.
9391         * libio/oldpclose.c (__old_pclose): Likewise.
9392         * libio/pclose.c (__new_pclose): Likewise.
9393         * libio/peekc.c (_IO_peekc_locked): Likewise.
9394         * libio/putc.c (_IO_putc): Likewise.
9395         * libio/putc_u.c (putc_unlocked): Likewise.
9396         * libio/putchar.c (putchar): Likewise.
9397         * libio/putchar_u.c (putchar_unlocked): Likewise.
9398         * libio/putwc.c (putwc): Likewise.
9399         * libio/putwc_u.c (putwc_unlocked): Likewise.
9400         * libio/putwchar.c (putwchar): Likewise.
9401         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
9402         * libio/rewind.c (rewind): Likewise.
9403         * libio/setbuf.c (setbuf): Likewise.
9404         * libio/setlinebuf.c (setlinebuf): Likewise.
9405         * libio/vasprintf.c (_IO_vasprintf): Likewise.
9406         * libio/vscanf.c (_IO_vscanf): Likewise.
9407         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
9408         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
9409         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
9410         * libio/wgenops.c (_IO_least_wmarker): Likewise.
9411         (_IO_switch_to_main_wget_area): Likewise.
9412         (_IO_switch_to_wbackup_area): Likewise.
9413         (_IO_wsetb): Likewise.
9414         (_IO_wdefault_pbackfail): Likewise.
9415         (_IO_wdefault_finish): Likewise.
9416         (_IO_wdefault_uflow): Likewise.
9417         (__woverflow): Likewise.
9418         (__wuflow): Likewise.
9419         (__wunderflow): Likewise.
9420         (_IO_wdefault_xsputn): Likewise.
9421         (_IO_wdefault_xsgetn): Likewise.
9422         (_IO_wdoallocbuf): Likewise.
9423         (_IO_wdefault_doallocate): Likewise.
9424         (_IO_switch_to_wget_mode): Likewise.
9425         (_IO_free_wbackup_area): Likewise.
9426         (_IO_switch_to_wput_mode): Likewise.
9427         (_IO_sputbackwc): Likewise.
9428         (_IO_sungetwc): Likewise.
9429         (_IO_adjust_wcolumn): Likewise.
9430         (_IO_init_wmarker): Likewise.
9431         (_IO_wmarker_delta): Likewise.
9432         (_IO_seekwmark): Likewise.
9433         (_IO_unsave_wmarkers): Likewise.
9434         * libio/wmemstream.c (open_wmemstream): Likewise.
9435         (_IO_wmem_sync): Likewise.
9436         (_IO_wmem_finish): Likewise.
9437         * locale/nl_langinfo.c (nl_langinfo): Likewise.
9438         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
9439         * locale/programs/simple-hash.c (init_hash): Likewise.
9440         (delete_hash): Likewise.
9441         (insert_entry): Likewise.
9442         (set_entry): Likewise.
9443         (next_prime): Likewise.
9444         (is_prime): Likewise.
9445         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9446         (xmalloc): Likewise.
9447         (xrealloc): Likewise.
9448         * locale/programs/xstrdup.c (xstrdup): Likewise.
9449         * localedata/collate-test.c (xstrcoll): Likewise.
9450         * localedata/xfrm-test.c (xstrcmp): Likewise.
9451         * login/getlogin_r.c (__getlogin_r): Likewise.
9452         * login/getpt.c (__posix_openpt): Likewise.
9453         * login/login_tty.c (login_tty): Likewise.
9454         * login/setlogin.c (setlogin): Likewise.
9455         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9456         (mach_msg_destroy_port): Likewise.
9457         (mach_msg_destroy_memory): Likewise.
9458         * malloc/mcheck.c (flood): Likewise.
9459         * misc/acct.c (acct): Likewise.
9460         * misc/brk.c (__brk): Likewise.
9461         * misc/chflags.c (chflags): Likewise.
9462         * misc/chroot.c (chroot): Likewise.
9463         * misc/fchflags.c (fchflags): Likewise.
9464         * misc/fstab.c (getfsspec): Likewise.
9465         (getfsfile): Likewise.
9466         * misc/fsync.c (fsync): Likewise.
9467         * misc/ftruncate.c (__ftruncate): Likewise.
9468         * misc/ftruncate64.c (__ftruncate64): Likewise.
9469         * misc/getdomain.c (getdomainname): Likewise.
9470         (getdomainname): Likewise.
9471         * misc/gethostname.c (__gethostname): Likewise.
9472         * misc/getpass.c (getpass): Likewise.
9473         * misc/getttyent.c (skip): Likewise.
9474         (value): Likewise.
9475         * misc/gtty.c (gtty): Likewise.
9476         * misc/hsearch.c (hsearch): Likewise.
9477         (hcreate): Likewise.
9478         * misc/hsearch_r.c (__hcreate_r): Likewise.
9479         (__hdestroy_r): Likewise.
9480         * misc/ioctl.c (__ioctl): Likewise.
9481         * misc/mkdtemp.c (mkdtemp): Likewise.
9482         * misc/mkostemp.c (mkostemp): Likewise.
9483         * misc/mkostemp64.c (mkostemp64): Likewise.
9484         * misc/mkostemps.c (mkostemps): Likewise.
9485         * misc/mkostemps64.c (mkostemps64): Likewise.
9486         * misc/mkstemp.c (mkstemp): Likewise.
9487         * misc/mkstemp64.c (mkstemp64): Likewise.
9488         * misc/mkstemps.c (mkstemps): Likewise.
9489         * misc/mkstemps64.c (mkstemps64): Likewise.
9490         * misc/mktemp.c (__mktemp): Likewise.
9491         * misc/preadv.c (preadv): Likewise.
9492         * misc/preadv64.c (preadv64): Likewise.
9493         * misc/pwritev.c (pwritev): Likewise.
9494         * misc/pwritev64.c (pwritev64): Likewise.
9495         * misc/readv.c (__readv): Likewise.
9496         * misc/revoke.c (revoke): Likewise.
9497         * misc/setdomain.c (setdomainname): Likewise.
9498         * misc/setegid.c (setegid): Likewise.
9499         * misc/seteuid.c (seteuid): Likewise.
9500         * misc/sethostid.c (sethostid): Likewise.
9501         * misc/sethostname.c (sethostname): Likewise.
9502         * misc/setregid.c (__setregid): Likewise.
9503         * misc/setreuid.c (__setreuid): Likewise.
9504         * misc/sstk.c (sstk): Likewise.
9505         * misc/stty.c (stty): Likewise.
9506         * misc/syscall.c (syscall): Likewise.
9507         * misc/syslog.c (setlogmask): Likewise.
9508         * misc/truncate.c (__truncate): Likewise.
9509         * misc/truncate64.c (truncate64): Likewise.
9510         * misc/ualarm.c (ualarm): Likewise.
9511         * misc/usleep.c (usleep): Likewise.
9512         * misc/ustat.c (ustat): Likewise.
9513         * misc/writev.c (__writev): Likewise.
9514         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9515         * nptl/old_pthread_cond_broadcast.c
9516         (__pthread_cond_broadcast_2_0): Likewise.
9517         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9518         Likewise.
9519         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9520         Likewise.
9521         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9522         Likewise.
9523         * nptl/pt-raise.c (raise): Likewise.
9524         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9525         Likewise.
9526         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9527         * nptl/pthread_barrierattr_destroy.c
9528         (pthread_barrierattr_destroy): Likewise.
9529         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9530         Likewise.
9531         * nptl/pthread_barrierattr_setpshared.c
9532         (pthread_barrierattr_setpshared): Likewise.
9533         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9534         Likewise.
9535         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9536         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9537         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9538         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9539         Likewise.
9540         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9541         Likewise.
9542         * nptl/pthread_condattr_getpshared.c
9543         (pthread_condattr_getpshared): Likewise.
9544         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9545         Likewise.
9546         * nptl/pthread_condattr_setpshared.c
9547         (pthread_condattr_setpshared): Likewise.
9548         * nptl/pthread_detach.c (pthread_detach): Likewise.
9549         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9550         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9551         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9552         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9553         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9554         Likewise.
9555         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9556         Likewise.
9557         * nptl/pthread_mutex_getprioceiling.c
9558         (pthread_mutex_getprioceiling): Likewise.
9559         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9560         Likewise.
9561         * nptl/pthread_mutexattr_getprotocol.c
9562         (pthread_mutexattr_getprotocol): Likewise.
9563         * nptl/pthread_mutexattr_getpshared.c
9564         (pthread_mutexattr_getpshared): Likewise.
9565         * nptl/pthread_mutexattr_getrobust.c
9566         (pthread_mutexattr_getrobust): Likewise.
9567         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9568         Likewise.
9569         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9570         Likewise.
9571         * nptl/pthread_mutexattr_setprioceiling.c
9572         (pthread_mutexattr_setprioceiling): Likewise.
9573         * nptl/pthread_mutexattr_setprotocol.c
9574         (pthread_mutexattr_setprotocol): Likewise.
9575         * nptl/pthread_mutexattr_setpshared.c
9576         (pthread_mutexattr_setpshared): Likewise.
9577         * nptl/pthread_mutexattr_setrobust.c
9578         (pthread_mutexattr_setrobust): Likewise.
9579         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9580         Likewise.
9581         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9582         Likewise.
9583         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9584         Likewise.
9585         * nptl/pthread_rwlockattr_getkind_np.c
9586         (pthread_rwlockattr_getkind_np): Likewise.
9587         * nptl/pthread_rwlockattr_getpshared.c
9588         (pthread_rwlockattr_getpshared): Likewise.
9589         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9590         Likewise.
9591         * nptl/pthread_rwlockattr_setkind_np.c
9592         (pthread_rwlockattr_setkind_np): Likewise.
9593         * nptl/pthread_rwlockattr_setpshared.c
9594         (pthread_rwlockattr_setpshared): Likewise.
9595         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9596         Likewise.
9597         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9598         Likewise.
9599         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9600         Likewise.
9601         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9602         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9603         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9604         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9605         * nptl/sem_close.c (sem_close): Likewise.
9606         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9607         * nptl/sem_init.c (__old_sem_init): Likewise.
9608         * nptl/sigaction.c (__sigaction): Likewise.
9609         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9610         * posix/_exit.c (_exit): Likewise.
9611         * posix/alarm.c (alarm): Likewise.
9612         * posix/confstr.c (confstr): Likewise.
9613         * posix/fpathconf.c (__fpathconf): Likewise.
9614         * posix/getgroups.c (__getgroups): Likewise.
9615         * posix/getpgid.c (__getpgid): Likewise.
9616         * posix/group_member.c (__group_member): Likewise.
9617         * posix/pathconf.c (__pathconf): Likewise.
9618         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9619         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9620         * posix/setgid.c (__setgid): Likewise.
9621         * posix/setpgid.c (__setpgid): Likewise.
9622         * posix/setuid.c (__setuid): Likewise.
9623         * posix/sleep.c (__sleep): Likewise.
9624         * posix/sysconf.c (__sysconf): Likewise.
9625         * posix/times.c (__times): Likewise.
9626         * posix/uname.c (__uname): Likewise.
9627         * posix/waitid.c (__waitid): Likewise.
9628         * pwd/getpw.c (__getpw): Likewise.
9629         * resolv/base64.c (b64_pton): Likewise.
9630         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9631         * resolv/gethnamaddr.c (Dprintf): Likewise.
9632         (gethostbyname): Likewise.
9633         (gethostbyname2): Likewise.
9634         (gethostbyaddr): Likewise.
9635         (_sethtent): Likewise.
9636         (_gethtbyname): Likewise.
9637         (_gethtbyname2): Likewise.
9638         (_gethtbyaddr): Likewise.
9639         (map_v4v6_address): Likewise.
9640         (map_v4v6_hostent): Likewise.
9641         (addrsort): Likewise.
9642         (ht_sethostent): Likewise.
9643         (ht_gethostbyname): Likewise.
9644         (ht_gethostbyaddr): Likewise.
9645         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9646         (inet_net_ntop_ipv4): Likewise.
9647         * resolv/inet_neta.c (inet_neta): Likewise.
9648         * resolv/inet_ntop.c (inet_ntop): Likewise.
9649         (inet_ntop4): Likewise.
9650         (inet_ntop6): Likewise.
9651         * resolv/inet_pton.c (__inet_pton): Likewise.
9652         (inet_pton4): Likewise.
9653         (inet_pton6): Likewise.
9654         * resolv/res_debug.c (loc_aton): Likewise.
9655         (loc_ntoa): Likewise.
9656         * resource/getpriority.c (__getpriority): Likewise.
9657         * resource/getrusage.c (__getrusage): Likewise.
9658         * resource/nice.c (nice): Likewise.
9659         * resource/setpriority.c (__setpriority): Likewise.
9660         * resource/setrlimit64.c (setrlimit64): Likewise.
9661         * resource/vlimit.c (vlimit): Likewise.
9662         * resource/vtimes.c (vtimes): Likewise.
9663         * rt/aio_error.c (aio_error): Likewise.
9664         * rt/aio_return.c (aio_return): Likewise.
9665         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9666         * signal/kill.c (__kill): Likewise.
9667         * signal/killpg.c (killpg): Likewise.
9668         * signal/raise.c (raise): Likewise.
9669         * signal/sigaction.c (__sigaction): Likewise.
9670         * signal/sigaddset.c (sigaddset): Likewise.
9671         * signal/sigaltstack.c (sigaltstack): Likewise.
9672         * signal/sigandset.c (sigandset): Likewise.
9673         * signal/sigblock.c (__sigblock): Likewise.
9674         * signal/sigdelset.c (sigdelset): Likewise.
9675         * signal/sigempty.c (sigemptyset): Likewise.
9676         * signal/sigfillset.c (sigfillset): Likewise.
9677         * signal/sighold.c (sighold): Likewise.
9678         * signal/sigignore.c (sigignore): Likewise.
9679         * signal/sigintr.c (siginterrupt): Likewise.
9680         * signal/sigisempty.c (sigisemptyset): Likewise.
9681         * signal/sigismem.c (sigismember): Likewise.
9682         * signal/signal.c (signal): Likewise.
9683         * signal/sigorset.c (sigorset): Likewise.
9684         * signal/sigpause.c (__sigpause): Likewise.
9685         * signal/sigpending.c (sigpending): Likewise.
9686         * signal/sigprocmask.c (__sigprocmask): Likewise.
9687         * signal/sigrelse.c (sigrelse): Likewise.
9688         * signal/sigreturn.c (__sigreturn): Likewise.
9689         * signal/sigset.c (sigset): Likewise.
9690         * signal/sigsetmask.c (__sigsetmask): Likewise.
9691         * signal/sigstack.c (sigstack): Likewise.
9692         * signal/sigsuspend.c (__sigsuspend): Likewise.
9693         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9694         * signal/sysv_signal.c (__sysv_signal): Likewise.
9695         * socket/accept.c (accept): Likewise.
9696         * socket/accept4.c (__libc_accept4): Likewise.
9697         * socket/bind.c (__bind): Likewise.
9698         * socket/connect.c (__connect): Likewise.
9699         * socket/getpeername.c (getpeername): Likewise.
9700         * socket/getsockname.c (__getsockname): Likewise.
9701         * socket/getsockopt.c (getsockopt): Likewise.
9702         * socket/listen.c (__listen): Likewise.
9703         * socket/recv.c (__recv): Likewise.
9704         * socket/recvmsg.c (__recvmsg): Likewise.
9705         * socket/send.c (__send): Likewise.
9706         * socket/sendmsg.c (__sendmsg): Likewise.
9707         * socket/shutdown.c (shutdown): Likewise.
9708         * socket/sockatmark.c (sockatmark): Likewise.
9709         * socket/socket.c (__socket): Likewise.
9710         * stdio-common/ctermid.c (ctermid): Likewise.
9711         * stdio-common/cuserid.c (cuserid): Likewise.
9712         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9713         * stdio-common/remove.c (remove): Likewise.
9714         * stdio-common/rename.c (rename): Likewise.
9715         * stdio-common/renameat.c (renameat): Likewise.
9716         * stdio-common/tempname.c (__gen_tempname): Likewise.
9717         * stdio-common/xbug.c (InitBuffer): Likewise.
9718         (AppendToBuffer): Likewise.
9719         (ReadFile): Likewise.
9720         * stdlib/a64l.c (a64l): Likewise.
9721         * stdlib/drand48_r.c (drand48_r): Likewise.
9722         * stdlib/getcontext.c (getcontext): Likewise.
9723         * stdlib/getenv.c (getenv): Likewise.
9724         * stdlib/l64a.c (l64a): Likewise.
9725         * stdlib/llabs.c (llabs): Likewise.
9726         * stdlib/lldiv.c (lldiv): Likewise.
9727         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9728         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9729         * stdlib/putenv.c (putenv): Likewise.
9730         * stdlib/random.c (__srandom): Likewise.
9731         (__initstate): Likewise.
9732         (__setstate): Likewise.
9733         * stdlib/random_r.c (__srandom_r): Likewise.
9734         (__setstate_r): Likewise.
9735         (__random_r): Likewise.
9736         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9737         * stdlib/setcontext.c (setcontext): Likewise.
9738         * stdlib/setenv.c (setenv): Likewise.
9739         (unsetenv): Likewise.
9740         * stdlib/srand48.c (srand48): Likewise.
9741         * stdlib/srand48_r.c (__srand48_r): Likewise.
9742         * stdlib/swapcontext.c (swapcontext): Likewise.
9743         * stdlib/system.c (__libc_system): Likewise.
9744         * stdlib/tst-strtod.c (expand): Likewise.
9745         * stdlib/tst-strtol.c (expand): Likewise.
9746         * stdlib/tst-strtoll.c (expand): Likewise.
9747         * streams/fattach.c (fattach): Likewise.
9748         * streams/fdetach.c (fdetach): Likewise.
9749         * streams/getmsg.c (getmsg): Likewise.
9750         * streams/isastream.c (isastream): Likewise.
9751         * string/ffs.c (__ffs): Likewise.
9752         * string/ffsll.c (ffsll): Likewise.
9753         * string/memcmp.c (memcmp_common_alignment): Likewise.
9754         (memcmp_not_common_alignment): Likewise.
9755         (MEMCMP): Likewise.
9756         * string/memcpy.c (memcpy): Likewise.
9757         * string/memmove.c (MEMMOVE): Likewise.
9758         * string/memset.c (memset): Likewise.
9759         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9760         * string/strchrnul.c (STRCHRNUL): Likewise.
9761         * string/strerror.c (strerror): Likewise.
9762         * string/strndup.c (__strndup): Likewise.
9763         * string/strverscmp.c (__strverscmp): Likewise.
9764         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9765         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9766         (clnttcp_freeres): Likewise.
9767         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9768         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9769         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9770         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9771         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9772         (xdr_callhdr): Likewise.
9773         * sunrpc/rpcinfo.c (udpping): Likewise.
9774         (tcpping): Likewise.
9775         (pstatus): Likewise.
9776         (pmapdump): Likewise.
9777         (brdcst): Likewise.
9778         (deletereg): Likewise.
9779         (getprognum): Likewise.
9780         (getvers): Likewise.
9781         (get_inet_address): Likewise.
9782         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9783         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9784         (svcudp_stat): Likewise.
9785         (svcudp_recv): Likewise.
9786         (svcudp_reply): Likewise.
9787         (svcudp_getargs): Likewise.
9788         (svcudp_freeargs): Likewise.
9789         (svcudp_destroy): Likewise.
9790         * sunrpc/xdr.c (xdr_bytes): Likewise.
9791         (xdr_netobj): Likewise.
9792         (xdr_string): Likewise.
9793         (xdr_wrapstring): Likewise.
9794         * sunrpc/xdr_float.c (xdr_float): Likewise.
9795         (xdr_double): Likewise.
9796         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9797         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9798         * sysvipc/ftok.c (ftok): Likewise.
9799         * sysvipc/msgctl.c (msgctl): Likewise.
9800         * sysvipc/msgget.c (msgget): Likewise.
9801         * sysvipc/msgrcv.c (msgrcv): Likewise.
9802         * sysvipc/msgsnd.c (msgsnd): Likewise.
9803         * sysvipc/semget.c (semget): Likewise.
9804         * sysvipc/semop.c (semop): Likewise.
9805         * sysvipc/shmat.c (shmat): Likewise.
9806         * sysvipc/shmctl.c (shmctl): Likewise.
9807         * sysvipc/shmdt.c (shmdt): Likewise.
9808         * sysvipc/shmget.c (shmget): Likewise.
9809         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9810         * termios/speed.c (cfgetospeed): Likewise.
9811         (cfgetispeed): Likewise.
9812         (cfsetospeed): Likewise.
9813         (cfsetispeed): Likewise.
9814         * termios/tcflow.c (tcflow): Likewise.
9815         * termios/tcflush.c (tcflush): Likewise.
9816         * termios/tcgetattr.c (__tcgetattr): Likewise.
9817         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9818         * termios/tcgetsid.c (tcgetsid): Likewise.
9819         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9820         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9821         * time/adjtime.c (__adjtime): Likewise.
9822         * time/dysize.c (dysize): Likewise.
9823         * time/ftime.c (ftime): Likewise.
9824         * time/getitimer.c (__getitimer): Likewise.
9825         * time/gettimeofday.c (__gettimeofday): Likewise.
9826         * time/gmtime.c (__gmtime_r): Likewise.
9827         (gmtime): Likewise.
9828         * time/localtime.c (__localtime_r): Likewise.
9829         (localtime): Likewise.
9830         * time/offtime.c (__offtime): Likewise.
9831         * time/settimeofday.c (__settimeofday): Likewise.
9832         * time/stime.c (stime): Likewise.
9833         * time/strftime_l.c (tm_diff): Likewise.
9834         (iso_week_days): Likewise.
9835         * time/strptime.c (strptime): Likewise.
9836         * time/time.c (time): Likewise.
9837         * time/timespec_get.c (timespec_get): Likewise.
9838         * time/tzset.c (tzset_internal): Likewise.
9839         (compute_change): Likewise.
9840         (__tz_compute): Likewise.
9841         * wcsmbs/btowc.c (__btowc): Likewise.
9842         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9843         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9844         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9845         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9846         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9847         * wcsmbs/wcscat.c (__wcscat): Likewise.
9848         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9849         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9850         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9851         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9852         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9853         * wcsmbs/wcslen.c (__wcslen): Likewise.
9854         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9855         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9856         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9857         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9858         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9859         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9860         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9861         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9862         * wcsmbs/wcstok.c (wcstok): Likewise.
9863         * wcsmbs/wctob.c (wctob): Likewise.
9864         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9865         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9866         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9867         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9868         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9869         * wcsmbs/wmemset.c (__wmemset): Likewise.
9870         * wctype/wcfuncs.c (__towlower): Likewise.
9871         (__towupper): Likewise.
9872
9873         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9874         (lll_unlock_elision): Add adapt_count parameter.
9875
9876 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9877
9878         * sysdeps/nptl/configure.ac: Do not give errors based on the
9879         results of top-level configure tests.
9880         * sysdeps/nptl/configure: Regenerated.
9881
9882         * configure.ac (libc_cv_Bgroup): Remove configure test.
9883         * configure: Regenerated.
9884         * config.make.in (have-Bgroup): Remove variable.
9885
9886         * configure.ac (sizeof_long_double): Remove configure test.
9887         * configure: Regenerated.
9888         * config.make.in (sizeof-long-double): Remove variable.
9889
9890         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9891         * configure: Regenerated.
9892         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9893         variable.
9894         (exceptions): Likewise.
9895         * sysdeps/arm/configure: Regenerated.
9896         * config.make.in (exceptions): Remove variable.
9897         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9898         $(exceptions).
9899         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9900         (CFLAGS-vdprintf_chk.c): Likewise.
9901         (CFLAGS-printf_chk.c): Likewise.
9902         (CFLAGS-fprintf_chk.c): Likewise.
9903         (CFLAGS-vprintf_chk.c): Likewise.
9904         (CFLAGS-vfprintf_chk.c): Likewise.
9905         (CFLAGS-gets_chk.c): Likewise.
9906         (CFLAGS-fgets_chk.c): Likewise.
9907         (CFLAGS-fgets_u_chk.c): Likewise.
9908         (CFLAGS-fread_chk.c): Likewise.
9909         (CFLAGS-fread_u_chk.c): Likewise.
9910         (CFLAGS-wprintf_chk.c): Likewise.
9911         (CFLAGS-fwprintf_chk.c): Likewise.
9912         (CFLAGS-vwprintf_chk.c): Likewise.
9913         (CFLAGS-vfwprintf_chk.c): Likewise.
9914         (CFLAGS-fgetws_chk.c): Likewise.
9915         (CFLAGS-fgetws_u_chk.c): Likewise.
9916         * libio/Makefile (CFLAGS-fileops.c): Likewise.
9917         (CFLAGS-fputc.c): Likewise.
9918         (CFLAGS-fputwc.c): Likewise.
9919         (CFLAGS-freopen64.c): Likewise.
9920         (CFLAGS-freopen.c): Likewise.
9921         (CFLAGS-fseek.c): Likewise.
9922         (CFLAGS-fseeko64.c): Likewise.
9923         (CFLAGS-fseeko.c): Likewise.
9924         (CFLAGS-ftello64.c): Likewise.
9925         (CFLAGS-ftello.c): Likewise.
9926         (CFLAGS-fwide.c): Likewise.
9927         (CFLAGS-genops.c): Likewise.
9928         (CFLAGS-getc.c): Likewise.
9929         (CFLAGS-getchar.c): Likewise.
9930         (CFLAGS-getwc.c): Likewise.
9931         (CFLAGS-getwchar.c): Likewise.
9932         (CFLAGS-iofclose.c): Likewise.
9933         (CFLAGS-iofflush.c): Likewise.
9934         (CFLAGS-iofgetpos64.c): Likewise.
9935         (CFLAGS-iofgetpos.c): Likewise.
9936         (CFLAGS-iofgets.c): Likewise.
9937         (CFLAGS-iofgetws.c): Likewise.
9938         (CFLAGS-iofputs.c): Likewise.
9939         (CFLAGS-iofputws.c): Likewise.
9940         (CFLAGS-iofread.c): Likewise.
9941         (CFLAGS-iofsetpos64.c): Likewise.
9942         (CFLAGS-iofsetpos.c): Likewise.
9943         (CFLAGS-ioftell.c): Likewise.
9944         (CFLAGS-iofwrite.c): Likewise.
9945         (CFLAGS-iogetdelim.c): Likewise.
9946         (CFLAGS-iogetline.c): Likewise.
9947         (CFLAGS-iogets.c): Likewise.
9948         (CFLAGS-iogetwline.c): Likewise.
9949         (CFLAGS-ioputs.c): Likewise.
9950         (CFLAGS-ioseekoff.c): Likewise.
9951         (CFLAGS-ioseekpos.c): Likewise.
9952         (CFLAGS-iosetbuffer.c): Likewise.
9953         (CFLAGS-iosetvbuf.c): Likewise.
9954         (CFLAGS-ioungetc.c): Likewise.
9955         (CFLAGS-ioungetwc.c): Likewise.
9956         (CFLAGS-oldfileops.c): Likewise.
9957         (CFLAGS-oldiofclose.c): Likewise.
9958         (CFLAGS-oldiofgetpos64.c): Likewise.
9959         (CFLAGS-oldiofgetpos.c): Likewise.
9960         (CFLAGS-oldiofsetpos64.c): Likewise.
9961         (CFLAGS-oldiofsetpos.c): Likewise.
9962         (CFLAGS-peekc.c): Likewise.
9963         (CFLAGS-putc.c): Likewise.
9964         (CFLAGS-putchar.c): Likewise.
9965         (CFLAGS-putwc.c): Likewise.
9966         (CFLAGS-putwchar.c): Likewise.
9967         (CFLAGS-rewind.c): Likewise.
9968         (CFLAGS-wfileops.c): Likewise.
9969         (CFLAGS-wgenops.c): Likewise.
9970         (CFLAGS-oldiofopen.c): Likewise.
9971         (CFLAGS-iofopen.c): Likewise.
9972         (CFLAGS-iofopen64.c): Likewise.
9973         (CFLAGS-oldtmpfile.c): Likewise.
9974         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
9975         (CFLAGS-fprintf.c): Likewise.
9976         (CFLAGS-printf.c): Likewise.
9977         (CFLAGS-vfwprintf.c): Likewise.
9978         (CFLAGS-vfscanf.c): Likewise.
9979         (CFLAGS-vfwscanf.c): Likewise.
9980         (CFLAGS-fscanf.c): Likewise.
9981         (CFLAGS-scanf.c): Likewise.
9982         (CFLAGS-isoc99_vfscanf.c): Likewise.
9983         (CFLAGS-isoc99_vscanf.c): Likewise.
9984         (CFLAGS-isoc99_fscanf.c): Likewise.
9985         (CFLAGS-isoc99_scanf.c): Likewise.
9986         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
9987         (CFLAGS-isoc99_fwscanf.c): Likewise.
9988         (CFLAGS-isoc99_vwscanf.c): Likewise.
9989         (CFLAGS-isoc99_vfwscanf.c): Likewise.
9990
9991         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
9992         after mkstemp64.
9993         * login/tst-utmp.c (do_prepare): Likewise.
9994         * rt/tst-aio.c (do_prepare): Likewise.
9995         * rt/tst-aio64.c (do_prepare): Likewise.
9996
9997 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9998
9999         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
10000         (__lll_lock_elision): Remove adapt_count decrement...
10001         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
10002         (__lll_trylock_elision): Likewise.
10003         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
10004         (__lll_unlock_elision): ... to here. And utilize
10005         new adapt_count parameter.
10006         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10007         (__lll_unlock_elision): Update to include adapt_count
10008         parameter.
10009         (lll_unlock_elision): Pass pointer to adapt_count
10010         variable.
10011
10012 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10013
10014         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
10015         Add elision adapt_count parameter to list of arguments.
10016         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10017         (lll_unlock_elision): Update with new parameter list
10018         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
10019         (lll_unlock_elision): Likewise.
10020         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
10021         (lll_unlock_elision): Likewise.
10022
10023 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10024
10025         [BZ #19122]
10026         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
10027         attribute_hidden.
10028
10029         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
10030         attribute_hidden.
10031         [IS_IN (rtld)] (__strdup): Likewise.
10032         [IS_IN (rtld)] (__strerror_r): Likewise.
10033         [IS_IN (rtld)] (__strsep_g): Likewise.
10034         [IS_IN (rtld)] (memchr): Likewise.
10035         [IS_IN (rtld)] (memcmp): Likewise.
10036         [IS_IN (rtld)] (memcpy): Likewise.
10037         [IS_IN (rtld)] (memmove): Likewise.
10038         [IS_IN (rtld)] (memset): Likewise.
10039         [IS_IN (rtld)] (rawmemchr): Likewise.
10040         [IS_IN (rtld)] (stpcpy): Likewise.
10041         [IS_IN (rtld)] (strchr): Likewise.
10042         [IS_IN (rtld)] (strcmp): Likewise.
10043         [IS_IN (rtld)] (strlen): Likewise.
10044         [IS_IN (rtld)] (strnlen): Likewise.
10045         [IS_IN (rtld)] (strsep): Likewise.
10046
10047         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
10048         attribute_hidden.
10049         [IS_IN (rtld)] (__strtoul_internal): Likewise.
10050
10051         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
10052         attribute_hidden.
10053         [IS_IN (rtld)] (__libc_sigaction): Likewise.
10054
10055         * include/setjmp.h (__longjmp): Add attribute_hidden.
10056         [IS_IN (rtld)] (__sigsetjmp): Likewise.
10057
10058         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
10059         Add attribute_hidden.
10060
10061         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
10062         [IS_IN (rtld)] (__open): Likewise.
10063         [IS_IN (rtld)] (__fcntl): Likewise.
10064
10065         * include/dirent.h (__opendirat): Add attribute_hidden.
10066         (__getdents): Likewise.
10067         (__getdents64): Likewise.
10068         (__alloc_dir): Likewise.
10069         [IS_IN (rtld)] (__closedir): Likewise.
10070         [IS_IN (rtld)] (__fdopendir): Likewise.
10071         [IS_IN (rtld)] (__readdir): Likewise.
10072         [IS_IN (rtld)] (__readdir64): Likewise.
10073         [IS_IN (rtld)] (__rewinddir): Likewise.
10074
10075         * include/dlfcn.h (_dl_catch_error): Moved to ...
10076         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
10077         attribute_hidden.
10078
10079         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
10080         (_itoa_word): Likewise.
10081
10082         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
10083         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
10084         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
10085         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
10086         (_dl_higher_prime_number): Likewise.
10087         (_dl_debug_printf_c): Likewise.
10088         (_dl_signal_cerror): Likewise.
10089         (_dl_receive_error): Likewise.
10090         (_dl_reloc_bad_type): Likewise.
10091         (_dl_resolve_conflicts): Likewise.
10092         (_dl_check_all_versions): Likewise.
10093         (_dl_check_map_versions): Likewise.
10094         (_dl_sort_fini): Likewise.
10095         (_dl_debug_initialize): Likewise.
10096         (_dl_init_paths): Likewise.
10097         (_dl_show_auxv): Likewise.
10098         (_dl_next_ld_env_entry): Likewise.
10099         (_dl_important_hwcaps): Likewise.
10100         (_dl_load_cache_lookup): Likewise.
10101         (_dl_update_slotinfo): Likewise.
10102         (_dl_show_scope): Likewise.
10103
10104         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
10105         attribute_hidden.
10106         (_wordcopy_fwd_dest_aligned): Likewise.
10107         (_wordcopy_bwd_aligned): Likewise.
10108         (_wordcopy_bwd_dest_aligned): Likewise.
10109
10110         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
10111         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10112         Likewise.
10113         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10114         Likewise.
10115         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
10116
10117 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10118
10119         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
10120         GCC 5 requirement.
10121
10122 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10123
10124         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
10125         test.
10126         * sysdeps/i386/configure: Regenerated.
10127         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
10128         code unconditional.
10129
10130         * configure.ac (libc_cv_asm_previous_directive): Remove configure
10131         test.
10132         (libc_cv_asm_popsection_directive): Likewise.
10133         * configure: Regenerated.
10134         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
10135         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
10136         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
10137         (__make_section_unallocated): Make definition unconditional.
10138         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
10139         Remove conditional definition.
10140         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
10141         (__make_section_unallocated): Likewise.
10142
10143         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
10144         * configure: Regenerated.
10145         * config.make.in (static-libgcc): Remove variable.
10146         * Makerules (build-shlib-helper): Use -static-libgcc instead of
10147         $(static-libgcc).
10148         (build-module-helper): Likewise.
10149
10150         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
10151         * configure: Regenerated.
10152
10153 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10154
10155         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
10156         (struct char_buffer): New type.
10157         (char_buffer_start, char_buffer_size, char_buffer_error)
10158         (char_buffer_rewind, char_buffer_add): New functions.
10159         (ADDW): Remove macro, replaced by the char_buffer_add function.
10160         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
10161         of extend_alloca.  Make control flow more explicit.
10162
10163 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10164
10165         [BZ #19137]
10166         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
10167         Add -fomit-frame-pointer.
10168         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
10169
10170 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10171
10172         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
10173         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
10174         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
10175         only if !__GNUC_PREREQ (5,0).
10176         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
10177         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10178         (INTERNAL_SYSCALL_NCS): Likewise.
10179         (LOADREGS_0): New macro for GCC 5.
10180         (ASMARGS_0): Likewise.
10181         (LOADREGS_1): Likewise.
10182         (ASMARGS_1): Likewise.
10183         (LOADREGS_2): Likewise.
10184         (ASMARGS_2): Likewise.
10185         (LOADREGS_3): Likewise.
10186         (ASMARGS_3): Likewise.
10187         (LOADREGS_4): Likewise.
10188         (ASMARGS_4): Likewise.
10189         (LOADREGS_5): Likewise.
10190         (ASMARGS_5): Likewise.
10191         (LOADREGS_6): Likewise.
10192         (ASMARGS_6): Likewise.
10193
10194 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10195
10196         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
10197         -fomit-frame-pointer.
10198         (CFLAGS-mmap64.c): Likewise.
10199         (CFLAGS-semtimedop.c): Likewise.
10200         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
10201         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
10202         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10203         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
10204
10205 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10206
10207         [BZ #18928]
10208         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
10209         _dl_pointer_guard member.
10210         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
10211         initializer.
10212         (security_init): Always set up pointer guard.
10213         (process_envvars): Do not process LD_POINTER_GUARD.
10214
10215 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
10216
10217         [BZ #19134]
10218         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
10219         (.LC2): Likewise.
10220         (.LC3): Likewise.
10221         (__lround): Do not add 0.5 to integer or out-of-range arguments.
10222
10223 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10224
10225         [BZ #19129]
10226         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
10227         r0 and r1.
10228
10229 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
10230
10231         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
10232
10233 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
10234
10235         * include/stap-probe.h: Fix macro definition formatting.
10236
10237 2015-10-14  Florian Weimer  <fweimer@redhat.com>
10238
10239         [BZ #19074]
10240         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
10241         load and store num_ifs.
10242
10243 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10244
10245         [BZ #18822]
10246         * sysdeps/unix/sysv/linux/sched_getaffinity.c
10247         (__sched_getaffinity_new): Add libc_hidden_proto and
10248         libc_hidden_def.
10249
10250 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10251
10252         [BZ #19007]
10253         * scripts/localplt.awk: Also allow GOT references.
10254         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
10255         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
10256         with "+ REL R_386_GLOB_DAT".
10257         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
10258         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
10259
10260 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10261
10262         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
10263         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10264         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
10265         Likewise.
10266         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
10267         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
10268         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
10269         INTERNAL_SYSCALLINTERNAL_SYSCALL and
10270         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10271         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
10272         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10273         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
10274         Likewise.
10275         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10276
10277 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10278
10279         [BZ #19125]
10280         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
10281         <math_private.h> and <stdint.h>.
10282         (__llround): Avoid conversions to and from long long int, and
10283         subtractions, where those might raise spurious exceptions.
10284         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
10285         <math_private.h> and <stdint.h>.
10286         (__llroundf): Avoid conversions to and from long long int, and
10287         subtractions, where those might raise spurious exceptions.
10288
10289 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10290
10291         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
10292         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10293         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
10294         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
10295         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
10296         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
10297         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
10298         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
10299         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
10300         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10301         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10302         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10303         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
10304         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10305         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10306         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
10307         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
10308         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
10309         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
10310         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
10311         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
10312         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
10313         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
10314         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
10315         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
10316         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
10317         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
10318         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
10319         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10320         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
10321         (__xstat64_conv): Likewise.
10322         (__xstat32_conv): Likewise.
10323
10324 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10325
10326         * sysdeps/unix/sysv/linux/sysdep.h: New file.
10327         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
10328         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
10329         <sysdeps/unix/sysv/linux/sysdep.h>.
10330         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
10331         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
10332         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
10333         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
10334         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10335         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
10336         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
10337         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10338         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10341         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10342         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10343         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10344         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10345         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10346         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
10347         (sysdep-dl-routines): Add sysdep.
10348         [$(subdir) == nptl] (libpthread-routines): Likewise.
10349         [$(subdir) == rt] (librt-routines): Likewise.
10350         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
10351         PIC when branching to SYSCALL_ERROR_LABEL.
10352         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
10353         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
10354         <sysdeps/unix/sysv/linux/sysdep.h>.
10355         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
10356         (SYSCALL_ERROR_ERRNO): Removed.
10357         (SYSCALL_ERROR_HANDLER): Changed to empty.
10358         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
10359         (__syscall_error): New prototype.
10360         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
10361         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
10362
10363 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10364
10365         [BZ #19124]
10366         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
10367         (_dl_runtime_resolve_avx512): Make it a hidden alias of
10368         _dl_runtime_resolve_avx.
10369         (_dl_runtime_profile_avx512): Make it a hidden alias of
10370         _dl_runtime_profile_avx.
10371
10372 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10373
10374         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
10375         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
10376         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
10377         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
10378
10379         [BZ #16422]
10380         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
10381         New configure test.
10382         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
10383         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
10384         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
10385         <math_private.h> and <stdint.h>.
10386         (__llrint): Avoid conversions to long long int where those might
10387         raise spurious exceptions.
10388         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
10389         <math_private.h> and <stdint.h>.
10390         (__llrintf): Avoid conversions to long long int where those might
10391         raise spurious exceptions.
10392
10393 2015-10-12  Andreas Schwab  <schwab@suse.de>
10394
10395         [BZ #18969]
10396         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
10397         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
10398         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
10399         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
10400         $(gen-locales).
10401         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
10402         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
10403         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
10404         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
10405         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
10406         $(gen-locales).
10407         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
10408         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
10409         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
10410         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
10411         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
10412         ($(objpfx)tst-ftell-active-handler.out)
10413         ($(objpfx)tst-ftell-append.out)
10414         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
10415         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
10416         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
10417         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
10418         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
10419         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
10420         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
10421         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
10422         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
10423         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
10424         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
10425         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
10426         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
10427         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
10428         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
10429         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
10430         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
10431         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
10432         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
10433         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
10434         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
10435         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
10436         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
10437         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
10438         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
10439         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
10440         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10441         $(gen-locales).
10442         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10443         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10444         $(gen-locales).
10445         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10446         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10447         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10448         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10449         $(gen-locales).
10450         * libio/tst_wprintf2.c (main): Use explicit locale.
10451         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10452
10453 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10454
10455         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10456         __msg_sig_post.
10457         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10458
10459 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10460
10461         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10462         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10463
10464         * sysdeps/arm/libm-test-ulps: Regenerated.
10465
10466         [BZ #15470]
10467         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10468
10469         [BZ #16399]
10470         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10471         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10472         and <fix-fp-int-convert-overflow.h>.
10473         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10474         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10475         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10476         and <fix-fp-int-convert-overflow.h>.
10477         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10478         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10479         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10480         <fix-fp-int-convert-overflow.h>.
10481         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10482         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10483         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10484         <fix-fp-int-convert-overflow.h>.
10485         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10486         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10487         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10488         and <fix-fp-int-convert-overflow.h>.
10489         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10490         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10491         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10492         <limits.h> and <fix-fp-int-convert-overflow.h>.
10493         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10494         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10495         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10496         and <fix-fp-int-convert-overflow.h>.
10497         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10498         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10499         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10500         and <fix-fp-int-convert-overflow.h>.
10501         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10502         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10503         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10504
10505 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10506
10507         [BZ #18589]
10508         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10509         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10510         $(gen-locales).
10511
10512 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10513             Phil Blundell <pb@pbcl.net>
10514
10515         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10516         * nptl/tst-cancel26.c: New file.
10517         * nptl/tst-cancel27.c: Likewise.
10518
10519 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10520
10521         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10522         __ILP32__ isn't defined.
10523         (lrint): Likewise.
10524         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10525         (lrintf): Likewise.
10526         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10527         (lrintl): Likewise.
10528         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10529         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10530         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10531
10532 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10533
10534         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10535         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10536
10537         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10538         file.
10539         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10540         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10541
10542 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10543
10544         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10545         configure test.
10546         * sysdeps/i386/configure: Regenerated.
10547         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10548         configure test.
10549         * sysdeps/x86_64/configure: Regenerated.
10550         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10551         Make code unconditional.
10552
10553         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10554         test.
10555         * sysdeps/i386/configure: Regenerated.
10556         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10557         test.
10558         * sysdeps/x86_64/configure: Regenerated.
10559         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10560         Make code unconditional.
10561         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10562         Likewise.
10563         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10564         Likewise.
10565         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10566         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10567         code unconditional.
10568         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10569         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10570         code unconditional.
10571         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10572         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10573         code unconditional.
10574         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10575         code unconditional.
10576         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10577         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10578         code unconditional.
10579         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10580         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10581         code unconditional.
10582         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10583         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10584         code unconditional.
10585         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10586         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10587         code unconditional.
10588         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10589         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10590
10591         [BZ #19095]
10592         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10593         mantissa to long int before shifting left.
10594
10595 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10596
10597         [BZ #19094]
10598         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10599         <limits.h>.
10600         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10601         when result overflows but exception would not result from cast.
10602         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10603         <limits.h>.
10604         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10605         when result overflows but exception would not result from cast.
10606         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10607         <limits.h>.
10608         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10609         when result overflows but exception would not result from cast.
10610         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10611         <limits.h>.
10612         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10613         when result overflows but exception would not result from cast.
10614         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10615         <limits.h>.
10616         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10617         when result overflows but exception would not result from cast.
10618         * math/libm-test.inc (lrint_test_data): Add more tests.
10619         (llrint_test_data): Likewise.
10620
10621 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10622
10623         [BZ #18872]
10624         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10625         Move out from under [$(run-built-tests) = yes] conditional.
10626         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10627         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10628
10629 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10630
10631         [BZ #18589]
10632         * string/Makefile (tests): Add bug-strcoll2.
10633         (LOCALES): Add cs_CZ.UTF-8.
10634         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10635
10636         [BZ #18589]
10637         * string/bug-strcoll2.c: New file.
10638         * locale/categories.def: Revert commit
10639         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10640         * locale/langinfo.h: Likewise.
10641         * locale/localeinfo.h: Likewise.
10642         * locale/C-collate.c: Likewise.
10643         * locale/programs/ld-collate.c (collate_output): Likewise.
10644         * string/strcoll_l.c (STRDIFF): Likewise.
10645         (STRCOLL): Likewise.
10646         * wcsmbs/wcscoll_l.c: Likewise.
10647
10648 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10649
10650         * math/libm-test.inc (lround_test_data): Do not expect the absence
10651         of "inexact" for some tests with non-integer arguments.
10652         (llround_test_data): Likewise.
10653
10654         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10655         test.
10656         (libc_cv_cc_sse2avx): Likewise.
10657         * sysdeps/i386/configure: Regenerated.
10658         * sysdeps/i386/i686/multiarch/Makefile
10659         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10660         [$(subdir) = math].
10661         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10662         code unconditional.
10663         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10664         Likewise.
10665         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10666         Likewise.
10667         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10668         Likewise.
10669         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10670         test.
10671         (libc_cv_cc_sse2avx): Likewise.
10672         * sysdeps/x86_64/configure: Regenerated.
10673         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10674         unconditional.
10675         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10676         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10677         unconditional.
10678         (_dl_runtime_profile)
10679         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10680         conditional code.
10681         * sysdeps/x86_64/fpu/multiarch/Makefile
10682         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10683         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10684         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10685         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10686         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10687         * sysdeps/x86_64/fpu/multiarch/e_log.c
10688         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10689         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10690         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10691         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10692         Likewise.
10693         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10694         Likewise.
10695         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10696         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10697         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10698         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10699         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10700         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10701         (HAVE_SSE2AVX_SUPPORT): Likewise.
10702
10703 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10704
10705         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10706         instead of #pragma optimize.
10707
10708 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10709
10710         [BZ #17195]
10711         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10712         as is similarly done in systrim and _int_free already.
10713
10714 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10715
10716         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10717
10718 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10719
10720         [BZ #19088]
10721         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10722         <limits.h>.
10723         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10724         overflows but exception would not result from cast.
10725         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10726         and <limits.h>.
10727         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10728         overflows but exception would not result from cast.
10729         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10730         <limits.h>.
10731         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10732         overflows but exception would not result from cast.
10733         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10734         <limits.h>.
10735         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10736         overflows but exception would not result from cast.
10737         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10738         <limits.h>.
10739         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10740         overflows but exception would not result from cast.
10741         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10742         <limits.h>.
10743         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10744         overflows but exception would not result from cast.
10745         * math/libm-test.inc (lround_test_data): Add more tests.
10746         (llround_test_data): Likewise.
10747
10748 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10749
10750         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10751         (CFLAGS-ialloc.c): Ditto.
10752         (CFLAGS-scheck.c): Ditto.
10753
10754 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10755
10756         [BZ #19086]
10757         * manual/filesys.texi (Storage Allocation): Fix argument order for
10758         posix_fallocate64.
10759
10760 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10761
10762         [BZ #19085]
10763         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10764         exponent below 48 inside case for non-overflowing exponent.
10765         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10766
10767 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10768
10769         * iconvdata/cp737.h (from_idx): Add const.
10770         * iconvdata/cp775.h (from_idx): Likewise.
10771
10772 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10773
10774         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10775         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10776         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10777
10778         [BZ #19079]
10779         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10780         file, conditioned on [!_LP64].
10781         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10782         [!_LP64] (__lround): Do not define as function or alias.
10783         [!_LP64] (lround): Likewise.
10784         [!_LP64] (__lroundl): Likewise.
10785         [!_LP64] (lroundl): Likewise.
10786         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10787         macro.
10788         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10789         Likewise.
10790
10791 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10792
10793         * math/libm-test.inc (lrint_test_data): Add more tests.
10794         (llrint_test_data): Likewise.
10795         (lround_test_data): Likewise.
10796         (llround_test_data): Likewise.
10797
10798         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10799         (llrint_test_data): Add tests used for lrint.
10800
10801         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10802         test.
10803         * sysdeps/i386/configure: Regenerated.
10804         * sysdeps/i386/i686/multiarch/Makefile
10805         [$(config-cflags-sse4) = yes]: Make code unconditional.
10806         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10807         Likewise.
10808         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10809         Likewise.
10810         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10811         test.
10812         * sysdeps/x86_64/configure: Regenerated.
10813         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10814         Make code unconditional.
10815         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10816         Likewise.
10817         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10818         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10819
10820         * scripts/rpm2dynsym.sh: Remove file.
10821
10822 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10823
10824         * configure.ac (libc_cv_cxx_thread_local): Define.
10825         * configure: Regenerate.
10826         * config.make.in (have-cxx-thread_local): Define.
10827         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10828         (LDLIBS-tst-thread_local1): Define.
10829         (tests): Add tst-thread_local1.
10830         [have-cxx-thread_local != yes] (tests-unsupported): Add
10831         tst-thread_local1.
10832         * nptl/tst-thread_local1.cc: New file.
10833
10834 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10835
10836         [BZ #19078]
10837         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10838         (u_thres): Likewise.
10839         (__expl): Determine whether to call __kernel_standard_l based on
10840         value of result, not argument.
10841
10842         * math/libm-test.inc (scalb_test_data): Add more expectations for
10843         the "inexact" exception.
10844
10845         [BZ #19077]
10846         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10847         0.0L for argument 1.0L.
10848
10849         [BZ #19076]
10850         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10851         constant 0.0L when computing infinite result.
10852
10853 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10854
10855         [BZ #10432]
10856         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10857         malloc_usable_size.
10858
10859 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10860
10861         [BZ #19018]
10862         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10863         Mangle function pointer before storing it.
10864         (__call_tls_dtors): Demangle function pointer before calling it.
10865
10866 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10867
10868         [BZ #19012]
10869         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10870         Clean up on failure.
10871
10872 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10873
10874         [BZ #19071]
10875         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10876         long int variable to store possibly incremented high part of
10877         mantissa.
10878         * math/libm-test.inc (lround_test_data): Add tests used for
10879         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10880         for tests requiring 64-bit long.  Do not condition tests on
10881         [TEST_FLOAT] unnecessarily.
10882         (llround_test_data): Add tests used for lround.  Add another
10883         expectation for the "inexact" exception.  Do not condition tests
10884         on [TEST_FLOAT] unnecessarily.
10885
10886         [BZ #887]
10887         [BZ #19049]
10888         [BZ #19050]
10889         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10890         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10891         <fix-int-fp-convert-zero.h>.
10892         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10893         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10894         <fix-int-fp-convert-zero.h>.
10895         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10896         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10897         <fix-int-fp-convert-zero.h>.
10898         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10899         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10900         <fix-int-fp-convert-zero.h>.
10901         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10902         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10903         <fix-int-fp-convert-zero.h>.
10904         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10905         * sysdeps/ieee754/flt-32/e_log2f.c: Include
10906         <fix-int-fp-convert-zero.h>.
10907         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10908         * sysdeps/ieee754/flt-32/s_erff.c: Include
10909         <fix-int-fp-convert-zero.h>.
10910         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10911         * sysdeps/ieee754/flt-32/s_logbf.c: Include
10912         <fix-int-fp-convert-zero.h>.
10913         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10914         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
10915         <fix-int-fp-convert-zero.h>.
10916         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10917         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
10918         <fix-int-fp-convert-zero.h>.
10919         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10920         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
10921         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
10922         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
10923         file.
10924         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
10925
10926 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10927
10928         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10929
10930 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
10931
10932         [BZ #19059]
10933         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
10934         overflowing computation.
10935         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10936         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10937         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10938         Likewise.
10939         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10940         Likewise.
10941         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10942         Likewise.
10943         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10944         Likewise.
10945         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10946         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10947         Likewise.
10948         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10949         Likewise.
10950         * math/libm-test.inc (nexttoward_test_data): Add more tests.
10951
10952         * nss/rewrite_field.c (__nss_rewrite_field): Use
10953         internal_function.
10954         * nss/valid_field.c (__nss_valid_field): Likewise.
10955         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10956
10957 2015-10-02  Florian Weimer  <fweimer@redhat.com>
10958
10959         [BZ #18724]
10960         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
10961         (__nss_invalid_field_characters, __nss_valid_field)
10962         (__nss_valid_list_field, __nss_rewrite_field): Declare.
10963         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
10964         tst-field.c: New file.
10965         * nss/Makefile (routines): Add valid_field, rewrite_field.
10966         (tests-static): Define unconditionally.
10967         (tests): Include tests-static.
10968         [build-static-nss] (tests-static): Use append.
10969         [build-static-nss] (tests): Remove modification.
10970         * nss/getent.c (print_group): Call putgrent.  Report error.
10971         (print_gshadow): Call putsgent.  Report error.
10972         (print_passwd): Call putpwent.  Report error.
10973         (print_shadow): Call putspent.  Report error.
10974         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
10975         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
10976         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
10977         name, password, directory, shell fields for valid syntax.  Rewrite
10978         GECOS field to match syntax.
10979         * pwd/Makefile (tests): Add tst-putpwent.
10980         * pwd/tst-putpwent.c: New file.
10981         * grp/putgrent.c (putgrent): Convert to ISO function definition.
10982         Check grName, grpasswd, gr_mem fields for valid syntax.
10983         Change loop variable i to size_t.
10984         * grp/Makefile (tests): Add tst-putgrent.
10985         * grp/tst-putgrent.c: New file.
10986         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
10987         valid syntax.
10988         * shadow/Makefile (tests): Add tst-putspent.
10989         * shadow/tst-putspent.c: New file.
10990         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
10991         sg_mem fields for valid syntax.
10992         * gshadow/Makefile (tests): Add tst-putsgent.
10993         * gshadow/tst-putsgent.c: New file.
10994
10995 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
10996
10997         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
10998         assembly instructions.
10999
11000 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11001
11002         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
11003         prefix from operands.
11004
11005 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
11006
11007         [BZ #16347]
11008         [BZ #19046]
11009         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
11010         <libc-internal.h>.
11011         (MAXLGM): Do not use diagnostic control macros.
11012         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
11013         threshold for ldbl-128ibm.
11014         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
11015         instead of multiplying by log then subtracting.
11016         * math/auto-libm-test-in: Add more tests of lgamma.
11017         * math/auto-libm-test-out: Regenerated.
11018
11019         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
11020         (TYPE_HEX_DIG): Likewise.
11021         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
11022         precisions when printing floating-point numbers.
11023         (check_float_internal): Likewise.
11024
11025 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11026
11027         [BZ #16620]
11028         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
11029         of log (10) rounded downward to 48 bits.
11030         (log10_low): Use corresponding low part of log (10).
11031
11032         [BZ #19032]
11033         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
11034         compute result as (x - x) / (x - x) not as 0 / 0.
11035         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
11036         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
11037
11038         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11039         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
11040         and expm1.
11041         * math/auto-libm-test-out: Regenerated.
11042         * math/libm-test.inc (acos_test_data): Add more tests.
11043         (asin_test_data): Likewise.
11044         (asinh_test_data): Likewise.
11045         (atan_test_data): Likewise.
11046         (atanh_test_data): Likewise.
11047         (atan2_test_data): Likewise.
11048         (cbrt_test_data): Likewise.
11049         (ceil_test_data): Likewise.
11050         (copysign_test_data): Likewise.
11051         (cos_test_data): Likewise.
11052         (cosh_test_data): Likewise.
11053         (erf_test_data): Likewise.
11054         (erfc_test_data): Likewise.
11055         (exp_test_data): Likewise.
11056         (exp10_test_data): Likewise.
11057         (exp2_test_data): Likewise.
11058         (expm1_test_data): Likewise.
11059         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11060
11061 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
11062
11063         [BZ #19006]
11064         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
11065         to ...
11066         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
11067         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
11068         to ...
11069         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
11070         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
11071         to ...
11072         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
11073         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
11074         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
11075         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
11076         to ...
11077         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
11078         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
11079         Moved to ...
11080         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
11081         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
11082         Moved to ...
11083         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
11084         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
11085         to ...
11086         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
11087         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
11088         Moved to ...
11089         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
11090         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
11091         to ...
11092         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
11093         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
11094         Removed.
11095         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
11096         Likewise.
11097         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
11098         Likewise.
11099         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
11100         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
11101         Likewise.
11102         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
11103         Likewise.
11104         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
11105         Likewise.
11106         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
11107         Likewise.
11108         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
11109         Likewise.
11110         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
11111         Likewise.
11112         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
11113         Likewise.
11114         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
11115         Likewise.
11116         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
11117         Likewise.
11118         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
11119         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
11120         Likewise.
11121         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
11122         Likewise.
11123         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
11124         Likewise.
11125         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
11126         Likewise.
11127         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
11128         Likewise.
11129         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
11130         Replace ../i486/pthread_cond_timedwait.S with
11131         ../pthread_cond_timedwait.S.
11132
11133 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11134
11135         * math/libm-test.inc (acos_test_data): Refine expectations for
11136         errno and "inexact" exceptions.
11137         (acosh_test_data): Likewise.
11138         (asin_test_data): Likewise.
11139         (asinh_test_data): Likewise.
11140         (atan_test_data): Likewise.
11141         (atanh_test_data): Likewise.
11142         (atan2_test_data): Likewise.
11143         (cbrt_test_data): Likewise.
11144         (ceil_test_data): Likewise.
11145         (copysign_test_data): Likewise.
11146         (cosh_test_data): Likewise.
11147         (erf_test_data): Likewise.
11148         (erfc_test_data): Likewise.
11149         (exp_test_data): Likewise.
11150         (exp10_test_data): Likewise.
11151         (exp2_test_data): Likewise.
11152         (expm1_test_data): Likewise.
11153         (fabs_test_data): Likewise.
11154         (floor_test_data): Likewise.
11155         (fma_test_data): Likewise.
11156         (fmax_test_data): Likewise.
11157         (fmin_test_data): Likewise.
11158         (fmod_test_data): Likewise.
11159         (fpclassify_test_data): Likewise.
11160         (frexp_test_data): Likewise.
11161         (hypot_test_data): Likewise.
11162         (ilogb_test_data): Likewise.
11163         (isgreater_test_data): Likewise.
11164         (isgreaterequal_test_data): Likewise.
11165         (isinf_test_data): Likewise.
11166         (isless_test_data): Likewise.
11167         (islessequal_test_data): Likewise.
11168         (islessgreater_test_data): Likewise.
11169         (isnan_test_data): Likewise.
11170         (isnormal_test_data): Likewise.
11171         (issignaling_test_data): Likewise.
11172         (isunordered_test_data): Likewise.
11173         (j0_test_data): Likewise.
11174         (j1_test_data): Likewise.
11175         (jn_test_data): Likewise.
11176         (lgamma_test_data): Likewise.
11177         (lrint_test_data): Likewise.
11178         (llrint_test_data): Likewise.
11179         (log_test_data): Likewise.
11180         (log10_test_data): Likewise.
11181         (log1p_test_data): Likewise.
11182         (log2_test_data): Likewise.
11183         (logb_test_data): Likewise.
11184         (lround_test_data): Likewise.
11185         (llround_test_data): Likewise.
11186         (modf_test_data): Likewise.
11187         (nearbyint_test_data): Likewise.
11188         (nextafter_test_data): Likewise.
11189         (nexttoward_test_data): Likewise.
11190         (pow_test_data): Likewise.
11191         (remainder_test_data): Likewise.
11192         (remquo_test_data): Likewise.
11193         (rint_test_data): Likewise.
11194         (round_test_data): Likewise.
11195         (signbit_test_data): Likewise.
11196         (sinh_test_data): Likewise.
11197         (sqrt_test_data): Likewise.
11198         (tanh_test_data): Likewise.
11199         (tgamma_test_data): Likewise.
11200         (trunc_test_data): Likewise.
11201         (y0_test_data): Likewise.
11202         (y1_test_data): Likewise.
11203         (yn_test_data): Likewise.
11204         (significand_test_data): Likewise.
11205
11206 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
11207
11208         * manual/filesys.texi (Storage Allocation): Document that
11209         posix_fallocate emulation fails when fd is open with O_WRONLY.
11210
11211 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
11212
11213         [BZ #19016]
11214         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
11215         allow more cases with X^2 + Y^2 >= 0.5.
11216         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
11217         normal element in sum instead of special-casing based on values of
11218         arguments.
11219         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
11220         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
11221         -1 as normal element in sum instead of special-casing based on
11222         values of arguments.
11223         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
11224         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
11225         (__x2y2m1): Update comment.
11226         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
11227         as normal element in sum instead of special-casing based on values
11228         of arguments.
11229         * math/s_clog.c (__clog): Handle more cases using log1p without
11230         hypot.
11231         * math/s_clog10.c (__clog10): Likewise.
11232         * math/s_clog10f.c (__clog10f): Likewise.
11233         * math/s_clog10l.c (__clog10l): Likewise.
11234         * math/s_clogf.c (__clogf): Likewise.
11235         * math/s_clogl.c (__clogl): Likewise.
11236         * math/auto-libm-test-in: Add more tests of clog and clog10.
11237         * math/auto-libm-test-out: Regenerated.
11238         * sysdeps/i386/fpu/libm-test-ulps: Update.
11239         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11240
11241 2015-09-28  Martin Sebor  <msebor@redhat.com>
11242
11243         [BZ #18969]
11244         * string/Makefile (LOCALES): Define.
11245         (gen-locales.mk): Include.
11246         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
11247         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
11248         * string/tst-strxfrm2.c (do_test): Print the name of the locale
11249         on setlocale failure.
11250
11251 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
11252
11253         [BZ #18985]
11254         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
11255         (__strftime_internal): Likewise.
11256         * time/tst-strftime.c (do_bz18985): New test.
11257         (do_test): Call it.
11258
11259 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
11260
11261         [BZ #18956]
11262         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
11263         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
11264         extracting high part.
11265         * math/auto-libm-test-in: Add another test of pow.
11266         * math/auto-libm-test-out: Regenerated.
11267         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11268
11269 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11270
11271         [BZ #18825]
11272         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
11273         New macro.
11274         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
11275         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11276         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
11277         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
11278         DBL_NARROW_EVAL, reloading the PIC register as needed.
11279         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
11280         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
11281         FLT_NARROW_EVAL.  Use separate return path for case when first
11282         argument is NaN.
11283         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
11284         DEFINE_LDBL_MIN.
11285         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
11286         PIC register.
11287         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
11288         math_check_force_underflow_nonneg.
11289         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
11290         underflow for subnormal result.
11291         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11292         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
11293         math_check_force_underflow_nonneg.
11294         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
11295         math_check_force_underflow.
11296         * sysdeps/x86_64/fpu/x86_64-math-asm.h
11297         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
11298         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
11299         DEFINE_LDBL_MIN.
11300         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
11301         * math/auto-libm-test-in: Add more tests of pow.
11302         * math/auto-libm-test-out: Regenerated.
11303
11304 2015-09-25  Florian Weimer  <fweimer@redhat.com>
11305
11306         * nss/bug17079.c (init_test_items): Add diagnostic for
11307         inconsistent entries.
11308         (test_buffer_size): Skip inconsistent entries.
11309
11310 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11311
11312         [BZ #13304]
11313         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
11314         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11315         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
11316
11317         [BZ #13304]
11318         * sysdeps/microblaze/s_fma.c: New file.
11319         * sysdeps/microblaze/s_fmaf.c: Likewise.
11320         * sysdeps/microblaze/sfp-machine.h: Likewise.
11321
11322 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
11323
11324         [BZ #17250]
11325         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
11326         member.
11327
11328 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11329
11330         [BZ #18803]
11331         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
11332         (MO): New macro.
11333         (__ieee754_hypot) [PIC]: Load PIC register.
11334         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
11335         DBL_NARROW_EVAL.
11336         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
11337         math_check_force_underflow_nonneg in case where result might be
11338         tiny.
11339         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11340         Likewise.
11341         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11342         Likewise.
11343         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11344         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11345         * math/auto-libm-test-in: Add more tests of hypot.
11346         * math/auto-libm-test-out: Regenerated.
11347
11348 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
11349
11350         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
11351
11352 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11353
11354         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
11355         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
11356         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11357         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11358         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
11359         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11360         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11361
11362         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
11363         LOAD_PIC_REG.
11364
11365         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
11366         (FLT_CHECK_FORCE_UFLOW): Likewise.
11367         (DBL_CHECK_FORCE_UFLOW): Likewise.
11368         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
11369         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
11370         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
11371         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11372         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11373         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11374         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11375         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11376         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
11377         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11378         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
11379         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
11380         (flt_min): Replace with use of DEFINE_FLT_MIN.
11381         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
11382         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
11383         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11384         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
11385         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
11386         (flt_min): Replace with use of DEFINE_FLT_MIN.
11387         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
11388         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
11389         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11390         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
11391         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
11392         (flt_min): Replace with use of DEFINE_FLT_MIN.
11393         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
11394         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
11395         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11396         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11397         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
11398         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11399         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11400         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
11401         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11402         (__atan): Use DBL_CHECK_FORCE_UFLOW.
11403         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
11404         (flt_min): Replace with use of DEFINE_FLT_MIN.
11405         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
11406         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
11407         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11408         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
11409         main computation.
11410         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
11411         (flt_min): Replace with use of DEFINE_FLT_MIN.
11412         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
11413         main computation.
11414         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
11415         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11416         (MO): New macro.
11417         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
11418         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
11419         (flt_min): Replace with use of DEFINE_FLT_MIN.
11420         (MO): New macro.
11421         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
11422         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
11423         (__log1pl): Use MO.
11424
11425         [BZ #19003]
11426         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
11427         $(config-cflags-nofma).
11428
11429 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11430
11431         * sysdeps/aarch64/libm-test-ulps: Regenerated.
11432
11433 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
11434
11435         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
11436         (TWO127): Likewise.
11437
11438         * sysdeps/generic/math_private.h (fabs_tg): New macro.
11439         (min_of_type): Likewise.
11440         (math_check_force_underflow): Likewise.
11441         (math_check_force_underflow_nonneg): Likewise.
11442         (math_check_force_underflow_complex): Likewise.
11443         * math/e_exp2l.c (__ieee754_exp2l): Use
11444         math_check_force_underflow_nonneg.
11445         * math/k_casinh.c (__kernel_casinh): Likewise.
11446         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11447         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11448         * math/s_catan.c (__catan): Use
11449         math_check_force_underflow_complex.
11450         * math/s_catanf.c (__catanf): Likewise.
11451         * math/s_catanh.c (__catanh): Likewise.
11452         * math/s_catanhf.c (__catanhf): Likewise.
11453         * math/s_catanhl.c (__catanhl): Likewise.
11454         * math/s_catanl.c (__catanl): Likewise.
11455         * math/s_ccosh.c (__ccosh): Likewise.
11456         * math/s_ccoshf.c (__ccoshf): Likewise.
11457         * math/s_ccoshl.c (__ccoshl): Likewise.
11458         * math/s_cexp.c (__cexp): Likewise.
11459         * math/s_cexpf.c (__cexpf): Likewise.
11460         * math/s_cexpl.c (__cexpl): Likewise.
11461         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11462         * math/s_clog10.c (__clog10): Likewise.
11463         * math/s_clog10f.c (__clog10f): Likewise.
11464         * math/s_clog10l.c (__clog10l): Likewise.
11465         * math/s_clogf.c (__clogf): Likewise.
11466         * math/s_clogl.c (__clogl): Likewise.
11467         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11468         * math/s_csinf.c (__csinf): Likewise.
11469         * math/s_csinh.c (__csinh): Likewise.
11470         * math/s_csinhf.c (__csinhf): Likewise.
11471         * math/s_csinhl.c (__csinhl): Likewise.
11472         * math/s_csinl.c (__csinl): Likewise.
11473         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11474         * math/s_csqrtf.c (__csqrtf): Likewise.
11475         * math/s_csqrtl.c (__csqrtl): Likewise.
11476         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11477         * math/s_ctanf.c (__ctanf): Likewise.
11478         * math/s_ctanh.c (__ctanh): Likewise.
11479         * math/s_ctanhf.c (__ctanhf): Likewise.
11480         * math/s_ctanhl.c (__ctanhl): Likewise.
11481         * math/s_ctanl.c (__ctanl): Likewise.
11482         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11483         instead of volatile.
11484         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11485         math_check_force_underflow.
11486         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11487         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11488         volatile when forcing underflow.
11489         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11490         math_check_force_underflow_nonneg.
11491         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11492         Likewise.
11493         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11494         math_check_force_underflow.
11495         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11496         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11497         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11498         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11499         math_check_force_underflow_nonneg.
11500         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11501         math_check_force_underflow.
11502         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11503         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11504         instead of volatile.
11505         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11506         math_check_force_underflow.
11507         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11508         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11509         math_check_force_underflow_nonneg.
11510         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11511         math_check_force_underflow.
11512         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11513         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11514         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11515         math_check_force_underflow_nonneg.
11516         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11517         Likewise.
11518         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11519         math_check_force_underflow.
11520         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11521         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11522         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11523         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11524         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11525         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11526         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11527         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11528         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11529         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11530         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11531         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11532         Likewise.
11533         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11534         math_check_force_underflow_nonneg.
11535         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11536         Likewise.
11537         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11538         math_check_force_underflow.
11539         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11540         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11541         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11542         Likewise.
11543         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11544         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11545         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11546         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11547         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11548         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11549         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11550         instead of volatile.
11551         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11552         math_check_force_underflow.
11553         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11554         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11555         math_check_force_underflow.
11556         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11557         Likewise.
11558         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11559         Use math_check_force_underflow_nonneg.
11560         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11561         math_check_force_underflow.
11562         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11563         Likewise.
11564         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11565         Likewise.
11566         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11567         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11568         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11569         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11570         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11571         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11572         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11573         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11574         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11575         math_check_force_underflow_nonneg.
11576         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11577         math_check_force_underflow.
11578         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11579         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11580         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11581         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11582         math_check_force_underflow_nonneg.
11583         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11584         math_check_force_underflow.
11585         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11586         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11587         instead of volatile.
11588         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11589         math_check_force_underflow.
11590
11591         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11592         * stdlib/strtod_l.c: Include <math_private.h>.
11593         (overflow_value): Use math_narrow_eval.
11594         (underflow_value): Likewise.
11595         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11596         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11597         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11598         (__ieee754_gamma_r): Likewise.
11599         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11600         Likewise.
11601         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11602         Likewise.
11603         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11604         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11605         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11606         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11607         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11608         (__ieee754_gammaf_r): Likewise.
11609         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11610         Likewise.
11611         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11612         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11613         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11614         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11615         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11616         volatile.
11617         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11618         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11619         math_narrow_eval.
11620         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11621         Likewise.
11622         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11623         Likewise.
11624         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11625         Likewise.
11626         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11627         volatile.
11628         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11629         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11630         math_narrow_eval.
11631         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11632         Likewise.
11633         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11634         Likewise.
11635
11636 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11637
11638         * nptl/Versions: Remove ignored symbols.
11639
11640 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11641
11642         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11643         * nss/Makefile (tests): Update.
11644
11645 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11646
11647         * nss/bug18287.c: New file.
11648         * nss/Makefile (tests): Add bug18287.
11649
11650 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11651
11652         * mach/Versions (__mach_host_self_): Add symbol.
11653
11654 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11655
11656         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11657         vm_page_size.
11658
11659 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11660
11661         Really fix sysdeps/i386/fpu/s_scalbn.S build
11662
11663         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11664         (libc: GLIBC_2_22): Remove unused version set.
11665
11666 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11667
11668         * config.make.in (enable-timezone-tools): New variable.
11669         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11670         (enable_timezone_tools): Export to generated files.
11671         * configure: Regenerate.
11672         * INSTALL: Regenerate.
11673         * manual/install.texi (--disable-timezone-tools): Document new flag.
11674         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11675         ifeq ($(enable-timezone-tools),yes) check.
11676
11677 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11678
11679         * timezone/Makefile: Revert previous change.
11680
11681         [BZ #18980]
11682         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11683         (DEFINE_DBL_MIN): Likewise.
11684         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11685         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11686         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11687         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11688         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11689         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11690         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11691         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11692         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11693         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11694         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11695         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11696         (flt_min): Replace with use of DEFINE_FLT_MIN.
11697         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11698         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11699         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11700         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11701         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11702         (flt_min): Replace with use of DEFINE_FLT_MIN.
11703         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11704         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11705         (flt_min): Replace with use of DEFINE_FLT_MIN.
11706         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11707         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11708         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11709         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11710         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11711         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11712         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11713         (__ieee754_pow): Use DBL_NARROW_EVAL.
11714         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11715         (__ieee754_powf): Use FLT_NARROW_EVAL.
11716         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11717         (__ieee754_expf_sse2): Convert double-precision result to single
11718         precision.
11719         * sysdeps/i386/fpu/libm-test-ulps: Update.
11720
11721 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11722
11723         * timezone/Makefile: Ignore unused variable errors due to private.h
11724         (time_t_min) and (time_t_max).
11725         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11726         Likewise.
11727
11728 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11729
11730         [BZ #18981]
11731         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11732         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11733         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11734         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11735         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11736         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11737         (__scalbn): Use DBL_NARROW_EVAL.
11738         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11739         (__scalbnf): Use FLT_NARROW_EVAL.
11740
11741 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11742
11743         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11744         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11745         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11746         * stdio-common/printf_fp.c (___printf_fp):
11747         Use signbit to get the sign. Use isinf macro to allow inlining.
11748         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11749         * stdio-common/printf_size.c (__printf_size): Likewise.
11750
11751 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11752
11753         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11754
11755 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11756
11757         [BZ #18980]
11758         * sysdeps/generic/math_private.h: Include <float.h>.
11759         (math_narrow_eval): New macro.
11760         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11761         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11762         math_narrow_eval on overflowing return value.
11763         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11764         Likewise.
11765         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11766         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11767         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11768         Likewise.
11769         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11770
11771 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11772
11773         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11774         * math/Makefile: Remove isinf_ns.c.
11775         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11776         * math/multc3.c (__multc3): Likewise.
11777         * math/s_casin.c (__casin): Likewise.
11778         * math/s_casinf.c (__casinf): Likewise.
11779         * math/s_casinl.c (__casinl): Likewise.
11780         * math/s_cproj.c (__cproj): Likewise.
11781         * math/s_cprojf.c (__cprojf): Likewise.
11782         * math/s_cprojl.c (__cprofl): Likewise.
11783         * math/s_ctan.c (__ctan): Likewise.
11784         * math/s_ctanf.c (__ctanf): Likewise.
11785         * math/s_ctanh.c (__ctanh): Likewise.
11786         * math/s_ctanhf.c (__ctanhf): Likewise.
11787         * math/s_ctanhl.c (__ctanhl): Likewise.
11788         * math/s_ctanl.c (__ctanl): Likewise.
11789         * math/w_fmod.c (__fmod): Likewise.
11790         * math/w_fmodf.c (__fmodf): Likewise.
11791         * math/w_fmodl.c (_fmodl): Likewise.
11792         * math/w_remainder.c (__remainder): Likewise.
11793         * math/w_remainderf.c (__remainderf): Likewise.
11794         * math/w_remainderl.c (__remainderl): Likewise.
11795         * math/w_scalb.c (__scalb): Likewise.
11796         * math/w_scalbf.c (__scalbf): Likewise.
11797         * math/w_scalbl.c (__scalbl): Likewise.
11798         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11799         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11800         with isinf.
11801         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11802         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11803         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11804         __isinf_nsf with isinf.
11805         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11806         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11807         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11808         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11809         with isinf.
11810         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11811         __isinf_nsl with isinf.
11812         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11813         with isinf.
11814         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11815         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11816         __isinf_nsl with isinf.
11817         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11818         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11819         with isinf.
11820
11821 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11822
11823         * resolv/base64.c (rcsid): Remove unused static.
11824         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11825         static.  (tqpi1): Likewise.
11826         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11827         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11828         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11829         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11830         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11831         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11832         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11833         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11834         Likewise.
11835
11836 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11837
11838         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11839         <nptl/pthreadP.h>.
11840         (_longjmp_unwind): Use __libc_ptf_call.
11841         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11842
11843 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11844
11845         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11846         * sysdeps/arm/__longjmp.S: Likewise.
11847
11848 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11849
11850         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11851         Use __builtin_signbit.
11852         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11853         Use __builtin_signbitf.
11854         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11855         Use __builtin_signbitl.
11856         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11857         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11858
11859 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11860
11861         [BZ #15367]
11862         [BZ #17441]
11863
11864         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11865         * math/math.h (fpclassify): Use __builtin_fpclassify when
11866         available.  (signbit): Use __builtin_signbit(f/l).
11867         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11868         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11869         (isinf): Use __builtin_isinf_sign.
11870
11871 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11872
11873         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11874         * benchtests/bench-math-inlines.c: New benchmark.
11875         * benchtests/bench-util.h: New file.
11876         * benchtests/bench-util.c: New file.
11877         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11878
11879 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11880
11881         * elf/tst-dlmopen1.c: Define TEST_SO.
11882         (do_test): Use TEST_SO.
11883
11884         * elf/dl-load.c: Include libc-internal.h.
11885         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11886
11887 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11888
11889         [BZ #17887]
11890         * time/strptime_l.c (__strptime_internal): Make %z accept
11891         [+-]HH:MM time zones.
11892
11893 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11894
11895         [BZ #17886]
11896         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11897         valid time zone.
11898
11899 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11900
11901         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11902         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11903         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11904         (__ASSUME_FDATASYNC): Delete.
11905
11906 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11907
11908         * conform/linknamespace.pl: Require weak undefined symbols to be
11909         in the standard namespace.
11910         (%strong_syms): Rename to %seen_syms.
11911         (%strong_seen): Rename to %seen_where.
11912
11913 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11914
11915         [BZ #18970]
11916         * misc/error.c (error): Replace pthread_setcancelstate with
11917         __pthread_setcancelstate.
11918         (error_at_line): Likewise.
11919         * posix/wordexp.c (parse_comm): Likewise.
11920         * stdlib/fmtmsg.c (fmtmsg): Likewise.
11921         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
11922         (__pthread_setcancelstate): This.
11923         (pthread_setcancelstate): Add an alias.
11924         * nptl/nptl-init.c (pthread_functions): Replace
11925         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
11926         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
11927         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
11928         hidden_proto.
11929         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
11930         it with hidden_def.
11931         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
11932         (pthread_setcancelstate): Renamed to ...
11933         (__pthread_setcancelstate): This.
11934         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
11935         __libc_ptf_call with __pthread_setcancelstate.
11936
11937 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11938             Andreas Schwab  <schwab@suse.de>
11939
11940         [BZ #17118]
11941         * math/s_ctan.c (__ctan): Determine sign of zero real part of
11942         result when imaginary part of argument is infinite using sine and
11943         cosine.
11944         * math/s_ctanf.c (__ctanf): Likewise.
11945         * math/s_ctanl.c (__ctanl): Likewise.
11946         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
11947         of result when real part of argument is infinite using sine and
11948         cosine.
11949         * math/s_ctanhf.c (__ctanhf): Likewise.
11950         * math/s_ctanhl.c (__ctanhl): Likewise.
11951         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
11952         (ctanh_test_data): Add more tests of ctanh.
11953
11954 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11955
11956         [BZ #15384]
11957         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
11958         bit-mask as in subtraction.
11959         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
11960         Likewise.
11961         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11962         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11963         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
11964
11965         [BZ #18951]
11966         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
11967         underflow exception for small results.
11968         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11969         Likewise.
11970         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11971         Likewise.
11972         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11973         Likewise.
11974         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11975         Likewise.
11976         * math/auto-libm-test-in: Add more tests of tgamma.
11977         * math/auto-libm-test-out: Regenerated.
11978
11979 2015-09-17  Andreas Schwab  <schwab@suse.de>
11980
11981         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
11982
11983 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
11984
11985         [BZ #18977]
11986         * math/bits/mathcalls.h
11987         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
11988         not declare.
11989         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
11990         Likewise.
11991         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
11992         Likewise.
11993         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
11994         Likewise.
11995         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
11996         Likewise.
11997         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
11998         Likewise.
11999         * conform/data/math.h-data
12000         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
12001         function.
12002         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
12003         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
12004         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
12005         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
12006         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
12007         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
12008         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
12009         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
12010         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
12011         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
12012         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
12013
12014         [BZ #6803]
12015         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
12016         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
12017         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
12018         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
12019         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
12020         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
12021         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
12022         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
12023         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12024         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
12025         Likewise.
12026         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12027         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
12028         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
12029         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
12030         long_double_symbol calls.
12031         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
12032         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
12033         strong alias of __ldexpl.
12034         (scalbnl): Define using long_double_symbol.
12035         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
12036         Remove alias.
12037         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
12038         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
12039         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
12040         (scalbln_test_data): Add more errno expectations.
12041
12042 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
12043
12044         Cache the host port like we cache the task port.  This way we do not
12045         need to call the kernel just to get the port.  Furthermore, we no
12046         longer increase the reference count on every invocation of
12047         `mach_host_self'.
12048
12049         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
12050         Protect declarations against the macro expansion.
12051         * mach/mach_init.c (__mach_host_self_): New variable.
12052         (mach_init): Initialize `__mach_host_self_'.
12053         * mach/mach_init.h (__mach_host_self_): New declaration.
12054         (__mach_host_self, mach_host_self): New macros.
12055         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
12056         Release reference.
12057
12058 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12059
12060         [BZ #4404]
12061         * po/de.po: Update from Translation Project.
12062
12063         [BZ #16415]
12064         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
12065         (__expm1l): Remove code to handle positive infinity and overflow.
12066         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
12067         variable.
12068         (__expm1l): Remove code to handle positive infinity and overflow.
12069
12070 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12071             Paul Pluzhnikov  <ppluzhnikov@google.com>
12072
12073         [BZ #18872]
12074         * stdio-common/Makefile (tst-printf-bz18872): New test.
12075         (tst-printf-bz18872-mem.out): Likewise.
12076         * stdio-common/tst-printf-bz18872.sh: Generate new test.
12077         * stdio-common/vfprintf.c: Fix memory leaks.
12078
12079 2015-09-16  Andreas Schwab  <schwab@suse.de>
12080
12081         [BZ #17244]
12082         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
12083         Remove extra va_start/va_end calls.
12084
12085         [BZ #17243]
12086         * posix/execl.c (execl): Add missing va_end.
12087         * posix/execle.c (execle): Likewise.
12088         * posix/execlp.c (execlp): Likewise.
12089
12090 2015-09-15  Roland McGrath  <roland@hack.frob.com>
12091
12092         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
12093         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
12094
12095 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
12096
12097         [BZ #18967]
12098         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
12099         undefine around includes of <bits/mathcalls.h>.
12100         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
12101         not declare function.
12102         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
12103         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
12104         (scalb): Likewise.
12105         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
12106         not define macro.
12107         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
12108         variable.
12109         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
12110         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
12111         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
12112
12113         [BZ #18857]
12114         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
12115         return non-finite argument without doing ordered comparisons on
12116         it.
12117
12118         [BZ #16296]
12119         * math/fenv.h (fegetround): Use __attribute_pure__.
12120         * include/fenv.h (__fegetround): Likewise.
12121
12122         [BZ #18595]
12123         * math/s_ctan.c (__ctan): Force underflow exception for results
12124         whose real or imaginary part has small absolute value.
12125         * math/s_ctanf.c (__ctanf): Likewise.
12126         * math/s_ctanh.c (__ctanh): Likewise.
12127         * math/s_ctanhf.c (__ctanhf): Likewise.
12128         * math/s_ctanhl.c (__ctanhl): Likewise.
12129         * math/s_ctanl.c (__ctanl): Likewise.
12130         * math/auto-libm-test-in: Do not allow missing underflow for ctan
12131         and ctanh.  Add more tests of ctan and ctanh.
12132
12133         [BZ #15918]
12134         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
12135         handling of cases where one argument is an infinity.
12136
12137         [BZ #18875]
12138         [BZ #18966]
12139         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
12140         (MO): New macro.
12141         (__ieee754_exp10): For small results, force underflow exception
12142         and remove excess range and precision from return value.
12143         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
12144         (MO): New macro.
12145         (__ieee754_exp10f): For small results, force underflow exception
12146         and remove excess range and precision from return value.
12147         * math/auto-libm-test-in: Add more tests of exp10.
12148         * math/auto-libm-test-out: Regenerated.
12149
12150 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
12151
12152         [BZ #18875]
12153         [BZ #18961]
12154         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
12155         (MO): New macro.
12156         (__ieee754_exp): For small results, force underflow exception and
12157         remove excess range and precision from return value.
12158         (__exp_finite): Likewise.
12159         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
12160         (MO): New macro.
12161         (__ieee754_expf): For small results, force underflow exception and
12162         remove excess range and precision from return value.
12163         (__expf_finite): Likewise.
12164         * math/auto-libm-test-in: Add more tests of exp.
12165         * math/auto-libm-test-out: Regenerated.
12166
12167         [BZ #16521]
12168         [BZ #18875]
12169         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
12170         small results.
12171         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
12172         (MO): New macro.
12173         (__ieee754_exp2): For small results, force underflow exception and
12174         remove excess range and precision from return value.
12175         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
12176         (MO): New macro.
12177         (__ieee754_exp2f): For small results, force underflow exception
12178         and remove excess range and precision from return value.
12179         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
12180         (MO): New macro.
12181         (__ieee754_exp2l): Force underflow exception for small results.
12182         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
12183         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
12184         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
12185         (MO): New macro.
12186         (__ieee754_exp2l): Force underflow exception for small results.
12187         * math/auto-libm-test-in: Add more tests or exp2.
12188         * math/auto-libm-test-out: Regenerated.
12189
12190 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
12191
12192         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
12193
12194         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
12195         /dev/null.
12196
12197 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12198
12199         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12200         io fs process)): Drop spurious backslash.
12201
12202 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
12203
12204         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
12205         Use sysinfo system call instead of parsing /proc/meminfo.
12206         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
12207         Likewise.
12208
12209 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
12210
12211         [BZ #16985]
12212         * programs/localedef.c (main): Display argv[remaining] when
12213         output_path is NULL.
12214
12215 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12216
12217         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
12218         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
12219         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
12220         tanh.
12221         * math/auto-libm-test-out: Regenerated.
12222         * sysdeps/i386/fpu/libm-test-ulps: Update.
12223         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
12224         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12225         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12226
12227 2015-09-11  Roland McGrath  <roland@hack.frob.com>
12228
12229         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
12230         Use 'override' keyword to freeze the value here, preventing
12231         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
12232
12233 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12234
12235         [BZ #14912]
12236         * sysdeps/aarch64/bits/atomic.h: Move to ...
12237         * sysdeps/aarch64/atomic-machine.h: ...here.
12238         (_AARCH64_BITS_ATOMIC_H): Rename macro to
12239         _AARCH64_ATOMIC_MACHINE_H.
12240         * sysdeps/alpha/bits/atomic.h: Move to ...
12241         * sysdeps/alpha/atomic-machine.h: ...here.
12242         * sysdeps/arm/bits/atomic.h: Move to ...
12243         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
12244         * bits/atomic.h: Move to ...
12245         * sysdeps/generic/atomic-machine.h: ...here.
12246         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12247         * sysdeps/i386/bits/atomic.h: Move to ...
12248         * sysdeps/i386/atomic-machine.h: ...here.
12249         * sysdeps/ia64/bits/atomic.h: Move to ...
12250         * sysdeps/ia64/atomic-machine.h: ...here.
12251         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
12252         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
12253         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12254         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
12255         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
12256         * sysdeps/microblaze/bits/atomic.h: Move to ...
12257         * sysdeps/microblaze/atomic-machine.h: ...here.
12258         * sysdeps/mips/bits/atomic.h: Move to ...
12259         * sysdeps/mips/atomic-machine.h: ...here.
12260         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
12261         * sysdeps/powerpc/bits/atomic.h: Move to ...
12262         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
12263         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
12264         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
12265         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
12266         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
12267         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
12268         <atomic-machine.h> instead of <bits/atomic.h>.
12269         * sysdeps/s390/bits/atomic.h: Move to ...
12270         * sysdeps/s390/atomic-machine.h: ...here.
12271         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
12272         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
12273         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12274         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
12275         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
12276         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
12277         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
12278         * sysdeps/tile/bits/atomic.h: Move to ...
12279         * sysdeps/tile/atomic-machine.h: ...here.
12280         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
12281         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
12282         <sysdeps/tile/atomic-machine.h> instead of
12283         <sysdeps/tile/bits/atomic.h>.
12284         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12285         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
12286         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
12287         <sysdeps/tile/atomic-machine.h> instead of
12288         <sysdeps/tile/bits/atomic.h>.
12289         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12290         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
12291         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
12292         <sysdeps/arm/atomic-machine.h> instead of
12293         <sysdeps/arm/bits/atomic.h>.
12294         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
12295         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
12296         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12297         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
12298         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
12299         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12300         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
12301         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
12302         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
12303         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
12304         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
12305         * sysdeps/x86_64/bits/atomic.h: Move to ...
12306         * sysdeps/x86_64/atomic-machine.h: ...here.
12307         * include/atomic.h: Include <atomic-machine.h> instead of
12308         <bits/atomic.h>.
12309
12310         * sysdeps/mips/mips32/libm-test-ulps: Update.
12311         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12312
12313         [BZ #18952]
12314         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
12315         not convert non-integer negative arguments to int to determine the
12316         value of signgam.
12317         * math/auto-libm-test-in: Add more tests of lgamma.
12318         * math/auto-libm-test-out: Regenerated.
12319
12320         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
12321         cosh, csqrt, erfc, expm1 and lgamma.
12322         * math/auto-libm-test-out: Regenerated.
12323         * sysdeps/i386/fpu/libm-test-ulps: Update.
12324         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12325
12326 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
12327
12328         [BZ #2542]
12329         [BZ #2543]
12330         [BZ #2558]
12331         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
12332         __lgamma_neg for arguments from -28.0 to -2.0.
12333         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
12334         __lgamma_negf for arguments from -15.0 to -2.0.
12335         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12336         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
12337         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
12338         Call __lgamma_negl for arguments from -33.0 to -2.0.
12339         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
12340         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12341         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12342         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
12343         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12344         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12345         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12346         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
12347         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12348         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12349         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
12350         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
12351         (__lgamma_neg): Likewise.
12352         (__lgamma_negl): Likewise.
12353         (__lgamma_product): Likewise.
12354         (__lgamma_productl): Likewise.
12355         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
12356         * math/auto-libm-test-in: Add more tests of lgamma.
12357         * math/auto-libm-test-out: Regenerated.
12358         * sysdeps/i386/fpu/libm-test-ulps: Update.
12359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12360
12361 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
12362
12363         [BZ #18675]
12364         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
12365
12366 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12367
12368         [BZ #14912]
12369         * bits/libc-lock.h: Move to ...
12370         * sysdeps/generic/libc-lock.h: ...here.
12371         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12372         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
12373         * sysdeps/mach/hurd/libc-lock.h: ...here.
12374         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12375         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
12376         * sysdeps/mach/bits/libc-lock.h: Move to ...
12377         * sysdeps/mach/libc-lock.h: ...here.
12378         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12379         * sysdeps/nptl/bits/libc-lock.h: Move to ...
12380         * sysdeps/nptl/libc-lock.h: ...here.
12381         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12382         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
12383         * sysdeps/nptl/libc-lockP.h: ...here.
12384         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
12385         * crypt/crypt_util.c: Include <libc-lock.h> instead of
12386         <bits/libc-lock.h>.
12387         * dirent/scandir-tail.c: Likewise.
12388         * dlfcn/dlerror.c: Likewise.
12389         * elf/dl-close.c: Likewise.
12390         * elf/dl-iteratephdr.c: Likewise.
12391         * elf/dl-lookup.c: Likewise.
12392         * elf/dl-open.c: Likewise.
12393         * elf/dl-support.c: Likewise.
12394         * elf/dl-writev.h: Likewise.
12395         * elf/rtld.c: Likewise.
12396         * grp/fgetgrent.c: Likewise.
12397         * gshadow/fgetsgent.c: Likewise.
12398         * gshadow/sgetsgent.c: Likewise.
12399         * iconv/gconv_conf.c: Likewise.
12400         * iconv/gconv_db.c: Likewise.
12401         * iconv/gconv_dl.c: Likewise.
12402         * iconv/gconv_int.h: Likewise.
12403         * iconv/gconv_trans.c: Likewise.
12404         * include/link.h: Likewise.
12405         * inet/getnameinfo.c: Likewise.
12406         * inet/getnetgrent.c: Likewise.
12407         * inet/getnetgrent_r.c: Likewise.
12408         * intl/bindtextdom.c: Likewise.
12409         * intl/dcigettext.c: Likewise.
12410         * intl/finddomain.c: Likewise.
12411         * intl/gettextP.h: Likewise.
12412         * intl/loadmsgcat.c: Likewise.
12413         * intl/localealias.c: Likewise.
12414         * intl/textdomain.c: Likewise.
12415         * libidn/idn-stub.c: Likewise.
12416         * libio/libioP.h: Likewise.
12417         * locale/duplocale.c: Likewise.
12418         * locale/freelocale.c: Likewise.
12419         * locale/newlocale.c: Likewise.
12420         * locale/setlocale.c: Likewise.
12421         * login/getutent_r.c: Likewise.
12422         * login/getutid_r.c: Likewise.
12423         * login/getutline_r.c: Likewise.
12424         * login/utmp-private.h: Likewise.
12425         * login/utmpname.c: Likewise.
12426         * malloc/mtrace.c: Likewise.
12427         * misc/efgcvt.c: Likewise.
12428         * misc/error.c: Likewise.
12429         * misc/fstab.c: Likewise.
12430         * misc/getpass.c: Likewise.
12431         * misc/mntent.c: Likewise.
12432         * misc/syslog.c: Likewise.
12433         * nis/nis_call.c: Likewise.
12434         * nis/nis_callback.c: Likewise.
12435         * nis/nss-default.c: Likewise.
12436         * nis/nss_compat/compat-grp.c: Likewise.
12437         * nis/nss_compat/compat-initgroups.c: Likewise.
12438         * nis/nss_compat/compat-pwd.c: Likewise.
12439         * nis/nss_compat/compat-spwd.c: Likewise.
12440         * nis/nss_nis/nis-alias.c: Likewise.
12441         * nis/nss_nis/nis-ethers.c: Likewise.
12442         * nis/nss_nis/nis-grp.c: Likewise.
12443         * nis/nss_nis/nis-hosts.c: Likewise.
12444         * nis/nss_nis/nis-network.c: Likewise.
12445         * nis/nss_nis/nis-proto.c: Likewise.
12446         * nis/nss_nis/nis-pwd.c: Likewise.
12447         * nis/nss_nis/nis-rpc.c: Likewise.
12448         * nis/nss_nis/nis-service.c: Likewise.
12449         * nis/nss_nis/nis-spwd.c: Likewise.
12450         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12451         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12452         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12453         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12454         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12455         * nis/nss_nisplus/nisplus-network.c: Likewise.
12456         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12457         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12458         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12459         * nis/nss_nisplus/nisplus-service.c: Likewise.
12460         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12461         * nis/ypclnt.c: Likewise.
12462         * nptl/libc_pthread_init.c: Likewise.
12463         * nss/getXXbyYY.c: Likewise.
12464         * nss/getXXent.c: Likewise.
12465         * nss/getXXent_r.c: Likewise.
12466         * nss/nss_db/db-XXX.c: Likewise.
12467         * nss/nss_db/db-netgrp.c: Likewise.
12468         * nss/nss_db/nss_db.h: Likewise.
12469         * nss/nss_files/files-XXX.c: Likewise.
12470         * nss/nss_files/files-alias.c: Likewise.
12471         * nss/nsswitch.c: Likewise.
12472         * posix/regex_internal.h: Likewise.
12473         * posix/wordexp.c: Likewise.
12474         * pwd/fgetpwent.c: Likewise.
12475         * resolv/res_hconf.c: Likewise.
12476         * resolv/res_libc.c: Likewise.
12477         * shadow/fgetspent.c: Likewise.
12478         * shadow/lckpwdf.c: Likewise.
12479         * shadow/sgetspent.c: Likewise.
12480         * socket/opensock.c: Likewise.
12481         * stdio-common/reg-modifier.c: Likewise.
12482         * stdio-common/reg-printf.c: Likewise.
12483         * stdio-common/reg-type.c: Likewise.
12484         * stdio-common/vfprintf.c: Likewise.
12485         * stdio-common/vfscanf.c: Likewise.
12486         * stdlib/abort.c: Likewise.
12487         * stdlib/cxa_atexit.c: Likewise.
12488         * stdlib/fmtmsg.c: Likewise.
12489         * stdlib/random.c: Likewise.
12490         * stdlib/setenv.c: Likewise.
12491         * string/strsignal.c: Likewise.
12492         * sunrpc/auth_none.c: Likewise.
12493         * sunrpc/bindrsvprt.c: Likewise.
12494         * sunrpc/create_xid.c: Likewise.
12495         * sunrpc/key_call.c: Likewise.
12496         * sunrpc/rpc_thread.c: Likewise.
12497         * sysdeps/arm/backtrace.c: Likewise.
12498         * sysdeps/generic/ldsodefs.h: Likewise.
12499         * sysdeps/generic/stdio-lock.h: Likewise.
12500         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12501         * sysdeps/i386/backtrace.c: Likewise.
12502         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12503         * sysdeps/m68k/backtrace.c: Likewise.
12504         * sysdeps/mach/hurd/cthreads.c: Likewise.
12505         * sysdeps/mach/hurd/dirstream.h: Likewise.
12506         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12507         * sysdeps/nptl/malloc-machine.h: Likewise.
12508         * sysdeps/nptl/stdio-lock.h: Likewise.
12509         * sysdeps/posix/dirstream.h: Likewise.
12510         * sysdeps/posix/getaddrinfo.c: Likewise.
12511         * sysdeps/posix/system.c: Likewise.
12512         * sysdeps/pthread/aio_suspend.c: Likewise.
12513         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12514         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12515         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12516         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12517         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12518         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12519         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12520         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12521         * sysdeps/unix/sysv/linux/system.c: Likewise.
12522         * sysdeps/x86_64/backtrace.c: Likewise.
12523         * time/alt_digit.c: Likewise.
12524         * time/era.c: Likewise.
12525         * time/tzset.c: Likewise.
12526         * wcsmbs/wcsmbsload.c: Likewise.
12527         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12528         instead of <bits/libc-lock.h> in comment.
12529
12530 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12531
12532         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12533         Only use .set mips2 if the current ISA is below mips2.
12534         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12535         Likewise.
12536         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12537         mips32r2 if the current ISA is below mips32r2.
12538         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12539         (TLS_IE): Updated to use the TLD_RDHWR macro.
12540         (TLS_LE): Likewise.
12541         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12542         __ASSEMBLER__ condition.
12543
12544 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12545
12546         Fix parallel build of before-compile targets.
12547
12548         * sysdeps/mach/Makefile ($(patsubst
12549         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12550         mach-before-compile target.
12551         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12552         io fs process)): Move rule to dedicated hurd-before-compile target.
12553
12554 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12555
12556         Fix rules generating headers in hurd/ and mach/ when initial make call
12557         has subdir= explicitly set.
12558
12559         * sysdeps/mach/Makefile ($(patsubst
12560         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12561         calling $(MAKE).
12562         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12563         io fs process)): Force subdir to hurd when calling $(MAKE).
12564         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12565         subdir to mach when calling $(MAKE).
12566
12567 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12568
12569         Check sysheaders when looking for Mach and Hurd headers
12570
12571         * sysdeps/mach/configure.ac: Add sysheaders check.
12572         * sysdeps/mach/configure: Regenerate.
12573         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12574         * sysdeps/mach/hurd/configure: Regenerate.
12575
12576 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12577
12578         [BZ #18921]
12579         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12580         Fix inverted sense of test of 'o_directory_works' value.
12581         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12582         Bernhard Voelker <mail@bernhard-voelker.de>.
12583
12584 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12585
12586         [BZ #14912]
12587         * bits/linkmap.h: Move to ...
12588         * sysdeps/generic/linkmap.h: ...here.
12589         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12590         * sysdeps/aarch64/linkmap.h: ...here.
12591         * sysdeps/arm/bits/linkmap.h: Move to ...
12592         * sysdeps/arm/linkmap.h: ...here.
12593         * sysdeps/hppa/bits/linkmap.h: Move to ...
12594         * sysdeps/hppa/linkmap.h: ...here.
12595         * sysdeps/ia64/bits/linkmap.h: Move to ...
12596         * sysdeps/ia64/linkmap.h: ...here.
12597         * sysdeps/mips/bits/linkmap.h: Move to ...
12598         * sysdeps/mips/linkmap.h: ...here.
12599         * sysdeps/s390/bits/linkmap.h: Move to ...
12600         * sysdeps/s390/linkmap.h: ...here.
12601         * sysdeps/sh/bits/linkmap.h: Move to ...
12602         * sysdeps/sh/linkmap.h: ...here.
12603         * sysdeps/x86/bits/linkmap.h: Move to ...
12604         * sysdeps/x86/linkmap.h: ...here.
12605         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12606
12607 2015-09-04  Andreas Schwab  <schwab@suse.de>
12608
12609         [BZ #18635]
12610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12611         (__makecontext): Terminate FDE before return label.
12612         (__novec_makecontext): Likewise.
12613
12614 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12615
12616         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12617         first member of struct sv in syscall macro.
12618
12619 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12620
12621         [BZ #14912]
12622         * bits/stdio-lock.h: Move to ...
12623         * sysdeps/generic/stdio-lock.h: ...here.
12624         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12625         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12626         * sysdeps/nptl/stdio-lock.h: ...here.
12627         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12628         * include/libio.h: Include <stdio-lock.h> instead of
12629         <bits/stdio-lock.h>.
12630         * sysdeps/nptl/fork.c: Likewise.
12631         * sysdeps/pthread/flockfile.c: Likewise.
12632         * sysdeps/pthread/ftrylockfile.c: Likewise.
12633         * sysdeps/pthread/funlockfile.c: Likewise.
12634
12635         [BZ #14912]
12636         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12637         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12638         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12639         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12640         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12641         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12642         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12643
12644 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12645
12646         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12647         (test-xfail-tst-protected1b): New variable.
12648
12649 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12650
12651         [BZ #14912]
12652         * bits/libc-tsd.h: Move to ...
12653         * sysdeps/generic/libc-tsd.h: ...here.
12654         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12655         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12656         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12657         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12658         * include/ctype.h: Include <libc-tsd.h> instead of
12659         <bits/libc-tsd.h>.
12660         * include/rpc/rpc.h: Likewise.
12661         * locale/localeinfo.h: Likewise.
12662         * sunrpc/rpc_thread.c: Likewise.
12663         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12664         * sysdeps/nptl/malloc-machine.h: Likewise.
12665
12666         * Makefile (headers): Remove bits/libc-lock.h.
12667         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12668
12669         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12670         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12671         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12672         <bits/stdio-lock.h>.
12673         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12674         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12675
12676 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12677
12678         [BZ #18757]
12679         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12680         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12681         BZ #18757.
12682
12683 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12684
12685         * malloc/mtrace.pl: Filter out NULL entries.
12686
12687 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12688
12689         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12690         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12691         macro.
12692
12693         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12694         (TCP_CC_INFO): Likewise.
12695         (TCP_SAVE_SYN): Likewise.
12696         (TCP_SAVED_SYN): Likewise.
12697
12698 2015-08-31  Brett Neumeier <brett@neumeier.us>
12699
12700         [BZ #18870]
12701         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12702
12703 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12704
12705         [BZ #18873]
12706         Fix broken overflow check in posix_fallocate
12707         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12708         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12709         Fix parenthesization typo.
12710
12711 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12712
12713         [BZ #18887]
12714         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12715         tst-mntent-blank-passno.
12716         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12717         * misc/tst-mntent-blank-corrupt.c: New test.
12718         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12719         * misc/tst-mntent.c (do_test): ... here.
12720
12721 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12722
12723         [BZ #4404]
12724         * po/de.po: Fix SIGALRM typo.
12725
12726 2015-08-28  James Perkins  <james@loowit.net>
12727
12728         * time/tst-strptime2.c (tests): Replace short list of test
12729         strings for strptime %z specifier with code which exhaustively
12730         tests every combination of sign and 0 to 5 digits. Tests for
12731         rejection of invalid strings.
12732
12733 2015-08-28  James Perkins  <james@loowit.net>
12734
12735         [BZ #16141]
12736         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12737         calculation, removing incorrect decimal time rounding, so that
12738         all minute values result in a valid seconds value.
12739         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12740         offset range limits to UTC-99:59 through UTC+99:59 to parse
12741         current and historical use cases.
12742         * time/tst-strptime2.c (tests): Modify and add tests for the
12743         strptime %z input field descriptor, specifically conversion of
12744         minutes to seconds and validating an offset range of -9959 to
12745         +9959.
12746
12747 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12748             Dmitry V. Levin  <ldv@altlinux.org>
12749
12750         [BZ #18877]
12751         * posix/Makefile (tests): Add tst-mmap-offset.
12752         * posix/tst-mmap.c: New file.
12753         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12754         offset calculation for negative values.
12755
12756 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12757
12758         * sysdeps/i386/init-arch.h: New file.
12759         * sysdeps/i386/i586/init-arch.h: Likewise.
12760         * sysdeps/i386/i686/init-arch.h: Likewise.
12761         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12762         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12763         * sysdeps/x86/cpu-features.h (bit_I586): New.
12764         (bit_I686): Likewise.
12765         (bit_CX8): Likewise.
12766         (bit_CMOV): Likewise.
12767         (index_CX8): Likewise.
12768         (index_CMOV): Likewise.
12769         (index_I586): Likewise.
12770         (index_I686): Likewise.
12771         (reg_CX8): Likewise.
12772         (reg_CMOV): Likewise.
12773         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12774         available at compile-time.
12775         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12776         available at compile-time.
12777         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12778         (USE_I686): Likewise.
12779
12780 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12781
12782         * sysdeps/i386/bcopy.S: New file.
12783         * sysdeps/i386/bzero.S: Likewise.
12784         * sysdeps/i386/memcpy.S: Likewise.
12785         * sysdeps/i386/memmove.S: Likewise.
12786         * sysdeps/i386/mempcpy.S: Likewise.
12787         * sysdeps/i386/memset.S: Likewise.
12788         * sysdeps/i386/bzero.c: Removed.
12789         * sysdeps/i386/memset.c: Likewise.
12790         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12791         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12792         * sysdeps/i386/i586/memset_chk.S: Likewise.
12793         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12794         * sysdeps/i386/memcpy_chk.S: Here.
12795         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12796         * sysdeps/i386/memmove_chk.S: Here.
12797         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12798         * sysdeps/i386/mempcpy_chk.S: Likewise.
12799         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12800         * sysdeps/i386/memset_chk.S: Likewise.
12801
12802 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12803
12804         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12805         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12806         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12807         * soft-fp/fmadf4.c: Ditto.
12808         * soft-fp/fmatf4.c: Ditto.
12809
12810 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12811
12812         * sysdeps/i386/i586/Implies: Removed.
12813         * sysdeps/i386/i686/Implies: Likewise.
12814
12815 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12816
12817         * sysdeps/i386/i486/strlen.S: Moved to ...
12818         * sysdeps/i386/strlen.S: Here.
12819
12820 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12821
12822         * sysdeps/i386/i486/strcat.S: Moved to ...
12823         * sysdeps/i386/strcat.S: Here.
12824
12825 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12826
12827         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12828         * sysdeps/i386/pthread_spin_trylock.S: Here.
12829         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12830         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12831
12832 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12833
12834         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12835         * sysdeps/i386/string-inlines.c: Here.
12836
12837 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12838
12839         * sysdeps/i386/i486/htonl.S: Moved ...
12840         * sysdeps/i386/htonl.S: here.
12841
12842 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12843
12844         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12845         * sysdeps/i386/bits/atomic.h: Here.
12846
12847 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12848
12849         * sysdeps/i386/i486/Versions: Removed.
12850
12851 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12852
12853         [BZ #2898]
12854         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12855         Based on patch by Aurelien Jarno.
12856
12857 2015-08-26  Stan Shebs  <stanshebs@google.com>
12858
12859         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12860         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12861
12862 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12863
12864         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12865         * sysdeps/powerpc/dl-procinfo.c:
12866         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12867         feature so it shows when LD_SHOW_AUXV=1.
12868
12869 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12870
12871         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12872         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12873         definition.  ISA 2.07B no longer requires full sync.
12874
12875 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12876
12877         [BZ #18863]
12878         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12879         (si_call_addr): Define.
12880         (si_syscall): Define.
12881         (si_arch): Define.
12882
12883 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12884
12885         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12886         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12887         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12888         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12889         (__memset_zero_constant_len_parameter): New.
12890         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12891         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12892         (__memset_zero_constant_len_parameter): Don't define if
12893         __memset_chk or USE_AS_BZERO are defined.
12894
12895         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12896         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12897         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12898
12899         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12900         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12901         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12902         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12903         comments.
12904         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
12905         -mno-mmx for $(all-rtld-routines).
12906         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
12907         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
12908         i386.
12909
12910 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
12911
12912         * sysdeps/generic/unwind.h
12913         (_Unwind_Word): Use __mode__(__unwind_word__)
12914         instead of __mode__(__word__).
12915         (_Unwind_Sword): Likewise.
12916
12917         * sysdeps/s390/s390-64/utf8-utf16-z9.c
12918         (MAX_NEEDED_INPUT): New define.
12919         (MAX_NEEDED_OUTPUT): New define.
12920
12921         * NEWS: New item for IBM z13 string optimizations.
12922
12923         * sysdeps/s390/multiarch/memrchr-c.c: New File.
12924         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
12925         * sysdeps/s390/multiarch/memrchr.c: Likewise.
12926         * sysdeps/s390/multiarch/Makefile
12927         (sysdep_routines): Add memrchr functions.
12928         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12929         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
12930
12931         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
12932         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
12933         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
12934         * sysdeps/s390/multiarch/Makefile
12935         (sysdep_routines): Add wmemcmp functions.
12936         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12937         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
12938         * benchtests/bench-wmemcmp.c: New File.
12939         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
12940
12941         * sysdeps/s390/multiarch/wmemset-c.c: New File.
12942         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
12943         * sysdeps/s390/multiarch/wmemset.c: Likewise.
12944         * sysdeps/s390/multiarch/Makefile
12945         (sysdep_routines): Add wmemset functions.
12946         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12947         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
12948         * wcsmbs/wmemset.c: Use WMEMSET if defined.
12949         * string/test-memset.c: Add wmemset support.
12950         * wcsmbs/test-wmemset.c: New File.
12951         * wcsmbs/Makefile (strop-tests): Add wmemset.
12952         * benchtests/bench-memset.c: Add wmemset support.
12953         * benchtests/bench-wmemset.c: New File.
12954         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
12955
12956         * sysdeps/s390/multiarch/memccpy-c.c: New File.
12957         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
12958         * sysdeps/s390/multiarch/memccpy.c: Likewise.
12959         * sysdeps/s390/multiarch/Makefile
12960         (sysdep_routines): Add memccpy functions.
12961         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12962         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
12963         * string/memccpy.c: Use MEMCCPY if defined.
12964
12965         * sysdeps/s390/multiarch/memchr-vx.S: New File.
12966         * sysdeps/s390/multiarch/memchr.c: Likewise.
12967         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
12968         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
12969         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
12970         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
12971         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
12972         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
12973         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
12974         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
12975         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
12976         and rawmemchr functions.
12977         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12978         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
12979         and wmemchr.
12980         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
12981         * string/test-memchr.c: Add wmemchr support.
12982         * wcsmbs/test-wmemchr.c: New File.
12983         * wcsmbs/Makefile (strop-tests): Add wmemchr.
12984         * benchtests/bench-memchr.c: Add wmemchr support.
12985         * benchtests/bench-wmemchr.c: New File.
12986         * benchtests/Makefile (wcsmbs-bench): wmemchr.
12987
12988         * sysdeps/s390/multiarch/strcspn-c.c: New File.
12989         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
12990         * sysdeps/s390/multiarch/strcspn.c: Likewise.
12991         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
12992         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
12993         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
12994         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
12995         wcscspn functions.
12996         * sysdeps/s390/multiarch/ifunc-impl-list.c
12997         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
12998         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
12999         * string/test-strcspn.c: Add wcscspn support.
13000         * wcsmbs/test-wcscspn.c: New File.
13001         * wcsmbs/Makefile (strop-tests): Add wcscspn.
13002         * benchtests/bench-strcspn.c: Add wcscspn support.
13003         * benchtests/bench-wcscspn.c: New File.
13004         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
13005
13006         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
13007         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
13008         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
13009         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
13010         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
13011         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
13012         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
13013         wcspbrk functions.
13014         * sysdeps/s390/multiarch/ifunc-impl-list.c
13015         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
13016         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
13017         * string/test-strpbrk.c: Add wcspbrk support.
13018         * wcsmbs/test-wcspbrk.c: New File.
13019         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
13020         * benchtests/bench-strpbrk.c: Add wcspbrk support.
13021         * benchtests/bench-wcspbrk.c: New File.
13022         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
13023
13024         * sysdeps/s390/multiarch/strspn-c.c: New File.
13025         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
13026         * sysdeps/s390/multiarch/strspn.c: Likewise.
13027         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
13028         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
13029         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
13030         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
13031         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
13032         wcsspn functions.
13033         * sysdeps/s390/multiarch/ifunc-impl-list.c
13034         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
13035         * string/test-strspn.c: Add wcsspn support.
13036         * wcsmbs/test-wcsspn.c: New File.
13037         * wcsmbs/Makefile (strop-tests): Add wcsspn.
13038         * benchtests/bench-strspn.c: Add wcsspn support.
13039         * benchtests/bench-wcsspn.c: New File.
13040         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
13041
13042         * sysdeps/s390/multiarch/strrchr-c.c: New File.
13043         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
13044         * sysdeps/s390/multiarch/strrchr.c: Likewise.
13045         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
13046         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
13047         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
13048         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
13049         wcsrchr functions.
13050         * sysdeps/s390/multiarch/ifunc-impl-list.c
13051         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
13052         * benchtests/bench-wcsrchr.c: New File.
13053         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
13054
13055         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
13056         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
13057         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
13058         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
13059         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
13060         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
13061         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
13062         wcschrnul functions.
13063         * sysdeps/s390/multiarch/ifunc-impl-list.c
13064         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
13065         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
13066         * string/test-strchr.c: Add wcschrnul support.
13067         * wcsmbs/test-wcschrnul.c: New File.
13068         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
13069         * benchtests/bench-strchr.c: Add wcschrnul support.
13070         * benchtests/bench-wcschrnul.c: New File.
13071         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
13072
13073         * sysdeps/s390/multiarch/strchr-c.c: New File.
13074         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
13075         * sysdeps/s390/multiarch/strchr.c: Likewise.
13076         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
13077         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
13078         * sysdeps/s390/multiarch/wcschr.c: Likewise.
13079         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
13080         wcschr functions.
13081         * sysdeps/s390/multiarch/ifunc-impl-list.c
13082         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
13083         * string/strchr.c (STRCHR): Define and use macro.
13084         * benchtests/bench-wcschr.c: New File.
13085         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
13086
13087         * sysdeps/s390/multiarch/strncmp-c.c: New File.
13088         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
13089         * sysdeps/s390/multiarch/strncmp.c: Likewise.
13090         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
13091         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
13092         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
13093         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
13094         wcsncmp functions.
13095         * sysdeps/s390/multiarch/ifunc-impl-list.c
13096         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
13097         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
13098         * benchtests/bench-strncmp.c: Add wcsncmp support.
13099         * benchtests/bench-wcsncmp.c: New File.
13100         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
13101
13102         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
13103         * sysdeps/s390/multiarch/strcmp.c: Likewise.
13104         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
13105         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
13106         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
13107         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
13108         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
13109         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
13110         wcscmp functions.
13111         * sysdeps/s390/multiarch/ifunc-impl-list.c
13112         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
13113         * string/strcmp.c (STRCMP): Define and use macro.
13114         * benchtests/bench-wcscmp.c: New File.
13115         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
13116         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
13117         instead of _HAVE_STRING_ARCH_memchr.
13118
13119         * sysdeps/s390/multiarch/strncat-c.c: New File.
13120         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
13121         * sysdeps/s390/multiarch/strncat.c: Likewise.
13122         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
13123         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
13124         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
13125         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
13126         wcsncat functions.
13127         * sysdeps/s390/multiarch/ifunc-impl-list.c
13128         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
13129         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
13130         * string/test-strncat.c: Add wcsncat support.
13131         * wcsmbs/test-wcsncat.c: New File.
13132         * wcsmbs/Makefile (strop-tests): Add wcsncat.
13133         * benchtests/bench-strncat.c: Add wcsncat support.
13134         * benchtests/bench-wcsncat.c: New File.
13135         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
13136
13137         * sysdeps/s390/multiarch/strcat-c.c: New File.
13138         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
13139         * sysdeps/s390/multiarch/strcat.c: Likewise.
13140         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
13141         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
13142         * sysdeps/s390/multiarch/wcscat.c: Likewise.
13143         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
13144         wcscat functions.
13145         * sysdeps/s390/multiarch/ifunc-impl-list.c
13146         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
13147         * string/strcat.c (STRCAT): Define and use macro.
13148         * wcsmbs/wcscat.c: Use WCSCAT if defined.
13149         * string/test-strcat.c: Add wcscat support.
13150         * wcsmbs/test-wcscat.c: New File.
13151         * wcsmbs/Makefile (strop-tests): Add wcscat.
13152         * benchtests/bench-strcat.c: Add wcscat support.
13153         * benchtests/bench-wcscat.c: New File.
13154         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
13155
13156         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
13157         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
13158         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
13159         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
13160         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
13161         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
13162         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
13163         wcpncpy functions.
13164         * sysdeps/s390/multiarch/ifunc-impl-list.c
13165         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
13166         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
13167         * string/test-stpncpy.c: Add wcpncpy support.
13168         * wcsmbs/test-wcpncpy.c: New File.
13169         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
13170         * benchtests/bench-stpncpy.c: Add wcpncpy support.
13171         * benchtests/bench-wcpncpy.c: New File.
13172         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
13173
13174         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
13175         * sysdeps/s390/multiarch/strncpy.c: Likewise.
13176         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
13177         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
13178         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
13179         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
13180         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
13181         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
13182         wcsncpy functions.
13183         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
13184         * sysdeps/s390/multiarch/ifunc-impl-list.c
13185         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
13186         * string/test-strncpy.c: Add wcsncpy support.
13187         * wcsmbs/test-wcsncpy.c: New File.
13188         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
13189         * benchtests/bench-strncpy.c: Add wcsncpy support.
13190         * benchtests/bench-wcsncpy.c: New File.
13191         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
13192
13193         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
13194         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
13195         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
13196         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
13197         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
13198         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
13199         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
13200         wcpcpy functions.
13201         * string/stpcpy.c: Use STPCPY if defined.
13202         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
13203         * sysdeps/s390/multiarch/ifunc-impl-list.c
13204         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
13205         * string/test-stpcpy.c: Add wcpcpy support.
13206         * wcsmbs/test-wcpcpy.c: New File.
13207         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
13208         * benchtests/bench-stpcpy.c: Add wcpcpy support.
13209         * benchtests/bench-wcpcpy.c: New File.
13210         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
13211
13212         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
13213         * sysdeps/s390/multiarch/strcpy.c: Likewise.
13214         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
13215         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
13216         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
13217         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
13218         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
13219         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
13220         wcscpy functions.
13221         * sysdeps/s390/multiarch/ifunc-impl-list.c
13222         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
13223         * benchtests/bench-wcscpy.c: New File.
13224         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
13225
13226         * sysdeps/s390/multiarch/strnlen-c.c: New File.
13227         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
13228         * sysdeps/s390/multiarch/strnlen.c: Likewise.
13229         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
13230         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
13231         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
13232         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
13233         wcsnlen functions.
13234         * sysdeps/s390/multiarch/ifunc-impl-list.c
13235         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
13236         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
13237         * string/test-strnlen.c: Add wcsnlen support.
13238         * wcsmbs/test-wcsnlen.c: New File.
13239         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
13240         * benchtests/bench-strnlen.c: Add wcsnlen support.
13241         * benchtests/bench-wcsnlen.c: New File.
13242         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
13243
13244         * sysdeps/s390/multiarch/Makefile: New File.
13245         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
13246         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
13247         * sysdeps/s390/multiarch/strlen.c: Likewise.
13248         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
13249         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
13250         * sysdeps/s390/multiarch/wcslen.c: Likewise.
13251         * string/strlen.c (STRLEN): Define and use macro.
13252         * sysdeps/s390/multiarch/ifunc-impl-list.c
13253         (IFUNC_VX_IMPL): New macro function.
13254         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
13255         * benchtests/Makefile (wcsmbs-bench): New variable.
13256         (string-bench-all): Added wcsmbs-bench.
13257         * benchtests/bench-wcslen.c: New File.
13258
13259         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
13260         s390_vx_libc_ifunc2): New macro function.
13261
13262         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
13263         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
13264         assembler support.
13265         * sysdeps/s390/configure: Regenerated.
13266
13267         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
13268         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
13269
13270         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
13271         * sysdeps/s390/dl-procinfo.h: Add vector capability.
13272         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
13273
13274         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
13275         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
13276         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
13277         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
13278         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
13279         (memcmp, bcmp): Use __memcmp_default as alias source.
13280         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
13281         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
13282         Rename to __memcmp_default.
13283         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
13284         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
13285         (memcpy): Use __memcpy_default as alias source.
13286         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
13287         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
13288         Rename to __memcpy_default.
13289         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
13290         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
13291         (memset): Use __memset_default as alias source.
13292         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
13293         * sysdeps/s390/s390-32/memset.S (__memset_g5):
13294         Rename to __memset_default.
13295         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
13296         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
13297         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
13298         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
13299         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
13300         (memcmp, bcmp): Use __memcmp_default as alias source.
13301         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
13302         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
13303         Rename to __memcmp_default.
13304         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
13305         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
13306         (memcpy): Use __memcpy_default as alias source.
13307         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
13308         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
13309         Rename to __memcpy_default.
13310         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
13311         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
13312         (memset): Use __memset_default as alias source.
13313         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
13314         * sysdeps/s390/s390-64/memset.S (__memset_z900):
13315         Rename to __memset_default.
13316         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
13317         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
13318
13319         [BZ #18610]
13320         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
13321         __ieee_instruction_pointer to __unused.
13322         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
13323         __ieee_instruction_pointer.
13324         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
13325         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
13326         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13327         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13328         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
13329         Mark dxc-field as reserved.
13330
13331 2015-08-25  Roland McGrath  <roland@hack.frob.com>
13332
13333         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
13334         if the weak reference is not null.
13335
13336 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13337
13338         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
13339
13340         [BZ #11214]
13341         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
13342
13343 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13344
13345         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
13346         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
13347         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
13348         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
13349         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
13350         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
13351         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
13352         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
13353         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
13354         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
13355         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
13356         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
13357         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
13358         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
13359         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
13360         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
13361         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
13362         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
13363
13364 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13365
13366         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
13367         register other than r0 for tabort, it has special meaning.
13368         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
13369         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
13370         transaction before starting syscall.
13371
13372 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13373
13374         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
13375
13376 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13377
13378         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
13379
13380         * sysdeps/x86_64/rtld-memcmp.c: Removed.
13381         * sysdeps/x86_64/rtld-memset.S: Likewise.
13382         * sysdeps/x86_64/rtld-strchr.S: Likewise.
13383         * sysdeps/x86_64/rtld-strlen.S: Likewise.
13384         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
13385         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
13386
13387         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
13388
13389 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
13390
13391         * debug/strcpy_chk.c: Improve performance.
13392         * debug/stpcpy_chk.c: Likewise.
13393         * sysdeps/x86_64/strcpy_chk.S: Remove.
13394         * sysdeps/x86_64/stpcpy_chk.S: Remove.
13395
13396         [BZ #18240]
13397         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
13398
13399 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13400
13401         [BZ #15128]
13402         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
13403         ifuncmain8.
13404         (modules-names): Add ifuncmod8.
13405         ($(objpfx)ifuncmain8): New rule.
13406         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
13407         <cpuid.h>.
13408         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
13409         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
13410         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
13411         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
13412         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
13413         * sysdeps/x86_64/dl-trampoline.h: Likewise.
13414         * sysdeps/x86_64/ifuncmain8.c: New file.
13415         * sysdeps/x86_64/ifuncmod8.c: Likewise.
13416         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
13417         Removed.
13418         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
13419         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
13420         Change rtld_savespace_sse to __glibc_unused2.
13421         (RTLD_CHECK_FOREIGN_CALL): Removed.
13422         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
13423         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
13424         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
13425
13426 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13427
13428         * sysdeps/aarch64/bzero.S (__bzero): Remove.
13429
13430 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13431
13432         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
13433         Unconditionally set __fpcr to avoid uninialized warning.
13434         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
13435
13436 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13437
13438         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
13439         is corrupt.
13440
13441         * malloc/arena.c (arena_get2): Drop unused argument.
13442         (arena_lock): Adjust.
13443         (arena_get_retry): Likewise.
13444
13445 2015-08-24  Andreas Schwab  <schwab@suse.de>
13446
13447         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13448         Don't define.
13449         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13450         (__ASSUME_IPC64): Don't undef.
13451         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13452         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13453         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13454         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13455         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13456         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13457         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13458         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13459         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13460         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13461         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13462         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13463         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13464         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13465         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13466         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13467         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13468         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13469         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13470         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13471         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13472
13473 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13474
13475         * manual/Makefile (install): Only build manual when perl is available.
13476
13477 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13478
13479         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13480         '#undef memcpy' by '#undef memchr'.
13481
13482 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13483
13484         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13485         memchr not point to the internal __GI_memchr implementation.
13486
13487 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13488
13489         * timezone/Makefile (CFLAGS-zdump.c): Remove
13490         -Wno-strict-prototypes.
13491         (CFLAGS-zic.c): Likewise.
13492         (CFLAGS-ialloc.c): Likewise.
13493         (CFLAGS-scheck.c): Likewise.
13494
13495         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13496         -Wno-error=undef.
13497
13498 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13499
13500         * i386/i686/multiarch/strcasestr-c.c: Removed.
13501         * x86_64/multiarch/strcasestr.c: Likewise.
13502         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13503         Remove strcasestr.
13504
13505 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13506
13507         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13508
13509         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13510         variables for high and low parts before possibly modifying them.
13511
13512 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13513
13514         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13515         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13516         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13517         of "multiarch/init-arch.h".
13518         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13519         * sysdeps/x86/init-arch.h: This.
13520
13521 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13522
13523         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13524         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13525
13526 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13527
13528         [BZ #17787]
13529         * manual/macros.texi: Add twoexp macro.
13530         * manual/filesys.texi: Fix exponents.
13531         * manual/llio.texi: Likewise.
13532         * manual/stdio.texi: Likewise.
13533
13534 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13535
13536         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13537         incorrect use.
13538
13539 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13540
13541         [BZ #18370]
13542         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13543         whose real or imaginary part has small absolute value.
13544         * math/s_csqrtf.c (__csqrtf): Likewise.
13545         * math/s_csqrtl.c (__csqrtl): Likewise.
13546         * math/auto-libm-test-in: Add more tests of csqrt.
13547         * math/auto-libm-test-out: Regenerated.
13548         * sysdeps/i386/fpu/libm-test-ulps: Update.
13549
13550 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13551
13552         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13553         __ppc_set_ppr_very_low): New functions.
13554         * manual/platform.texi: Add documentation about
13555         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13556
13557 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13558
13559         * string/stpncpy.c (stpncpy): Improve performance using
13560         __strnlen/memcpy/memset.
13561
13562 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13563
13564         [BZ #18796]
13565         * scripts/test-installation.pl: Don't add -lmvec to build options if
13566         libmvec wasn't built.
13567
13568 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13569
13570         [BZ #14341]
13571         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13572         case when there is a gap between DT_REL and DT_JMPREL sections.
13573         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13574         (LDFLAGS-tst-split-dynreloc): New.
13575         (tst-split-dynreloc-ENV): Likewise.
13576         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13577         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13578
13579 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13580
13581         [BZ #18822]
13582         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13583         attribute_hidden.
13584         (__xstat64_conv): Likewise.
13585         (__xstat32_conv): Likewise.
13586
13587 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13588
13589         [BZ #18822]
13590         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13591         Don't load %ebx when calling __setcontext.  Call __setcontext
13592         with HIDDEN_JUMPTARGET.
13593         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13594         libc_hidden_def.
13595
13596 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13597
13598         * sysdeps/i386/i686/Makefile
13599         [$(subdir) == string] (sysdep_routines): Moved to ...
13600         * sysdeps/i386/Makefile: Here.
13601         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13602         * sysdeps/i386/cacheinfo.c: Here.
13603         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13604         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13605         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13606         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13607
13608 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13609
13610         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13611         __i586__ is defined.
13612         (HAS_I686): Defined to 1 if __i686__ is defined.
13613
13614 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13615
13616         * elf/Makefile [$(have-z-execstack) = yes]
13617         (CPPFLAGS-tst-execstack.c): New variable.
13618
13619         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13620         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13621         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13622         UTMPX || _HAVE_UT_TV].
13623         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13624         UTMPX || _HAVE_UT_TV - 0].
13625
13626 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13627
13628         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13629         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13630         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13631
13632 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13633
13634         * sysdeps/powerpc/dl-procinfo.c:
13635         (_dl_powerpc_cap_flags): Added missing strings for some
13636         hwcap features.
13637         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13638
13639 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13640
13641         Port the 0x7efe...feff pattern to GCC 6.
13642         See Steve Ellcey's bug report in:
13643         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13644         * string/memrchr.c (MEMRCHR):
13645         * string/rawmemchr.c (RAWMEMCHR):
13646         * string/strchr.c (strchr):
13647         * string/strchrnul.c (STRCHRNUL):
13648         Rewrite code to avoid issues with signed shift overflow.
13649
13650 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13651
13652         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13653         whether cpuid is available only if HAS_CPUID is 0.
13654         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13655         (HAS_I586): Likewise.
13656         (HAS_I686): Likewise.
13657
13658 2015-08-18  Zack Weinberg  <zackw@panix.com>
13659
13660         * misc/Versions (libc): Add GLIBC_2.23.
13661
13662 2015-08-18  Alan Modra  <amodra@gmail.com>
13663
13664         [BZ #18421]
13665         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13666         .Lp__global.
13667         (_start): Load %dp via .Lp__global.
13668         [!SHARED]: Use .section .rodata.
13669
13670 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13671
13672         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13673         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13674
13675 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13676
13677         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13678         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13679
13680 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13681
13682         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13683         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13684
13685 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13686
13687         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13688         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13689
13690 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13691
13692         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13693         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13694
13695 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13696
13697         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13698         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13699
13700 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13701
13702         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13703
13704 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13705
13706         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13707         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13708         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13709         (__ASSUME_LWS_CAS): Delete.
13710
13711 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13712
13713         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13714         * sysdeps/hppa/configure: Regenerated.
13715         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13716         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13717         * sysdeps/hppa/nptl/tls.h: Likewise.
13718
13719 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13720
13721         [BZ #18823]
13722         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13723         for scaling up small arguments.
13724         * math/s_csqrtf.c (__csqrtf): Likewise.
13725         * math/s_csqrtl.c (__csqrtl): Likewise.
13726         * math/auto-libm-test-in: Add more tests of csqrt.
13727         * math/auto-libm-test-out: Regenerated.
13728
13729 2015-08-17  Andreas Schwab  <schwab@suse.de>
13730
13731         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13732         version set GLIBC_2.19.
13733
13734 2015-08-16  Zack Weinberg  <zackw@panix.com>
13735
13736         [BZ #18681]
13737         * misc/regexp.h: This interface is no longer supported.
13738         Remove all contents, leaving only an #error directive.
13739         * misc/regexp.c (loc1, loc2, locs, step, advance):
13740         Demote to compatibility symbols.
13741
13742 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13743
13744         [BZ #18084]
13745         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13746         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13747         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13748         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13749         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13750         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13751         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13752         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13753         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13754
13755 2015-08-15  Zack Weinberg  <zackw@panix.com>
13756
13757         [BZ #18795]
13758         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13759         buffer length is known to be too large, not if it's known to be
13760         small enough.
13761         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13762         overflow at runtime, involving a length parameter, twice: once
13763         with a compile-time constant length parameter, once without.
13764
13765 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13766
13767         [BZ #18824]
13768         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13769         scaling x * y up instead of down.
13770         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13771         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13772         * math/auto-libm-test-in: Add more tests of fma.
13773         * math/auto-libm-test-out: Regenerated.
13774
13775 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13776
13777         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13778
13779 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13780
13781         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13782         unnecessary movq.
13783         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13784         Likewise.
13785
13786 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13787
13788         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13789         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13790         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13791         and tgamma.
13792         * math/auto-libm-test-out: Regenerated.
13793         * sysdeps/i386/fpu/libm-test-ulps: Update.
13794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13795
13796         [BZ #16520]
13797         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13798         (__tanh): Force underflow exception for arguments with small
13799         absolute value.
13800         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13801         (__tanhf): Force underflow exception for arguments with small
13802         absolute value.
13803         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13804         (__tanhl): Force underflow exception for arguments with small
13805         absolute value.
13806         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13807         (__tanhl): Force underflow exception for arguments with small
13808         absolute value.
13809         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13810         (__tanhl): Force underflow exception for arguments with small
13811         absolute value.
13812         * math/auto-libm-test-in: Add more tests of tanh.
13813         * math/auto-libm-test-out: Regenerated.
13814         * sysdeps/i386/fpu/libm-test-ulps: Update.
13815
13816 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13817
13818         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13819         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13820
13821 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13822
13823         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13824         <cpuid.h>.
13825
13826 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13827
13828         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13829         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13830
13831 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13832
13833         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13834         Remove $(objpfx)init-arch.o.
13835         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13836         init-arch.
13837         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13838         (INIT_ARCH_EXT): Defined as empty.
13839         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13840         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13841         __init_cpu_features call.  Replace HAS_XXX with
13842         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13843         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13844         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13845         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13846         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13847         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13848         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13849         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13850         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13851         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13852         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13853         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13854         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13855         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13856         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13857         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13858         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13859         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13860         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13861         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13862         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13863         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13864         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13865         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13866         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13867         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13868         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13869         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13870         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13871         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13872         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13873         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13874         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13875         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13876         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13877         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13878
13879 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13880
13881         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13882         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13883         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13884         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13885         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13886         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13887         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13888         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13889         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13890         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13891         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13892         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13893         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13894         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13895         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13896         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13897         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13898         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13899         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13900         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13901         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13902         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13903         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13904         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13905         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13906         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13907         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13908         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13909         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13910         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13911         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13912         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13913         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13914         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13915         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13916         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13917         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13918         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13919         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13920         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13921         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13922         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13923         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13924
13925 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13926
13927         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
13928         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13929         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13930         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13931         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13932         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13933         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13934         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
13935         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13936         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13937         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13938         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
13939         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
13940         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
13941         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
13942         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
13943         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
13944         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
13945         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
13946         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
13947         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13948         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
13949         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
13950         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13951         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13952         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
13953         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
13954         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
13955         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13956         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13957         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13958         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13959         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13960         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13961         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13962         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13963         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13964         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13965         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13966         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13967         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13968         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13969         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13970
13971 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13972
13973         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
13974         (dl_platform_init): Call init_cpu_features.
13975         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
13976         * sysdeps/i386/i686/cacheinfo.c
13977         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
13978         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
13979         * sysdeps/i386/i686/multiarch/Versions: Removed.
13980         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
13981         Removed.
13982         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
13983         * sysdeps/unix/sysv/linux/x86/Makefile
13984         (libpthread-sysdep_routines): Remove init-arch.
13985         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
13986         <sysdeps/x86_64/dl-procinfo.c> instead of
13987         sysdeps/generic/dl-procinfo.c>.
13988         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
13989         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
13990         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
13991         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
13992         [$(subdir) == elf] (tests-static): Add
13993         tst-get-cpu-features-static.
13994         * sysdeps/x86/Versions: New file.
13995         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
13996         * sysdeps/x86/cpu-features.c: Likewise.
13997         * sysdeps/x86/cpu-features.h: Likewise.
13998         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
13999         * sysdeps/x86/libc-start.c: Likewise.
14000         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
14001         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
14002         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
14003         * sysdeps/x86_64/dl-procinfo.c: Likewise.
14004         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
14005         Assume USE_MULTIARCH is defined and don't check it.
14006         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
14007         (is_amd): Likewise.
14008         (max_cpuid): Likewise.
14009         (intel_check_word): Likewise.
14010         (__cache_sysconf): Don't call __init_cpu_features.
14011         (__x86_preferred_memory_instruction): Removed.
14012         (init_cacheinfo): Don't call __init_cpu_features. Replace
14013         __cpu_features with GLRO(dl_x86_cpu_features).
14014         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
14015         (dl_platform_init): Call init_cpu_features.
14016         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
14017         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
14018         * sysdeps/x86_64/multiarch/Versions: Removed.
14019         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
14020         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
14021         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
14022         Removed.
14023         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
14024
14025 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14026
14027         [BZ #18820]
14028         * libio/Makefile (test-fmemopen-mem): New test.
14029         * libio/test-fmemopen.c (do_bz18820): New test.
14030         * libio/fmemopen.c (__fmemopen): Fix memory leak.
14031         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
14032
14033 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14034
14035         [BZ #16734]
14036         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
14037         (FREE_BUF): Delete.
14038         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
14039         * libio/genops.c (_IO_setb): Use malloc and free directly.
14040         (_IO_default_doallocate, _IO_default_finish): Likewise.
14041         ( _IO_unbuffer_all): Likewise.
14042         ( libc_freeres_fn): Likewise.
14043         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
14044         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
14045         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
14046         (_IO_wdefault_doallocate): Likewise.
14047
14048 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14049
14050         [BZ #18086]
14051         * sysdeps/posix/nice.c (nice): Restore old errno.
14052         * posix/tst-nice.c (do_test): Add test for BZ #18086.
14053
14054 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
14055
14056         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
14057
14058 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14059
14060         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
14061         __bcopy and add a weak_alias to bcopy.
14062         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
14063         for static build.
14064
14065         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
14066         cleanup macro usage.
14067         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
14068         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
14069         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
14070         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
14071         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
14072         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
14073         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
14074         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14075         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
14076         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
14077         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14078         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
14079         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14080         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
14081         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
14082         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
14083         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
14084         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
14085         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14086
14087         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
14088         libc_hidden_def.
14089         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
14090
14091         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
14092         (sysdep_routines): Add strstr-ppc64.
14093         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
14094
14095 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
14096
14097         [BZ #18778]
14098         * elf/Makefile (tests): Add Add tst-nodelete2.
14099         (modules-names): Add tst-nodelete2mod.
14100         (tst-nodelete2mod.so-no-z-defs): New.
14101         ($(objpfx)tst-nodelete2): Likewise.
14102         ($(objpfx)tst-nodelete2.out): Likewise.
14103         (LDFLAGS-tst-nodelete2): Likewise.
14104         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
14105         out of loop through all loaded libraries.
14106         * elf/tst-nodelete2.c: New file.
14107         * elf/tst-nodelete2mod.c: Likewise.
14108         * elf/tst-znodelete-zlib.cc: Delete.
14109
14110 2015-08-11  Andreas Schwab  <schwab@suse.de>
14111
14112         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
14113         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
14114         (__openat64_nocancel): Likewise.
14115
14116 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
14117
14118         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
14119         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
14120         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
14121         * math/auto-libm-test-out: Regenerated.
14122         * sysdeps/i386/fpu/libm-test-ulps: Update.
14123         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14124
14125 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14126
14127         [BZ #18790]
14128         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
14129         threshold for returning +/- 1.
14130         * math/auto-libm-test-in: Add more tests of tanh.
14131         * math/auto-libm-test-out: Regenerated.
14132         * sysdeps/i386/fpu/libm-test-ulps: Update.
14133
14134 2015-08-10  Andreas Schwab  <schwab@suse.de>
14135
14136         [BZ #18781]
14137         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
14138         MORE_OFLAGS to oflag.
14139         * io/test-lfs.c (do_test): Test openat64.
14140
14141 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14142
14143         [BZ #18789]
14144         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
14145         smaller threshold for returning the argument.
14146         * math/auto-libm-test-in: Add more tests of sinh.
14147         * math/auto-libm-test-out: Regenerated.
14148         * sysdeps/i386/fpu/libm-test-ulps: Update.
14149
14150 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14151
14152         [BZ #18674]
14153         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
14154         break.
14155
14156 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
14157
14158         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
14159         (generated): Don't add $(addprefix z.,$(tzfiles)).
14160
14161 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14162
14163         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
14164         * scripts/sysd-rules.awk: Likewise.
14165
14166 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14167
14168         * iconvdata/tst-tables.sh: Change echo -n to printf.
14169         * nss/db-Makefile: Likewise.
14170         * posix/tst-getconf.sh: Likewise.
14171         * stdio-common/tst-unbputc.sh: Likewise.
14172
14173 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14174
14175         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
14176         MADV_*_PAGES defines behind this feature check.
14177
14178 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
14179
14180         [BZ #18480]
14181         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
14182         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
14183         Define.
14184         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
14185         LOAD_REGS_5, LOAD_REGS_6): Update.
14186         (INTERNAL_SYSCALL): Update using new LOAD defines.
14187         (INTERNAL_SYSCALL_NCS): Likewise.
14188         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
14189
14190 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14191
14192         [BZ #16734]
14193         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
14194
14195 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14196
14197         [BZ #17905]
14198         * catgets/Makefile (tst-catgets-mem): New test.
14199         * catgets/catgets.c (catopen): Don't use unbounded alloca.
14200         * catgets/open_catalog.c (__open_catalog): Likewise.
14201         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
14202
14203 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
14204
14205         [BZ #18787]
14206         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
14207         clobber registers.
14208         (atomic_compare_and_exchange_val_acq): Use register asms to assign
14209         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
14210         Cast return to __typeof (oldval).
14211
14212 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
14213
14214         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
14215         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
14216         and delete sys/syscall.h include.
14217
14218 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
14219
14220         [BZ #16517]
14221         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
14222         (tan): Force underflow exception for arguments with small absolute
14223         value.
14224         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
14225         (__kernel_tanf): Force underflow exception for arguments with
14226         small absolute value.
14227         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
14228         (__kernel_tanl): Force underflow exception for arguments with
14229         small absolute value.
14230         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
14231         (__kernel_tanl): Force underflow exception for arguments with
14232         small absolute value.
14233         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
14234         (__kernel_tanl): Force underflow exception for arguments with
14235         small absolute value.
14236         * math/auto-libm-test-in: Add more tests of tan.
14237         * math/auto-libm-test-out: Regenerated.
14238
14239 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14240
14241         Fix sysdeps/i386/fpu/s_scalbn.S build
14242
14243         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
14244
14245 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
14246
14247         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14248
14249 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14250
14251         Fix gcrt0.o compilation
14252
14253         When static-start-installed-name is different from
14254         start-installed-name, we must not use the shared objects.
14255
14256         * csu/Makefile
14257         (extra-objs): Add gmon-start.o when building shared library and
14258         $(static-start-installed-name) is different from
14259         $(start-installed-name).
14260         $(objpfx)g$(static-start-installed-name): When building shared
14261         library and $(static-start-installed-name) is different from
14262         $(static-start-installed-name), revert to non-shared rule,
14263         i.e. using $(objpfx)% and gmon-start.o.
14264
14265 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
14266
14267         [BZ #16519]
14268         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
14269         (__ieee754_sinh): Force underflow exception for arguments with
14270         small absolute value.
14271         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
14272         (__ieee754_sinhf): Force underflow exception for arguments with
14273         small absolute value.
14274         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
14275         (__ieee754_sinhl): Force underflow exception for arguments with
14276         small absolute value.
14277         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
14278         (__ieee754_sinhl): Force underflow exception for arguments with
14279         small absolute value.
14280         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
14281         (__ieee754_sinhl): Force underflow exception for arguments with
14282         small absolute value.
14283         * math/auto-libm-test-in: Add more tests of sinh.
14284         * math/auto-libm-test-out: Regenerated.
14285         * sysdeps/i386/fpu/libm-test-ulps: Update.
14286
14287 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14288
14289         * libio/oldfileops.c: Include unistd.h.
14290
14291 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
14292
14293         * stdlib/isomac.c: Include ctype.h.
14294
14295 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
14296
14297         * dirent/tst-seekdir.c (main): Converted to ...
14298         (do_test): ... this.
14299         (TEST_FUNCTION): New macro.
14300         Include test-skeleton.c.
14301         * elf/tst-dlmodcount.c (main): Converted to ...
14302         (do_test): ... this.
14303         (TEST_FUNCTION): New macro.
14304         Include test-skeleton.c.
14305         * elf/tst-order-main.c (main): Converted to ...
14306         (do_test): ... this.
14307         (TEST_FUNCTION): New macro.
14308         Include test-skeleton.c.
14309         * elf/tst-pie2.c (main): Converted to ...
14310         (do_test): ... this.
14311         (TEST_FUNCTION): New macro.
14312         Include test-skeleton.c.
14313         * inet/tst-ether_aton.c (main): Converted to ...
14314         (do_test): ... this.
14315         (TEST_FUNCTION): New macro.
14316         Include test-skeleton.c.
14317         * misc/tst-mntent.c (main): Converted to ...
14318         (do_test): ... this.
14319         (TEST_FUNCTION): New macro.
14320         Include test-skeleton.c.
14321         * misc/tst-tsearch.c (main): Converted to ...
14322         (do_test): ... this.
14323         (TEST_FUNCTION): New macro.
14324         Include test-skeleton.c.
14325         * posix/tst-regexloc.c (main): Converted to ...
14326         (do_test): ... this.
14327         (TEST_FUNCTION): New macro.
14328         Include test-skeleton.c.
14329         * resolv/tst-aton.c (main): Converted to ...
14330         (do_test): ... this.
14331         (TEST_FUNCTION): New macro.
14332         Include test-skeleton.c.
14333         * stdio-common/test-fwrite.c (main): Converted to ...
14334         (do_test): ... this.
14335         (TEST_FUNCTION): New macro.
14336         Include test-skeleton.c.
14337         * stdio-common/tst-ferror.c (main): Converted to ...
14338         (do_test): ... this.
14339         (TEST_FUNCTION): New macro.
14340         Include test-skeleton.c.
14341         * stdio-common/tst-printf.c (main): Converted to ...
14342         (do_test): ... this.
14343         (TEST_FUNCTION): New macro.
14344         Include test-skeleton.c.
14345         * stdio-common/tst-printfsz.c (main): Converted to ...
14346         (do_test): ... this.
14347         (TEST_FUNCTION): New macro.
14348         Include test-skeleton.c.
14349         * stdlib/tst-strtod.c (main): Converted to ...
14350         (do_test): ... this.
14351         (TEST_FUNCTION): New macro.
14352         Include test-skeleton.c.
14353         * string/tst-strlen.c (main): Converted to ...
14354         (do_test): ... this.
14355         (TEST_FUNCTION): New macro.
14356         Include test-skeleton.c.
14357         * string/tst-svc.c (main): Converted to ...
14358         (do_test): ... this.
14359         (TEST_FUNCTION): New macro.
14360         Include test-skeleton.c.
14361         * time/tst-strptime.c (main): Converted to ...
14362         (do_test): ... this.
14363         (TEST_FUNCTION): New macro.
14364         Include test-skeleton.c.
14365         * timezone/tst-timezone.c (main): Converted to ...
14366         (do_test): ... this.
14367         (TEST_FUNCTION): New macro.
14368         Include test-skeleton.c.
14369
14370 2015-08-05  Zack Weinberg  <zackw@panix.com>
14371
14372         * misc/regexp.h: Update comments.
14373
14374 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
14375
14376         [BZ #18635]
14377         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
14378         before return label.
14379
14380 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14381
14382         [BZ #18661]
14383         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
14384         when calling __errno_location.
14385         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
14386         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
14387
14388 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14389
14390         [BZ #18661]
14391         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
14392         (__lll_timedwait_tid): Align stack to 16 bytes when calling
14393         __gettimeofday.
14394
14395 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14396
14397         [BZ #18661]
14398         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
14399         (__start_context): Don't use pop to restore %rdi so that stack
14400         is aligned to 16 bytes when calling __setcontext.
14401
14402 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14403
14404         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
14405         only for libc.
14406         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14407
14408 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14409
14410         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
14411         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
14412         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
14413
14414 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14415
14416         * string/memccpy.c (memccpy):
14417         Improve performance by using memchr/memcpy/__mempcpy.
14418
14419 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14420
14421         * string/strncpy.c (strncpy):
14422         Improve performance by using __strnlen/memcpy.
14423
14424 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14425
14426         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
14427         Optimize to avoid an unnecessary FPCR read.
14428
14429 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14430
14431         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
14432         Optimize to reduce FPCR/FPSR accesses.
14433
14434 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14435
14436         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
14437         dead->data[category] != NULL.
14438
14439 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
14440
14441         [BZ #18647]
14442         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14443         and |x| close to 1, use absolute value of x when computing log.
14444         * math/auto-libm-test-in: Add more tests of pow.
14445         * math/auto-libm-test-out: Regenerated.
14446
14447 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14448
14449         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14450         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14451         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14452
14453 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14454
14455         [BZ #18525]
14456         * locales/km_KH: Remove timezone definition.
14457         * locales/lo_LA: Likewise.
14458         * locales/my_MM: Likewise.
14459         * locales/nan_TW@latin: Likewise.
14460         * locales/th_TH: Likewise.
14461         * locales/uk_UA: Likewise.
14462
14463 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14464
14465         [BZ #18265]
14466         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14467         (wcsncat): Likewise.
14468         (wcscmp): Likewise.
14469         (wcsncmp): Likewise.
14470
14471 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14472
14473         * test-skeleton.c (usage): New function.
14474         (main): Call usage when opt is '?'.
14475
14476 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14477
14478         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14479         before first use.
14480
14481 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14482
14483         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14484         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14485         in there too.
14486
14487 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14488
14489         * version.h (RELEASE): Set to "development".
14490         (VERSION): Set to "2.22.90"
14491
14492         * version.h (RELEASE): Set to "stable".
14493         (VERSION): Set to "2.22"
14494         * include/features.h (__GLIBC_MINOR__): Set to 22.
14495
14496 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14497
14498         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14499         Restructure macro to avoid "value computed is not used" warning.
14500         (atomic_compare_and_exchange_val_acq): Likewise.
14501
14502 2015-08-04  Andreas Schwab  <schwab@suse.de>
14503
14504         [BZ #18635]
14505         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14506         ret.
14507         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14508
14509 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14510
14511         * po/pl.po: Updated translation.
14512         * po/uk.po: Likewise.
14513         * po/fi.po: Likewise.
14514         * po/ko.po: Likewise.
14515         * po/ru.po: Likewise.
14516         * po/vi.po: Likewise.
14517
14518 2015-07-31  Zack Weinberg  <zackw@panix.com>
14519
14520         [BZ #18681]
14521         * regexp.h: Add unconditional #warning stating that this header
14522         will be removed soon.  Revise banner comment to match.
14523         (compile): Consistently use ERROR instead of RETURN to report
14524         errors (partial fix for bz#18681).
14525         * regexp.c: Don't include regexp.h. Remove some unnecessary
14526         declarations.
14527
14528 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14529
14530         * po/libc.pot: Regenerated.
14531
14532 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14533
14534         [BZ #18740]
14535         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14536         float-vlen4-arch-ext-cflags): Removed.
14537         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14538         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14539
14540 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14541
14542         [BZ #14113]
14543         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14544         aligned to __aligned__.
14545         (pthread_cond_t, pthread_rwlock_t): Likewise.
14546
14547 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14548
14549         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14550
14551 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14552
14553         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14554         (struct sigaction): Change sa_flags from a long to an int, and add
14555         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14556
14557 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14558
14559         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14560         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14561         sysdeps/generic/sysdep.h include.
14562         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14563         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14564         sysdeps/hppa/sysdep.h.
14565         (ENTRY, PSEUDO): Undefine before defining.
14566
14567 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14568
14569         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14570         from scratch to use INTERNAL_SYSCALL.
14571
14572 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14573
14574         [BZ #18078]
14575         * scripts/check-localplt.awk: Support alternate relocations.
14576         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14577         sections.
14578         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14579         malloc entries with + REL R_386_GLOB_DAT.
14580         * sysdeps/x86_64/localplt.data: New file.
14581
14582 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14583
14584         [BZ #18731]
14585         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14586         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14587         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14588
14589 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14590
14591         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14592
14593 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14594
14595         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14596         directly in terms of __sync_fetch_and_add and delete (int) cast.
14597
14598 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14599
14600         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14601         the -D_ASM_IA64_CURRENT_H flag.
14602
14603 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14604
14605         [BZ #18641]
14606         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14607
14608 2015-07-27  Andreas Schwab  <schwab@suse.de>
14609
14610         * conform/conformtest.pl (checknamespace): Filter out string
14611         literals while tokenizing.
14612
14613 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14614
14615         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14616         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14617         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14618
14619 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14620
14621         * nptl/tst-join7mod.c: Add #include <string.h>.
14622
14623 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14624
14625         * sysdeps/nios2/libm-test-ulps: Update.
14626
14627 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14628
14629         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14630         Fix order of arguments to the rt_sigprocmask syscall.
14631         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14632         Likewise.
14633
14634 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14635
14636         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14637
14638 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14639
14640         [BZ #18457]
14641         * nptl/Makefile (tests): New test case tst-join7.
14642         (modules-names): New test case module tst-join7mod.
14643         * nptl/tst-join7.c: New file.
14644         * nptl/tst-join7mod.c: New file.
14645         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14646         all translation units in libc.so, libpthread.so and rtld.
14647
14648 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14649
14650         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14651
14652 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14653
14654         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14655         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14656         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14657         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14658         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14659         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14660         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14661         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14662         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14663         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14664         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14665         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14666         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14667         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14668         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14669         implementation.
14670
14671 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14672
14673         [BZ #17711]
14674         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14675         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14676         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14677         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14678         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14679         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14680
14681 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14682
14683         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14684         instead of just saying load lock in the comments.
14685
14686 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14687
14688         * sysdeps/unix/Subdirs: Moved ...
14689         * sysdeps/posix/Subdirs: ... here.
14690         * login/pty.h (struct termios, struct winsize): Add forward decls.
14691         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14692         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14693         * sysdeps/arm/nacl/libc.abilist: Updated.
14694         * sysdeps/nacl/libutil.abilist: New file.
14695
14696         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14697         (SIGWINCH): New macro.
14698
14699         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14700         * sysdeps/arm/nacl/libc.abilist: Add it.
14701
14702 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14703
14704         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14705
14706 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14707
14708         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14709         Swap __glibc_reserved0 and sa_flags order.
14710
14711 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14712
14713         [BZ #18657]
14714         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14715         are pending TLS destructor calls.
14716         * include/link.h (struct link_map): Add concurrency note for
14717         L_TLS_DTOR_COUNT.
14718         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14719         Don't touch the link map flag.  Atomically increment
14720         l_tls_dtor_count.
14721         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14722         Avoid taking the load lock and don't touch the link map flag.
14723         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14724         * stdlib/Makefile (tests): Use it.
14725         * stdlib/tst-tls-atexit.c (do_test): dlopen
14726         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14727         to allow tst-tls-atexit-nodelete test case to use it.
14728
14729 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14730
14731         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14732         to bits/types.h.
14733         (msgqnum_t): New typedef.
14734         (msglen_t): Likewise.
14735         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14736         and msg_qbytes type to msglen_t.
14737
14738 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14739
14740         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14741         pad0 to __glibc_reserved0.
14742         (struct stat64): Likewise.
14743
14744 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14745
14746         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14747         Change sa_flags from a long to an int and add __glibc_reserved0 before
14748         it for padding.
14749
14750 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14751
14752         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14753         anonymous by deleting "siginfo" name.
14754
14755 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14756
14757         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14758         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14759         rather than __nacl_irt_filename.
14760         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14761
14762         * NEWS: New item for arm-nacl port.
14763         * sysdeps/arm/nacl/libc.abilist: New file.
14764         * sysdeps/nacl/ld.abilist: New file.
14765         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14766         * sysdeps/nacl/libanl.abilist: New file.
14767         * sysdeps/nacl/libcrypt.abilist: New file.
14768         * sysdeps/nacl/libdl.abilist: New file.
14769         * sysdeps/nacl/libm.abilist: New file.
14770         * sysdeps/nacl/libpthread.abilist: New file.
14771         * sysdeps/nacl/libresolv.abilist: New file.
14772         * sysdeps/nacl/librt.abilist: New file.
14773
14774 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14775
14776         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14777         __startcontext to initialize the new context.
14778         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14779         up CFI directive to forbid further backtracing.
14780
14781 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14782
14783         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14784         reference.
14785         * charmaps/ANSI_X3.4-1968: Likewise.
14786         * charmaps/BS_4730: Likewise.
14787         * charmaps/BS_VIEWDATA: Likewise.
14788         * charmaps/CP1250: Likewise.
14789         * charmaps/CP1251: Likewise.
14790         * charmaps/CP1252: Likewise.
14791         * charmaps/CP1253: Likewise.
14792         * charmaps/CP1254: Likewise.
14793         * charmaps/CP1255: Likewise.
14794         * charmaps/CP1256: Likewise.
14795         * charmaps/CSN_369103: Likewise.
14796         * charmaps/EBCDIC-DK-NO: Likewise.
14797         * charmaps/GB_1988-80: Likewise.
14798         * charmaps/GREEK-CCITT: Likewise.
14799         * charmaps/GREEK7: Likewise.
14800         * charmaps/INIS-8: Likewise.
14801         * charmaps/ISIRI-3342: Likewise.
14802         * charmaps/ISO_2033-1983: Likewise.
14803         * charmaps/ISO_5427-EXT: Likewise.
14804         * locales/POSIX: Likewise.
14805         * locales/ar_SA: Likewise.
14806         * locales/be_BY: Likewise.
14807         * locales/be_BY@latin: Likewise.
14808         * locales/ca_ES: Likewise.
14809         * locales/cs_CZ: Likewise.
14810         * locales/da_DK: Likewise.
14811         * locales/de_BE: Likewise.
14812         * locales/de_CH: Likewise.
14813         * locales/de_LU: Likewise.
14814         * locales/en_AU: Likewise.
14815         * locales/en_BW: Likewise.
14816         * locales/en_CA: Likewise.
14817         * locales/en_DK: Likewise.
14818         * locales/en_GB: Likewise.
14819         * locales/en_IE: Likewise.
14820         * locales/en_NZ: Likewise.
14821         * locales/en_ZA: Likewise.
14822         * locales/en_ZW: Likewise.
14823         * locales/es_AR: Likewise.
14824         * locales/es_BO: Likewise.
14825         * locales/es_CL: Likewise.
14826         * locales/es_CO: Likewise.
14827         * locales/es_DO: Likewise.
14828         * locales/es_EC: Likewise.
14829         * locales/es_ES: Likewise.
14830         * locales/es_HN: Likewise.
14831         * locales/es_MX: Likewise.
14832         * locales/es_PA: Likewise.
14833         * locales/es_PE: Likewise.
14834         * locales/es_PY: Likewise.
14835         * locales/es_SV: Likewise.
14836         * locales/es_US: Likewise.
14837         * locales/es_UY: Likewise.
14838         * locales/es_VE: Likewise.
14839         * locales/et_EE: Likewise.
14840         * locales/fa_IR: Likewise.
14841         * locales/fo_FO: Likewise.
14842         * locales/fr_CA: Likewise.
14843         * locales/fr_CH: Likewise.
14844         * locales/gv_GB: Likewise.
14845         * locales/he_IL: Likewise.
14846         * locales/hr_HR: Likewise.
14847         * locales/id_ID: Likewise.
14848         * locales/is_IS: Likewise.
14849         * locales/it_CH: Likewise.
14850         * locales/iw_IL: Likewise.
14851         * locales/kl_GL: Likewise.
14852         * locales/ko_KR: Likewise.
14853         * locales/kw_GB: Likewise.
14854         * locales/lg_UG: Likewise.
14855         * locales/lt_LT: Likewise.
14856         * locales/lv_LV: Likewise.
14857         * locales/mi_NZ: Likewise.
14858         * locales/nhn_MX: Likewise.
14859         * locales/nl_BE: Likewise.
14860         * locales/pl_PL: Likewise.
14861         * locales/sk_SK: Likewise.
14862         * locales/sl_SI: Likewise.
14863         * locales/sv_FI: Likewise.
14864         * locales/tl_PH: Likewise.
14865         * locales/tr_TR: Likewise.
14866         * locales/vi_VN: Likewise.
14867
14868 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14869
14870         [BZ #17475]
14871         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14872         of tu_IN and bh_IN.
14873
14874 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14875
14876         [BZ #18694]
14877         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14878         bits/wordsize.h.
14879         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14880
14881 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14882
14883         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14884         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14885         (spawn_thread): New function.
14886         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14887         (do_test): ... here.  Use IS_LOADED to test for its
14888         availability.
14889
14890 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14891
14892         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14893
14894 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14895
14896         [BZ #18696]
14897         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14898         si_addr_bnd.
14899         (si_lower): New.
14900         (si_upper): Likewise.
14901
14902 2015-07-16  David S. Miller  <davem@davemloft.net>
14903
14904         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
14905
14906 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14907
14908         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
14909         buffer.
14910         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
14911         fail output information.
14912
14913 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14914
14915         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
14916         and strstr-ppc64..
14917         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
14918         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
14919         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
14920         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
14921         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
14922
14923 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14924
14925         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14926         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14927         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14928         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14929
14930 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14931
14932         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14933         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
14934         rtld_hidden_proto.
14935         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
14936
14937 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14938
14939         * tst-nodelete-opened.c (do_test): Add comment to clarify how
14940         the test can fail.
14941
14942         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
14943
14944         [BZ #18676]
14945         * elf/tst-nodelete-opened.c: New test case.
14946         * elf/tst-nodelete-opened-lib.c: New test case module.
14947         * elf/Makefile (tests, modules-names): Use them.
14948         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
14949         early.
14950
14951 2015-07-15  David S. Miller  <davem@davemloft.net>
14952
14953         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
14954         futex-intenal.h
14955         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
14956         * sysdeps/sparc/sparc64/Makefile: Likewise.
14957         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14958         Remove space from macro define.
14959         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
14960
14961 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
14962
14963         [BZ #17475]
14964         * locale/iso-639.def: Update Bhili and Tulu language codes as
14965         per iso639-3.
14966
14967 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
14968
14969         * elf/tst-leaks1.c (main): Converted to ...
14970         (do_test): ... this.
14971         (TEST_FUNCTION): New macro.
14972         Include test-skeleton.c.
14973         * localedata/tst-langinfo.c (main): Converted to ...
14974         (do_test): ... this.
14975         (TEST_FUNCTION): New macro.
14976         Include test-skeleton.c.
14977         * math/test-fpucw.c (main): Converted to ...
14978         (do_test): ... this.
14979         (TEST_FUNCTION): New macro.
14980         Include test-skeleton.c.
14981         * math/test-tgmath.c (main): Converted to ...
14982         (do_test): ... this.
14983         (TEST_FUNCTION): New macro.
14984         Include test-skeleton.c.
14985         * math/test-tgmath2.c (main): Converted to ...
14986         (do_test): ... this.
14987         (TEST_FUNCTION): New macro.
14988         Include test-skeleton.c.
14989         * setjmp/tst-setjmp.c (main): Converted to ...
14990         (do_test): ... this.
14991         (TEST_FUNCTION): New macro.
14992         Include test-skeleton.c.
14993         * stdio-common/tst-sscanf.c (main): Converted to ...
14994         (do_test): ... this.
14995         (TEST_FUNCTION): New macro.
14996         Include test-skeleton.c.
14997         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
14998         (do_test): ... this.
14999         (TEST_FUNCTION): New macro.
15000         Include test-skeleton.c.
15001
15002         * elf/tst-audit9.c (main): Converted to ...
15003         (do_test): ... this.
15004         (TEST_FUNCTION): New macro.
15005         Include test-skeleton.c.
15006
15007 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
15008
15009         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
15010
15011 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15012
15013         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
15014         New variable.
15015
15016 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15017
15018         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15019
15020 2015-07-14  Roland McGrath  <roland@hack.frob.com>
15021
15022         * sysdeps/generic/dl-fileid.h: New file.
15023         * sysdeps/posix/dl-fileid.h: New file.
15024         * sysdeps/nacl/dl-fileid.h: New file.
15025         * include/link.h: Include <dl-fileid.h>.
15026         (struct link_map): Replace l_dev and l_ino with l_file_id.
15027         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
15028         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
15029         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
15030
15031 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15032
15033         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
15034
15035 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15036
15037         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
15038         Add iff $CXX is set.
15039         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
15040         Likewise.
15041         (tst-nodelete-zmodiff): Likewise.
15042         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
15043
15044 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15045
15046         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
15047
15048 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15049
15050         * sysdeps/aarch64/fpu/math_private.h
15051         (define math_opt_barrier): Add AArch64 version.
15052         (math_force_eval): Likewise.
15053
15054 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15055
15056         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
15057
15058 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
15059
15060         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
15061         %ld with %jd and cast to intmax_t.
15062         (do_test_length_zero): Likewise.
15063
15064 2015-07-10  Roland McGrath  <roland@hack.frob.com>
15065
15066         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
15067
15068 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
15069
15070         * sysdeps/tile/libm-test-ulps: Regenerated.
15071
15072         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
15073         Comment out the whole function, not just its body.
15074
15075 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15076
15077         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
15078         locks.
15079
15080         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
15081
15082 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15083
15084         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
15085         (sem_assume_only_signals_cause_futex_EINTR): Remove.
15086
15087 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15088
15089         * sysdeps/nptl/futex-internal.h: New file.
15090         * sysdeps/nacl/futex-internal.h: New file.
15091         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
15092         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
15093         error checking.
15094         (setxid_unmark_thread): Likewise.
15095         (__nptl_setxid): Likewise.
15096         (__wait_lookup_done): Likewise.
15097         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
15098         * nptl/nptl-init.c (sighandler_setxid): Likewise.
15099         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
15100         * nptl/pthread_once.c (clear_once_control): Likewise.
15101         (__pthread_once_slow): Likewise.
15102         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15103         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
15104         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
15105         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15106         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
15107         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
15108         Likewise.
15109         (__pthread_rwlock_rdlock): Likewise.
15110         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
15111         Likewise.
15112         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
15113         Likewise.
15114         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
15115         Likewise.
15116         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
15117         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
15118         Likewise.
15119         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
15120         __ASSUME_PRIVATE_FUTEX check.
15121         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
15122         Check that shared futexes are supported.
15123         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
15124         wrappers with error checking.
15125         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
15126         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
15127         * nptl/pthread_barrierattr_setpshared.c
15128         (pthread_barrierattr_setpshared): Check that shared futexes are
15129         supported.
15130         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
15131         Likewise.
15132         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
15133         Likewise.
15134         * nptl/sem_init.c (futex_private_if_supported): Remove.
15135         (__new_sem_init): Adapt and check that shared futexes are supported.
15136         * nptl/sem_open.c (sem_open): Likewise.
15137         * nptl/sem_post.c (futex_wake): Remove.
15138         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
15139         (do_futex_wait): Use futex wrappers with error checking.
15140         * nptl/sem_wait.c: Include lowlevellock.h.
15141         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
15142         Use futex_supports_pshared.
15143         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
15144         Use futex wrappers with error checking.
15145         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
15146         Likewise.
15147         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
15148         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
15149         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
15150         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
15151         (futex_wake): Likewise.
15152         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
15153         (do_futex_wait): Use futex wrappers with error checking.
15154         (__new_sem_wait_slow): Update EINTR handling.
15155         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
15156
15157 2015-07-09  Martin Sebor  <msebor@redhat.com>
15158
15159         [BZ #18435]
15160         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15161         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
15162         * nptl/Makefile (test-xfail-tst-once5): Define.
15163
15164 2015-07-09  Roland McGrath  <roland@hack.frob.com>
15165
15166         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
15167         * elf/dl-minimal.c: For readability, reorder some definitions and
15168         introduce more page breaks.  Include <stdio.h>.
15169         (__libc_fatal): New function.
15170
15171         * include/unistd.h: Add rtld_hidden_proto for _exit.
15172         * posix/_exit.c: Add rtld_hidden_def.
15173         * sysdeps/mach/hurd/_exit.c: Likewise.
15174         * sysdeps/nacl/_exit.c: Likewise.
15175         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
15176         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
15177
15178 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15179
15180         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
15181         bndmov encoding with zero displacement.
15182
15183 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
15184             H.J. Lu  <hongjiu.lu@intel.com>
15185
15186         [BZ #18134]
15187         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
15188         * sysdeps/i386/configure: Regenerated.
15189         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
15190         (_dl_runtime_profile): Save and restore Intel MPX return bound
15191         registers when calling _dl_call_pltexit.  Add
15192         PRESERVE_BND_REGS_PREFIX before return.
15193         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
15194         (LRV_BND1_OFFSET): Likewise.
15195         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
15196         lrv_bnd1.
15197         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
15198         typo in bndmov encoding.
15199         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
15200         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
15201         branch instructions to preserve bounds.
15202
15203 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15204
15205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
15206         [GLIBC_2.22]: Add fmemopen.
15207
15208 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15209
15210         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
15211         returns an error, also try to use host port from __mach_host_self for
15212         the __vm_wire call.
15213         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
15214
15215 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15216
15217         [BZ #18400]
15218         [BZ #18648]
15219         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
15220         Fix pr_uid and pr_gid members.
15221         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
15222         definition to elf_greg_t.
15223
15224 2015-07-08  Roland McGrath  <roland@hack.frob.com>
15225
15226         [BZ #18383]
15227         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
15228         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
15229         * sysdeps/arm/configure: Regenerated.
15230         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
15231         (test-xfail-tst-tlsalign-static): Variable removed.
15232
15233         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
15234         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
15235         rather than explicit 'ln -s'.
15236
15237         * resolv/rpc/netdb.h: New file.
15238         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
15239
15240 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15241
15242         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
15243         length buffers.
15244         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
15245         test-skeleton.c.
15246
15247         [BZ #6544]
15248         [BZ #11216]
15249         [BZ #12836]
15250         [BZ #13151]
15251         [BZ #13152]
15252         [BZ #14292]
15253         * include/stdio.h (fmemopen): Remove hidden prototype.
15254         (__fmemopen): Add new hidden prototype.
15255         * libio/Makefile: Add oldfmemopen object.
15256         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
15257         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
15258         compliance.
15259         * libio/oldfmemopen.c: New file: old fmemopen implementation for
15260         symbol compatibility.
15261         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
15262         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
15263         fmemopen.
15264         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
15265         on append and read mode.
15266         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
15267         fmemopen.
15268         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
15269         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
15270         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
15271         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
15272         Likewise.
15273         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
15274         [GLIBC_2.22]: Likewise.
15275         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
15276         Likewise.
15277         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
15278         Likewise.
15279         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
15280         [GLIBC_2.22]: Likewise.
15281         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
15282         [GLIBC_2.22]: Likewise.
15283         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
15284         [GLIBC_2.22]: Likewise.
15285         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
15286         [GLIBC_2.22]: Likewise.
15287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
15288         [GLIBC_2.22]: Likewise.
15289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
15290         [GLIBC_2.22]: Likewise.
15291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
15292         [GLIBC_2.22]: Likewise.
15293         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
15294         Likewise.
15295         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
15296         Likewise.
15297         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
15298         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
15299         [GLIBC_2.22]: Likewise.
15300         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
15301         [GLIBC_2.22]: Likewise.
15302         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
15303         [GLIBC_2.22]: Likewise.
15304         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
15305         [GLIBC_2.22]: Likewise.
15306         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
15307         Likewise.
15308         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
15309         Likewise.
15310         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
15311         Likewise.
15312         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
15313         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
15314
15315 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15316
15317         [BZ #18643]
15318         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
15319         IPV6_PATHMTU, and IPV6_DONTFRAG.
15320
15321 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
15322
15323         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
15324         and _IO_UNBUFFERED.
15325         * libio/oldfileops.c: Likewise.
15326         * libio/wfileops.c: Likewise.
15327
15328 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15329
15330         * nscd/selinux.c: Delete selinux/flask.h include.
15331
15332 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15333
15334         [BZ #18641]
15335         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
15336         (putpwent): Likewise.
15337         (getpwnam): Likewise.
15338         (getpwent_r): Likewise.
15339         (getpwuid_r): Likewise.
15340         (getpwnam_r): Likewise.
15341         (fgetpwent_r): Likewise.
15342
15343 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15344
15345         [BZ #18557]
15346         * inet/rcmd.c (__validuser2_sa): Check user first to
15347         short-circuit host check.
15348
15349 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
15350             Mikhail Ilin  <m.ilin@samsung.com>
15351
15352         [BZ #17833]
15353         * elf/Makefile (tests): Add tst-nodelete.
15354         (modules-names): Add tst-nodelete-uniquemod.
15355         (tst-nodelete-uniquemod.so-no-z-defs): New.
15356         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
15357         (tst-nodelete-zmod.so-no-z-defs): Likewise.
15358         ($(objpfx)tst-nodelete): Likewise.
15359         ($(objpfx)tst-nodelete.out): Likewise.
15360         (LDFLAGS-tst-nodelete): Likewise.
15361         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
15362         * elf/dl-close.c (_dl_close_worker): Add a parameter to
15363         implement forced object deletion.
15364         (_dl_close): Pass false to _dl_close_worker.
15365         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
15366         * elf/tst-nodelete.cc: New file.
15367         * elf/tst-nodeletelib.cc: Likewise.
15368         * elf/tst-znodeletelib.cc: Likewise.
15369         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
15370
15371 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15372
15373         [BZ #18508]
15374         * stdlib/Makefile ($(objpfx)tst-makecontext3):
15375         Depend on $(libdl).
15376         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
15377         is not called infinitely times.
15378         (backtrace_helper): New function.
15379         (trace_arg): New struct.
15380         (st1): Enlarge stack size.
15381         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15382         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
15383         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15384         Likewise.
15385
15386 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15387
15388         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15389
15390 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15391
15392         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
15393         Include sys/types.h instead of bits/types.h.
15394         Remove inclusion of bits/wordsize.h.
15395
15396 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15397
15398         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
15399         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
15400         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
15401         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
15402         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
15403         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
15404
15405 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15406
15407         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
15408         link-defines.sym.
15409         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
15410         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
15411         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
15412         and LR_SIZE.
15413         * sysdeps/i386/link-defines.sym: New file.
15414
15415 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15416
15417         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
15418         (modules-names): Add tst-auditmod3a tst-auditmod3b.
15419         ($(objpfx)tst-audit3): New rule.
15420         ($(objpfx)tst-audit3.out): Likewise.
15421         * sysdeps/i386/tst-audit3.c: New file.
15422         * sysdeps/i386/tst-audit3.h: Likewise.
15423         * sysdeps/i386/tst-auditmod3a.c: Likewise.
15424         * sysdeps/i386/tst-auditmod3b.c: Likewise.
15425
15426 2015-07-07  Torvald Riegel  <triegel@redhat.com>
15427
15428         [BZ #18633]
15429         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
15430         pointer in C code.
15431         (__strcat_c): Likewise.
15432         (__strcat_g): Likewise.
15433
15434 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
15435
15436         [BZ #18592]
15437         * misc/sbrk.c: Set errno to ENOMEM on overflow.
15438
15439 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15440
15441         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15442         New function.  (__ieee754_sqrtf): New function.
15443         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15444         New function.
15445         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15446         New function.
15447
15448 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15449
15450         * sysdeps/ieee754/support.c: Remove unused file.
15451
15452 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15453
15454         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15455         registers instead of d ones so the layout is kernel abi compatible.
15456         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15457         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15458         Likewise.
15459
15460 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15461
15462         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15463
15464 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15465
15466         [BZ #18619]
15467         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15468         and return argument in case of subnormal argument.
15469
15470 2015-07-01  Martin Sebor  <msebor@redhat.com>
15471
15472         [BZ #18435]
15473         * nptl/Makefile: Add tst-once5.cc.
15474         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15475         Remove macro redefinitions.
15476         * nptl/tst-once5.cc: New test.
15477
15478 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15479
15480         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15481
15482         * sysdeps/arm/libm-test-ulps: Regenerated.
15483
15484         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15485         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15486
15487 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15488
15489         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15490         lll_lock_wait_private and lll_futex_wake probes.
15491
15492         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15493         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15494         Likewise.
15495         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15496         atomic_spin_nop.
15497         * sysdeps/x86_64/bits/atomic.h: Likewise.
15498         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15499         to atomic_spin_nop and move ...
15500         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15501         ... here and ...
15502         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15503         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15504         atomic_spin_nop instead of BUSY_WAIT_NOP.
15505         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15506         Likewise.
15507         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15508         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15509         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15510         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15511         instead of atomic_delay.
15512
15513 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15514
15515         [BZ #18613]
15516         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15517         X_ADJ not X when adjusting exponent.
15518         (__ieee754_gamma_r): Do intermediate computations in
15519         round-to-nearest then adjust overflowing and underflowing results
15520         as needed.
15521         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15522         of X_ADJ not X when adjusting exponent.
15523         (__ieee754_gammaf_r): Do intermediate computations in
15524         round-to-nearest then adjust overflowing and underflowing results
15525         as needed.
15526         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15527         log of X_ADJ not X when adjusting exponent.
15528         (__ieee754_gammal_r): Do intermediate computations in
15529         round-to-nearest then adjust overflowing and underflowing results
15530         as needed.  Use 1.0L not 1.0f as numerator of division.
15531         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15532         log of X_ADJ not X when adjusting exponent.
15533         (__ieee754_gammal_r): Do intermediate computations in
15534         round-to-nearest then adjust overflowing and underflowing results
15535         as needed.  Use 1.0L not 1.0f as numerator of division.
15536         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15537         of X_ADJ not X when adjusting exponent.
15538         (__ieee754_gammal_r): Do intermediate computations in
15539         round-to-nearest then adjust overflowing and underflowing results
15540         as needed.  Use 1.0L not 1.0f as numerator of division.
15541         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15542         to auto-libm-test-in.
15543         (tgamma_test): Use ALL_RM_TEST.
15544         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15545         tests of tgamma with spurious-overflow.
15546         * math/auto-libm-test-out: Regenerated.
15547         * math/gen-libm-have-vector-test.sh: Do not check for START.
15548         * sysdeps/i386/fpu/libm-test-ulps: Update.
15549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15550
15551         [BZ #18612]
15552         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15553         arguments, just return 0.5 times the argument, with underflow
15554         forced as needed.
15555         * math/auto-libm-test-in: Add more tests of j1.
15556         * math/auto-libm-test-out: Regenerated.
15557
15558         [BZ #16559]
15559         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15560         (__ieee754_j1): Force underflow exception for small results.
15561         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15562         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15563         (__ieee754_j1f): Force underflow exception for small results.
15564         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15565         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15566         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15567         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15568         (__ieee754_j1l): Force underflow exception for small results.
15569         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15570         * math/auto-libm-test-in: Add more tests of j1 and jn.
15571         * math/auto-libm-test-out: Regenerated.
15572
15573         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15574         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15575         (PF_MPLS): Likewise.
15576         (AF_IB): Likewise.
15577         (AF_MPLS): Likewise.
15578         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15579         value and macro.
15580         (MS_RMT_MASK): Include MS_LAZYTIME.
15581
15582 2015-06-26  Mel Gorman  <mgorman@suse.de>
15583
15584         [BZ #18502]
15585         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15586         already minimal.
15587
15588 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15589
15590         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15591         (DT_MIPS_NUM): Update.
15592         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15593         DT_MIPS_RLD_MAP_REL.
15594
15595 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15596
15597         [BZ #16559]
15598         [BZ #18602]
15599         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15600         round-to-nearest internally then recompute results that
15601         underflowed to zero in the original rounding mode.
15602         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15603         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15604         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15605         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15606         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15607         * sysdeps/i386/fpu/libm-test-ulps: Update.
15608         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15609
15610 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15611
15612         * NEWS: Fixed description of link with vector math library.
15613
15614 2015-06-25  Andreas Schwab  <schwab@suse.de>
15615
15616         [BZ #18549]
15617         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15618         * libio/test-fmemopen.c (do_test): Add test for it.
15619
15620 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15621
15622         [BZ #17841]
15623         * Makeconfig (no-pie-ldflag): New.
15624         (+link): Set to $(+link-pie) if default to PIE.
15625         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15626         * config.make.in (build-pie-default): New.
15627         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15628         is default.  AC_SUBST.
15629         * configure: Regenerated.
15630         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15631
15632 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15633
15634         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15635         to 'unsigned int'.
15636
15637         * resolv/gai_misc.h (struct waitlist): Change type of field
15638         counterp to 'volatile unsigned int *'.
15639         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15640         FUTEXADDR and OLDVAL.
15641         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15642         Give local variable TOTAL type 'volatile unsigned int'.
15643         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15644         * resolv/gai_suspend.c (gai_suspend):
15645         Give local variable CNTR type 'unsigned int'.
15646
15647         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15648         counterp to 'volatile unsigned int *'.
15649         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15650         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15651         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15652         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15653         Give local variable TOTAL type 'volatile unsigned int'.
15654         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15655
15656 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15657
15658         [BZ #18383]
15659         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15660         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15661         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15662         comment for i386/x86-64.
15663         (test-xfail-tst-tlsalign-extern-static): Removed.
15664
15665 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15666
15667         * math/test-double.h: New file.
15668         * math/test-float.h: Likewise.
15669         * math/test-ldouble.h: Likewise.
15670         * math/test-math-inline.h: Likewise.
15671         * math/test-math-no-inline.h: Likewise.
15672         * math/test-math-scalar.h: Likewise.
15673         * math/test-math-vector.h: Likewise.
15674         * math/test-vec-loop.h: Remove file.  Contents moved into
15675         test-math-vector.h.
15676         * math/libm-test.inc (MATHCONST): Do not document macro.
15677         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15678         and test-math-scalar.h.
15679         (FUNC): Remove macro.
15680         (FUNC_TEST): Likewise.
15681         (FLOAT): Likewise.
15682         (MATHCONST): Likewise.
15683         (PRINTF_EXPR): Likewise.
15684         (PRINTF_XEXPR): Likewise.
15685         (PRINTF_NEXPR): Likewise.
15686         (TEST_DOUBLE): Likewise.
15687         (TEST_MATHVEC): Likewise.
15688         (__NO_MATH_INLINES): Likewise.
15689         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15690         and test-math-scalar.h.
15691         (FUNC): Remove macro.
15692         (FUNC_TEST): Likewise.
15693         (FLOAT): Likewise.
15694         (MATHCONST): Likewise.
15695         (PRINTF_EXPR): Likewise.
15696         (PRINTF_XEXPR): Likewise.
15697         (PRINTF_NEXPR): Likewise.
15698         (TEST_FLOAT): Likewise.
15699         (TEST_MATHVEC): Likewise.
15700         (__NO_MATH_INLINES): Likewise.
15701         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15702         and test-math-scalar.h.
15703         (FUNC): Remove macro.
15704         (FUNC_TEST): Likewise.
15705         (FLOAT): Likewise.
15706         (MATHCONST): Likewise.
15707         (PRINTF_EXPR): Likewise.
15708         (PRINTF_XEXPR): Likewise.
15709         (PRINTF_NEXPR): Likewise.
15710         (TEST_DOUBLE): Likewise.
15711         (TEST_MATHVEC): Likewise.
15712         (TEST_INLINE): Likewise.
15713         (__NO_MATH_INLINES): Likewise.
15714         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15715         test-math-scalar.h.
15716         (FUNC): Remove macro.
15717         (FUNC_TEST): Likewise.
15718         (FLOAT): Likewise.
15719         (MATHCONST): Likewise.
15720         (PRINTF_EXPR): Likewise.
15721         (PRINTF_XEXPR): Likewise.
15722         (PRINTF_NEXPR): Likewise.
15723         (TEST_FLOAT): Likewise.
15724         (TEST_MATHVEC): Likewise.
15725         (TEST_INLINE): Likewise.
15726         (__NO_MATH_INLINES): Likewise.
15727         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15728         and test-math-scalar.h.
15729         (FUNC): Remove macro.
15730         (FUNC_TEST): Likewise.
15731         (FLOAT): Likewise.
15732         (MATHCONST): Likewise.
15733         (PRINTF_EXPR): Likewise.
15734         (PRINTF_XEXPR): Likewise.
15735         (PRINTF_NEXPR): Likewise.
15736         (TEST_LDOUBLE): Likewise.
15737         (TEST_MATHVEC): Likewise.
15738         (TEST_INLINE): Likewise.
15739         (__NO_MATH_INLINES): Likewise.
15740         * math/test-ldouble.c: Include test-ldouble.h,
15741         test-math-no-inline.h and test-math-scalar.h.
15742         (FUNC): Remove macro.
15743         (FUNC_TEST): Likewise.
15744         (FLOAT): Likewise.
15745         (MATHCONST): Likewise.
15746         (PRINTF_EXPR): Likewise.
15747         (PRINTF_XEXPR): Likewise.
15748         (PRINTF_NEXPR): Likewise.
15749         (TEST_LDOUBLE): Likewise.
15750         (TEST_MATHVEC): Likewise.
15751         (__NO_MATH_INLINES): Likewise.
15752         * math/test-double-vlen2.h: Include test-double.h,
15753         test-math-no-inline.h and test-math-vector.h.
15754         (FLOAT): Remove macro.
15755         (FUNC): Likewise.
15756         (MATHCONST): Likewise.
15757         (PRINTF_EXPR): Likewise.
15758         (PRINTF_XEXPR): Likewise.
15759         (PRINTF_NEXPR): Likewise.
15760         (TEST_DOUBLE): Likewise.
15761         (TEST_MATHVEC): Likewise.
15762         (__NO_MATH_INLINES): Likewise.
15763         (CNCT): Likewise.
15764         (CONCAT): Likewise.
15765         (WRAPPER_NAME): Likewise.
15766         (WRAPPER_DECL): Likewise.
15767         (WRAPPER_DECL_ff): Likewise.
15768         (WRAPPER_DECL_fFF): Likewise.
15769         (VECTOR_WRAPPER): Likewise.
15770         (VECTOR_WRAPPER_ff): Likewise.
15771         (VECTOR_WRAPPER_fFF): Likewise.
15772         (VEC_LEN): New macro.
15773         * math/test-double-vlen4.h: Include test-double.h,
15774         test-math-no-inline.h and test-math-vector.h.
15775         (FLOAT): Remove macro.
15776         (FUNC): Likewise.
15777         (MATHCONST): Likewise.
15778         (PRINTF_EXPR): Likewise.
15779         (PRINTF_XEXPR): Likewise.
15780         (PRINTF_NEXPR): Likewise.
15781         (TEST_DOUBLE): Likewise.
15782         (TEST_MATHVEC): Likewise.
15783         (__NO_MATH_INLINES): Likewise.
15784         (CNCT): Likewise.
15785         (CONCAT): Likewise.
15786         (WRAPPER_NAME): Likewise.
15787         (WRAPPER_DECL): Likewise.
15788         (WRAPPER_DECL_ff): Likewise.
15789         (WRAPPER_DECL_fFF): Likewise.
15790         (VECTOR_WRAPPER): Likewise.
15791         (VECTOR_WRAPPER_ff): Likewise.
15792         (VECTOR_WRAPPER_fFF): Likewise.
15793         (VEC_LEN): New macro.
15794         * math/test-double-vlen8.h: Include test-double.h,
15795         test-math-no-inline.h and test-math-vector.h.
15796         (FLOAT): Remove macro.
15797         (FUNC): Likewise.
15798         (MATHCONST): Likewise.
15799         (PRINTF_EXPR): Likewise.
15800         (PRINTF_XEXPR): Likewise.
15801         (PRINTF_NEXPR): Likewise.
15802         (TEST_DOUBLE): Likewise.
15803         (TEST_MATHVEC): Likewise.
15804         (__NO_MATH_INLINES): Likewise.
15805         (CNCT): Likewise.
15806         (CONCAT): Likewise.
15807         (WRAPPER_NAME): Likewise.
15808         (WRAPPER_DECL): Likewise.
15809         (WRAPPER_DECL_ff): Likewise.
15810         (WRAPPER_DECL_fFF): Likewise.
15811         (VECTOR_WRAPPER): Likewise.
15812         (VECTOR_WRAPPER_ff): Likewise.
15813         (VECTOR_WRAPPER_fFF): Likewise.
15814         (VEC_LEN): New macro.
15815         * math/test-float-vlen4.h: Include test-float.h,
15816         test-math-no-inline.h and test-math-vector.h.
15817         (FLOAT): Remove macro.
15818         (FUNC): Likewise.
15819         (MATHCONST): Likewise.
15820         (PRINTF_EXPR): Likewise.
15821         (PRINTF_XEXPR): Likewise.
15822         (PRINTF_NEXPR): Likewise.
15823         (TEST_FLOAT): Likewise.
15824         (TEST_MATHVEC): Likewise.
15825         (__NO_MATH_INLINES): Likewise.
15826         (CNCT): Likewise.
15827         (CONCAT): Likewise.
15828         (WRAPPER_NAME): Likewise.
15829         (WRAPPER_DECL): Likewise.
15830         (WRAPPER_DECL_ff): Likewise.
15831         (WRAPPER_DECL_fFF): Likewise.
15832         (VECTOR_WRAPPER): Likewise.
15833         (VECTOR_WRAPPER_ff): Likewise.
15834         (VECTOR_WRAPPER_fFF): Likewise.
15835         (VEC_LEN): New macro.
15836         * math/test-float-vlen8.h: Include test-float.h,
15837         test-math-no-inline.h and test-math-vector.h.
15838         (FLOAT): Remove macro.
15839         (FUNC): Likewise.
15840         (MATHCONST): Likewise.
15841         (PRINTF_EXPR): Likewise.
15842         (PRINTF_XEXPR): Likewise.
15843         (PRINTF_NEXPR): Likewise.
15844         (TEST_FLOAT): Likewise.
15845         (TEST_MATHVEC): Likewise.
15846         (__NO_MATH_INLINES): Likewise.
15847         (CNCT): Likewise.
15848         (CONCAT): Likewise.
15849         (WRAPPER_NAME): Likewise.
15850         (WRAPPER_DECL): Likewise.
15851         (WRAPPER_DECL_ff): Likewise.
15852         (WRAPPER_DECL_fFF): Likewise.
15853         (VECTOR_WRAPPER): Likewise.
15854         (VECTOR_WRAPPER_ff): Likewise.
15855         (VECTOR_WRAPPER_fFF): Likewise.
15856         (VEC_LEN): New macro.
15857         * math/test-float-vlen16.h: Include test-float.h,
15858         test-math-no-inline.h and test-math-vector.h.
15859         (FLOAT): Remove macro.
15860         (FUNC): Likewise.
15861         (MATHCONST): Likewise.
15862         (PRINTF_EXPR): Likewise.
15863         (PRINTF_XEXPR): Likewise.
15864         (PRINTF_NEXPR): Likewise.
15865         (TEST_FLOAT): Likewise.
15866         (TEST_MATHVEC): Likewise.
15867         (__NO_MATH_INLINES): Likewise.
15868         (CNCT): Likewise.
15869         (CONCAT): Likewise.
15870         (WRAPPER_NAME): Likewise.
15871         (WRAPPER_DECL): Likewise.
15872         (WRAPPER_DECL_ff): Likewise.
15873         (WRAPPER_DECL_fFF): Likewise.
15874         (VECTOR_WRAPPER): Likewise.
15875         (VECTOR_WRAPPER_ff): Likewise.
15876         (VECTOR_WRAPPER_fFF): Likewise.
15877         (VEC_LEN): New macro.
15878         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15879         test-vec-loop.h.
15880         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15881         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15882         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15883         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15884         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15885         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15886         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15887
15888 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15889
15890         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15891         (__getlogin_r): ... this.
15892
15893 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15894
15895         [BZ #18594]
15896         * math/s_ccosh.c (__ccosh): Compare with least normal value
15897         instead of comparing class with FP_SUBNORMAL.
15898         * math/s_ccoshf.c (__ccoshf): Likewise.
15899         * math/s_ccoshl.c (__ccoshl): Likewise.
15900         * math/s_cexp.c (__cexp): Likewise.
15901         * math/s_cexpf.c (__cexpf): Likewise.
15902         * math/s_cexpl.c (__cexpl): Likewise.
15903         * math/s_csin.c (__csin): Likewise.
15904         * math/s_csinf.c (__csinf): Likewise.
15905         * math/s_csinh.c (__csinh): Likewise.
15906         * math/s_csinhf.c (__csinhf): Likewise.
15907         * math/s_csinhl.c (__csinhl): Likewise.
15908         * math/s_csinl.c (__csinl): Likewise.
15909         * math/s_ctan.c (__ctan): Likewise.
15910         * math/s_ctanf.c (__ctanf): Likewise.
15911         * math/s_ctanh.c (__ctanh): Likewise.
15912         * math/s_ctanhf.c (__ctanhf): Likewise.
15913         * math/s_ctanhl.c (__ctanhl): Likewise.
15914         * math/s_ctanl.c (__ctanl): Likewise.
15915         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
15916         csin, csinh, ctan and ctanh.
15917         * math/auto-libm-test-out: Regenerated.
15918         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
15919         * sysdeps/i386/fpu/libm-test-ulps: Update.
15920         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15921
15922 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15923
15924         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
15925         return value is wrong, print the expected value too.
15926
15927 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15928
15929         [BZ #18585]
15930         * elf/readlib.c (is_gdb_python_file): New.
15931         (process_file): Don't issue errors on filenames with -gdb.py
15932         suffix.
15933
15934 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15935
15936         * math/auto-libm-test-in: Add more tests of csin and csinh.
15937         * math/auto-libm-test-out: Regenerated.
15938         * math/libm-test.inc (csin_test_data): Remove tests moved to
15939         auto-libm-test-in.
15940         (csinh_test_data): Likewise.
15941
15942         [BZ #18593]
15943         * math/s_csin.c (__csin): Negate before rather than after possibly
15944         overflowing multiplication.
15945         * math/s_csinf.c (__csinf): Likewise.
15946         * math/s_csinh.c (__csinh): Likewise.
15947         * math/s_csinhf.c (__csinhf): Likewise.
15948         * math/s_csinhl.c (__csinhl): Likewise.
15949         * math/s_csinl.c (__csinl): Likewise.
15950         * math/auto-libm-test-in: Add some tests of csin and csinh.
15951         * math/auto-libm-test-out: Regenerated.
15952         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
15953         (csinh_test_data): Likewise.
15954         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15955
15956         [BZ #18586]
15957         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
15958         underflow exception for small results.
15959
15960 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15961
15962         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15963         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
15964         variable and included header.
15965         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
15966         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
15967         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
15968         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
15969         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
15970         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
15971         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
15972         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
15973         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
15974         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
15975         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
15976         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
15977         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
15978         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
15979         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
15980         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
15981
15982 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
15983
15984         [BZ #16526]
15985         [BZ #16538]
15986         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
15987         (__sin): Force underflow exception for arguments with small
15988         absolute value.
15989         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
15990         (__kernel_sinf): Force underflow exception for arguments with
15991         small absolute value.
15992         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
15993         (__kernel_sincosl): Force underflow exception for arguments with
15994         small absolute value.
15995         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
15996         (__kernel_sinl): Force underflow exception for arguments with
15997         small absolute value.
15998         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
15999         (__kernel_sincosl): Force underflow exception for arguments with
16000         small absolute value.
16001         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
16002         (__kernel_sinl): Force underflow exception for arguments with
16003         small absolute value.
16004         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
16005         (__kernel_sinl): Force underflow exception for arguments with
16006         small absolute value.
16007         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
16008         (__kernel_sinf): Force underflow exception for arguments with
16009         small absolute value.
16010         * math/auto-libm-test-in: Add more tests of sin and sincos.
16011         * math/auto-libm-test-out: Regenerated.
16012
16013         [BZ #18245]
16014         [BZ #18583]
16015         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
16016         (__kernel_standard_l): Use feholdexcept and fesetenv around
16017         conversion to double instead of special-casing overflow and
16018         underflow.
16019         * math/libm-test.inc (fmod_test_data): Add more tests.
16020         (remainder_test_data): Likewise.
16021         (sqrt_test_data): Likewise.
16022
16023 2015-06-23  Torvald Riegel  <triegel@redhat.com>
16024
16025         [BZ #17403]
16026         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
16027         atomic_read_barrier, atomic_write_barrier): Define.
16028         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
16029         atomic_read_barrier, atomic_write_barrier): Define.
16030
16031 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16032
16033         * math/Makefile [$(PERL) != no]
16034         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
16035         dependency on libm-test.stmp below the inclusion of Rules.
16036
16037 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
16038
16039         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16040         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
16041         and included header.
16042         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
16043         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
16044         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
16045         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
16046         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
16047         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
16048         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
16049         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
16050         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
16051         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
16052         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
16053         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
16054         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
16055         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
16056         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
16057         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
16058         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
16059         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
16060         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
16061
16062 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16063
16064         [BZ #18371]
16065         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
16066         intermediate but not final result might underflow.
16067         * math/s_csqrtf.c (__csqrtf): Likewise.
16068         * math/s_csqrtl.c (__csqrtl): Likewise.
16069         * math/auto-libm-test-in: Add more tests of csqrt.
16070         * math/auto-libm-test-out: Regenerated.
16071         * sysdeps/i386/fpu/libm-test-ulps: Update.
16072
16073         [BZ #18219]
16074         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
16075         threshold on absolute value of exponent for which scaling is used.
16076         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
16077         * math/auto-libm-test-in: Add more tests of exp2.
16078         * math/auto-libm-test-out: Regenerated.
16079
16080 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
16081
16082         [BZ #17977]
16083         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
16084         when initializing interface list, based on the bug analysis
16085         and the patch proposed by Eric Newton.
16086         * resolv/tst-res_hconf_reorder.c: New test.
16087         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
16088         tst-res_hconf_reorder.
16089         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
16090         and $(shared-thread-library).
16091         (tst-res_hconf_reorder-ENV): New variable.
16092
16093         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
16094         in comment.
16095
16096 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
16097
16098         [BZ #16353]
16099         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
16100         (__expm1): Force underflow exception for arguments with small
16101         absolute value.
16102         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
16103         (__expm1f): Force underflow exception for arguments with small
16104         absolute value.
16105         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
16106         (__expm1): Force underflow exception for arguments with small
16107         absolute value.
16108         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
16109         (__expm1f): Force underflow exception for arguments with small
16110         absolute value.
16111         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
16112         Check for small arguments before calling __expm1.
16113         * math/auto-libm-test-in: Do not mark underflow exceptions as
16114         possibly missing for bug 16353.
16115         * math/auto-libm-test-out: Regenerated.
16116
16117 2015-06-22  Andreas Schwab  <schwab@suse.de>
16118
16119         [BZ #18513]
16120         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
16121         PTR queries.
16122
16123 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
16124
16125         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
16126
16127         * string/strcoll_l.c: Remove unused struct element idxnow.
16128
16129 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
16130
16131         [BZ #18569]
16132         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
16133         underflow and return argument in case of subnormal argument.
16134         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
16135         Likewise.
16136         * math/auto-libm-test-in: Add more tests of expm1.
16137         * math/auto-libm-test-out: Regenerated.
16138
16139         [BZ #16361]
16140         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16141         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16142         tiny results.
16143         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16144         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16145         tiny results.
16146         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
16147         mark underflow exceptions as possibly missing for bug 16361.
16148         * math/auto-libm-test-out: Regenerated.
16149
16150 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
16151
16152         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
16153         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
16154         Remove variable.
16155         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
16156         (test-xfail-XOPEN2K8/utmpx.h/conform).
16157
16158         * conform/conformtest.pl ($xerrors): New variable.
16159         (note_error): New function.
16160         (compiletest): New argument $xfail.  Use not_error.
16161         (runtest): Likewise.
16162         (top level): Handle xfail- lines.  Update calls to compiletest and
16163         runtest.  Handle xfail- and optional- in headers listed with
16164         allow-header.
16165         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
16166         (O_EXEC): Likewise.
16167         (O_SEARCH): Likewise.
16168         * conform/data/stropts.h-data (ioctl): Likewise.
16169         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
16170         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
16171         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
16172         (msghdr.msg_controllen): Likewise.
16173         (cmsghdr.cmsg_len): Likewise.
16174         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
16175         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
16176         variable.
16177         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
16178         (test-xfail-XPG4/stropts.h/conform): Likewise.
16179         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
16180         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
16181         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
16182         (test-xfail-UNIX98/stropts.h/conform): Likewise.
16183         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
16184         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
16185         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
16186         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
16187         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
16188         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
16189         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
16190         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
16191         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
16192         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
16193         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
16194         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
16195         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
16196         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
16197         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
16198
16199 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
16200
16201         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
16202         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
16203         definitions for proper unfolding of __MATHDECL_VEC.
16204
16205 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16206
16207         * benchtests/bench-strcoll.c:
16208         Include string.h.
16209         (main): Remove unused variable res.
16210
16211 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16212
16213         * timezone/Makefile (%/UTC %/Universal):
16214         Generate test-result files for UTC and Universal.
16215
16216 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16217
16218         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16219
16220 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
16221
16222         [BZ #16350]
16223         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
16224         for arguments with small absolute value.
16225         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
16226         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
16227         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
16228         (__asinh): Force underflow exception for arguments with small
16229         absolute value.
16230         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
16231         (__asinhf): Force underflow exception for arguments with small
16232         absolute value.
16233         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
16234         (__asinhl): Force underflow exception for arguments with small
16235         absolute value.
16236         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
16237         (__asinhl): Force underflow exception for arguments with small
16238         absolute value.
16239         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
16240         (__asinhl): Force underflow exception for arguments with small
16241         absolute value.
16242         * math/auto-libm-test-in: Do not mark underflow exceptions as
16243         possibly missing for bug 16350.
16244         * math/auto-libm-test-out: Regenerated.
16245
16246         * include/bits/ipc.h: Remove file.
16247         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
16248         variable.
16249         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
16250         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
16251         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
16252         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
16253         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
16254         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
16255         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
16256         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
16257         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
16258
16259         * math/auto-libm-test-in: Remove spurious underflow allowance for
16260         tests of cexp.
16261         * math/auto-libm-test-out: Regenerated.
16262
16263         [BZ #18558]
16264         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
16265         unconditional definition.
16266         (MCAST_BLOCK_SOURCE): Likewise.
16267         (MCAST_UNBLOCK_SOURCE): Likewise.
16268         (MCAST_LEAVE_GROUP): Likewise.
16269         (MCAST_JOIN_SOURCE_GROUP): Likewise.
16270         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
16271         (MCAST_MSFILTER): Likewise.
16272         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
16273         Remove variable.
16274         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
16275         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
16276         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
16277         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
16278         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
16279
16280 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
16281
16282         * NEWS: Mention addition of x86_64 vector sincosf.
16283         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
16284         * math/test-float-vlen4.h: Likewise.
16285         * math/test-float-vlen8.h: Likewise.
16286         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16287         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
16288         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16289         * sysdeps/x86_64/fpu/Versions: New versions added.
16290         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16291         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16292         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16293         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
16294         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
16295         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
16296         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
16297         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
16298         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
16299         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
16300         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
16301         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
16302         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
16303         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
16304         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
16305         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
16306         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
16307         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16308         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16309         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16310         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16311         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16312         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16313         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16314
16315         * NEWS: Mention addition of x86_64 vector sincos.
16316         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
16317         * math/math.h (__MATHDECL_VEC): New macro.
16318         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
16319         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
16320         declaration under condition.
16321         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
16322         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
16323         TEST_VEC_LOOP change.
16324         * math/test-double-vlen4.h: Likewise.
16325         * math/test-double-vlen8.h: Likewise.
16326         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
16327         * math/test-float-vlen4.h: Likewise.
16328         * math/test-float-vlen8.h: Likewise.
16329         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16330         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
16331         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16332         * sysdeps/x86_64/fpu/Versions: New versions added.
16333         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16334         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16335         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16336         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
16337         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
16338         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
16339         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
16340         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
16341         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
16342         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
16343         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
16344         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
16345         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
16346         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
16347         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
16348         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
16349         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
16350         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16351         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16352         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16353         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16354         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16355         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16356         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16357
16358         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16359         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16360         redirections for powf.
16361         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16362         * sysdeps/x86_64/fpu/Versions: New versions added.
16363         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16364         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16365         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16366         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
16367         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
16368         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
16369         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
16370         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
16371         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
16372         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
16373         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
16374         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
16375         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
16376         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
16377         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
16378         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
16379         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
16380         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16381         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16382         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16383         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16384         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16385         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16386         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16387         * math/test-float-vlen16.h: Fixed 2 argument macro.
16388         * math/test-float-vlen4.h: Likewise.
16389         * math/test-float-vlen8.h: Likewise.
16390         * NEWS: Mention addition of x86_64 vector powf.
16391
16392 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
16393
16394         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16395         and redefine.
16396         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16397         and redefine.
16398         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
16399         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16400         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16401
16402         [BZ #18553]
16403         * resource/getpriority.c (getpriority): Rename to __getpriority
16404         and define as weak alias of __getpriority.
16405         * resource/setpriority.c (setpriority): Rename to __setpriority
16406         and define as weak alias of __setpriority.
16407         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
16408         __getpriority and define as weak alias of __getpriority.
16409         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
16410         __setpriority and define as weak alias of __setpriority.
16411         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
16412         strong name.
16413         (setpriority): Use __setpriority as strong name.
16414         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
16415         __getpriority and define as weak alias of __getpriority.
16416         * include/sys/resource.h (__getpriority): Declare.  Use
16417         libc_hidden_proto.
16418         (__setpriority): Likewise.
16419         (getpriority): Don't use libc_hidden_proto.
16420         (setpriority): Likewise.
16421         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
16422         getpriority.  Call __setpriority instead of setpriority.
16423         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
16424         Remove variable.
16425
16426         [BZ #18547]
16427         * misc/getttyent.c (getttynam): Rename to __getttynam and define
16428         as weak alias of __getttynam.  Use prototype function definition.
16429         Call __setttyent, __getttyent and __endttyent instead of
16430         setttyent, getttyent and endttyent.
16431         (getttyent): Rename to __getttyent and define as weak alias of
16432         __getttyent.  Call __setttyent instead of setttyent.  Call
16433         __fgets_unlocked instead of fgets_unlocked.
16434         (setttyent): Rename to __setttyent and define as weak alias of
16435         __setttyent.
16436         (endttyent): Rename to __endttyent and define as weak alias of
16437         __endttyent.
16438         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
16439         (__setttyent): Likewise.
16440         (__endttyent): Likewise.
16441         (getttyent): Don't use libc_hidden_proto.
16442         (setttyent): Likewise.
16443         (endttyent): Likewise.
16444         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16445         __endttyent instead of setttyent, getttyent and endttyent.
16446         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16447         Remove variable.
16448
16449         [BZ #18546]
16450         * socket/recv.c (__recv): Use libc_hidden_def.
16451         * socket/socket.c (__socket): Likewise.
16452         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16453         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16454         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16455         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16456         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16457         libc_hidden_def.
16458         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16459         libc_hidden_weak.
16460         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16461         Use libc_hidden_proto.
16462         (__recv): Likewise.
16463         * socket/Versions (libc): Export __recv and __socket at version
16464         GLIBC_PRIVATE.
16465         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16466         instead of recv.
16467         (init_mq_netlink): Call __socket instead of socket.
16468         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16469         Remove variable.
16470
16471         [BZ #18545]
16472         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16473         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16474         hidden_weak.
16475         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16476         define as alias of __mq_timedsend.  Use hidden_weak.
16477         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16478         __mq_timedsend as strong name.
16479         (mq_timedreceive): Use __mq_timedreceive as strong name.
16480         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16481         (__mq_timedreceive): Likewise.
16482         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16483         __mq_timedreceive instead of mq_timedreceive.
16484         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16485         instead of mq_timedsend.
16486         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16487         Remove variable.
16488
16489         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16490         hidden_def and hidden_weak instead of libc_hidden_def and
16491         libc_hidden_weak.
16492         (top level): Refer to hidden_def in comment.
16493         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16494         macro.  Use it instead of libc_hidden_def.
16495         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16496         specify __GI_* name explicitly.
16497         (mq_timedreceive): Likewise.
16498         (mq_setattr): Likewise.
16499
16500         [BZ #18544]
16501         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16502         __pthread_barrier_init and define as weak alias of
16503         __pthread_barrier_init.
16504         * sysdeps/sparc/nptl/pthread_barrier_init.c
16505         (pthread_barrier_init): Likewise.
16506         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16507         __pthread_barrier_wait and define as weak alias of
16508         __pthread_barrier_wait.
16509         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16510         (pthread_barrier_wait): Likewise.
16511         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16512         (pthread_barrier_wait): Likewise.
16513         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16514         (pthread_barrier_wait): Likewise.
16515         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16516         (pthread_barrier_wait): Likewise.
16517         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16518         __pthread_barrier_wait at version GLIBC_PRIVATE.
16519         * include/pthread.h (__pthread_barrier_init): Declare.
16520         (__pthread_barrier_wait): Likewise.
16521         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16522         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16523         (helper_thread): Likewise.
16524         (init_mq_netlink): Call __pthread_barrier_init instead of
16525         pthread_barrier_init.
16526
16527         [BZ #18542]
16528         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16529         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16530         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16531         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16532         vswscanf.
16533         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16534         Remove variable.
16535
16536         [BZ #18540]
16537         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16538         strong alias of _IO_fflush.  Use libc_hidden_def.
16539         * libio/iofflush_u.c (fflush_unlocked): Rename to
16540         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16541         Use libc_hidden_weak.
16542         * include/stdio.h (__fflush_unlocked): Declare.  Use
16543         libc_hidden_proto.
16544         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16545         fflush_unlocked.
16546         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16547         Remove variable.
16548
16549         [BZ #18539]
16550         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16551         define as weak alias of __addseverity.
16552         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16553         Remove variable.
16554         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16555         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16556         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16557
16558         [BZ #18536]
16559         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16560         (__tfind): Likewise.
16561         (__tdelete): Likewise.
16562         (__twalk): Likewise.
16563         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16564         __twalk to GLIBC_PRIVATE.
16565         * include/search.h (__tsearch): Use libc_hidden_proto.
16566         (__tfind): Likewise.
16567         (__tdelete): Likewise.
16568         (__twalk): Likewise.
16569         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16570         Call __tdelete instead of tdelete.
16571         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16572         tfind.  Call __tsearch instead of tsearch.
16573         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16574         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16575         Remove variable.
16576         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16577
16578         [BZ #18534]
16579         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16580         (dprintf): Define as a weak alias of __dprintf, not a strong
16581         alias.
16582         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16583         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16584         dprintf.
16585         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16586         Remove variable.
16587         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16588         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16589
16590         [BZ #18533]
16591         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16592         not a strong alias.
16593         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16594         Remove variable.
16595
16596         [BZ #18532]
16597         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16598         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16599         (in6addr_loopback): Rename to __in6addr_loopback and define as
16600         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16601         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16602         libc_hidden_proto.
16603         (__in6addr_any): Likewise.
16604         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16605         in6addr_any.
16606         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16607         variable.
16608         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16609
16610 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16611
16612         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16613         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16614         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16615         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16616         redirections for pow.
16617         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16618         * sysdeps/x86_64/fpu/Versions: New versions added.
16619         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16620         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16621         build of SSE, AVX2 and AVX512 IFUNC versions.
16622         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16623         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16624         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16625         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16626         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16627         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16628         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16629         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16630         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16631         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16632         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16633         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16634         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16635         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16636         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16637         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16638         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16639         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16640         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16641         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16642         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16643         * NEWS: Mention addition of x86_64 vector pow.
16644
16645         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16646         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16647         redirections for expf.
16648         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16649         * sysdeps/x86_64/fpu/Versions: New versions added.
16650         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16651         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16652         build of SSE, AVX2 and AVX512 IFUNC versions.
16653         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16654         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16655         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16656         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16657         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16658         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16659         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16660         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16661         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16662         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16663         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16664         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16665         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16666         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16667         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16668         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16669         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16670         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16671         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16672         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16673         * NEWS: Mention addition of x86_64 vector expf.
16674
16675         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16676         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16677         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16678         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16679         redirections for exp.
16680         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16681         * sysdeps/x86_64/fpu/Versions: New versions added.
16682         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16683         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16684         build of SSE, AVX2 and AVX512 IFUNC versions.
16685         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16686         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16687         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16688         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16689         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16690         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16691         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16692         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16693         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16694         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16695         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16696         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16697         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16698         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16699         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16700         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16701         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16702         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16703         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16704         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16705         * NEWS: Mention addition of x86_64 vector exp.
16706
16707         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16708         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16709         redirections for logf.
16710         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16711         * sysdeps/x86_64/fpu/Versions: New versions added.
16712         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16713         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16714         build of SSE, AVX2 and AVX512 IFUNC versions.
16715         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16716         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16717         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16718         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16719         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16720         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16721         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16722         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16723         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16724         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16725         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16726         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16727         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16728         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16729         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16730         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16731         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16732         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16733         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16734         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16735         * NEWS: Mention addition of x86_64 vector logf.
16736
16737         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16738         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16739         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16740         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16741         redirections for log.
16742         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16743         * sysdeps/x86_64/fpu/Versions: New versions added.
16744         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16745         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16746         build of SSE, AVX2 and AVX512 IFUNC versions.
16747         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16748         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16749         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16750         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16751         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16752         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16753         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16754         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16755         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16756         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16757         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16758         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16759         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16760         test.
16761         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16762         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16763         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16764         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16765         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16766         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16767         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16768         * NEWS: Mention addition of x86_64 vector log.
16769
16770 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16771
16772         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16773         cfi_adjust_cfa_offset argument.
16774         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16775         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16776
16777         [BZ #18034]
16778         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16779         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16780         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16781         ordering using ldar.
16782         (_dl_tlsdesc_dynamic): Likewise.
16783         (_dl_tlsdesc_return_lazy): Likewise.
16784         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16785         relaxed atomics instead of volatile and synchronize with release store.
16786         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16787         volatile.
16788         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16789
16790 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16791
16792         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16793         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16794         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16795         * sysdeps/x86_64/fpu/Versions: New versions added.
16796         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16797         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16798         build of SSE, AVX2 and AVX512 IFUNC versions.
16799         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16800         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16801         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16802         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16803         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16804         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16805         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16806         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16807         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16808         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16809         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16810         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16811         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16812         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16813         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16814         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16815         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16816         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16817         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16818         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16819         * NEWS: Mention addition of x86_64 vector sinf.
16820
16821 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16822
16823         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16824         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16825         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16826         Remove variable.
16827         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16828         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16829
16830 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16831
16832         [BZ #18530]
16833         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16834         strong alias of _IO_fputs.  Use libc_hidden_def.
16835         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16836         and define as weak alias of __fputs_unlocked.  Use
16837         libc_hidden_weak.
16838         * include/stdio.h (__fputs_unlocked): Declare.  Use
16839         libc_hidden_proto.
16840         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16841         fputs_unlocked.
16842
16843         [BZ #18529]
16844         * resolv/netdb.h [__USE_POSIX]: Change condition to
16845         [__USE_XOPEN2K].
16846         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16847         not expect.
16848         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16849         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16850         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16851         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16852         [XPG4 || UNIX98] (AI_ALL): Likewise.
16853         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16854         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16855         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16856         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16857         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16858         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16859         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16860         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16861         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16862         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16863         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16864         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16865         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16866         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16867         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16868         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16869         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16870         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16871         [XPG4 || UNIX98] (gai_strerror): Likewise.
16872         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16873         [XPG4 || UNIX98] (getnameinfo): Likewise.
16874
16875         [BZ #18528]
16876         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16877         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16878         __USE_XOPEN2K8].
16879         (getgrent): Likewise.
16880         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16881         expect.
16882         [XPG3 || POSIX2008] (endgrent): Likewise.
16883         [XPG3] (setgrent): Likewise.
16884         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16885         variable.
16886         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16887
16888         [BZ #18527]
16889         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16890         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16891         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16892         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16893         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16894         * include/unistd.h (__getlogin_r): Declare.  Use
16895         libc_hidden_proto.
16896         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16897         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16898         variable.
16899         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16900         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16901         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16902
16903 2015-06-12  Martin Sebor  <msebor@redhat.com>
16904
16905         [BZ #18512]
16906         * Makerules (check-install-supported): New target.
16907         (install): Add check-install-supported as a dependency.
16908         * manual/install.texi (Installing the C Library): Document
16909         that overriding prefix and exec_prefix is not supported.
16910         Mention DESTDIR.
16911         * INSTALL: Regenerate from the above.
16912
16913 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16914
16915         [BZ #18519]
16916         * posix/Versions (libc): Export __libc_pread at version
16917         GLIBC_PRIVATE.
16918         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
16919         instead of pread.
16920         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
16921         variable.
16922
16923         [BZ #18522]
16924         * misc/efgcvt_r.c
16925         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
16926         (cvt_symbol): Use weak_alias instead of strong_alias.
16927         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
16928         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
16929         Remove variable.
16930         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
16931         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
16932
16933         [BZ #18520]
16934         * inet/herrno.c (h_errno): Rename to __h_errno.
16935         (__libc_h_errno): Define as alias of __h_errno not h_errno.
16936         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
16937         to __h_errno instead of h_errno.
16938         * nptl/herrno.c (h_errno): Rename to __h_errno.
16939         (__h_errno_location): Refer to __h_errno not h_errno.
16940         * resolv/Versions (h_errno): Rename to __h_errno.
16941         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
16942         Remove variable.
16943         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
16944
16945 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
16946
16947         * configure.ac: More strict check for AVX512 assembler support.
16948         * configure: Regenerated.
16949
16950         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
16951         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
16952         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16953         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
16954         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16955         * sysdeps/x86_64/fpu/Versions: New versions added.
16956         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16957         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16958         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16959         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
16960         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
16961         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
16962         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
16963         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
16964         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
16965         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
16966         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
16967         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
16968         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
16969         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
16970         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
16971         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
16972         test.
16973         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16974         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16975         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16976         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16977         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16978         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16979         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16980         * NEWS: Mention addition of x86_64 vector sin.
16981
16982 2015-06-11  Florian Weimer  <fweimer@redhat.com>
16983
16984         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
16985         comment.
16986
16987 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
16988
16989         [BZ #18479]
16990         * nptl/pt-interp.c: New file.
16991         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
16992         Add pt-interp.
16993         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
16994         $(common-objpfx)runtime-linker.h.
16995
16996 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
16997
16998         * Makeconfig (+interp): Remove unused variable.
16999         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
17000         only.  Depend on $(common-objpfx)runtime-linker.h instead of
17001         $(elf-objpfx)runtime-linker.h.
17002         ($(elf-objpfx)runtime-linker.h): Rename to
17003         $(common-objpfx)runtime-linker.h and move ...
17004         * Makerules [$(build-shared) = yes]: ... here.
17005         * elf/interp.c: Include <runtime-linker.h> instead of
17006         <elf/runtime-linker.h>.
17007
17008 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17009
17010         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
17011         (__gettimeofday_syscall): Remove vsyscall fallback.
17012         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
17013         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
17014         Add syscall fallback function.
17015         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
17016         if vDSO is not present.
17017         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
17018         fallback function.
17019         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
17020         present.
17021         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
17022         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17023
17024 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
17025
17026         [BZ #18497]
17027         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
17028         of wcscmp.
17029         (wcscmp): Define as weak alias of WCSCMP.
17030         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
17031         wcscoll.
17032         (USE_HIDDEN_DEF): Define.
17033         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
17034         __wcscoll.  Don't use libc_hidden_weak.
17035         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
17036         wcscmp.
17037         * sysdeps/i386/i686/multiarch/wcscmp-c.c
17038         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
17039         __GI_wcscmp.
17040         (weak_alias): Undefine and redefine.
17041         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
17042         __wcscmp and define as weak alias of __wcscmp.
17043         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
17044         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
17045         (__wcscoll): Likewise.
17046         (wcscmp): Don't use libc_hidden_proto.
17047         (wcscoll): Likewise.
17048         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
17049         wcscoll.
17050         * posix/regexec.c (check_node_accept_bytes): Likewise.
17051         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
17052         variable.
17053         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
17054         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
17055
17056         [BZ #18507]
17057         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
17058         __fstatvfs and define as weak alias of __fstatvfs.  Use
17059         libc_hidden_weak.
17060         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
17061         and define as weak alias of __statvfs.  Use libc_hidden_weak.
17062         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
17063         Define as alias of __fstatvfs, not fstatvfs.
17064         (fstatvfs64): Likewise.
17065         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
17066         Define as alias of __statvfs, not statvfs.
17067         (statvfs64): Likewise.
17068         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
17069         Remove variable.
17070
17071 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17072
17073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17074         (HAVE_GETCPU_VSYSCALL): Define.
17075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17076         (HAVE_GETCPU_VSYSCALL): Likewise.
17077         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
17078         * sysdeps/unix/sysv/linux/sched_getcpu.c
17079         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
17080         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
17081         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
17082         prototype.
17083         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17084         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
17085         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
17086         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
17087         Define.
17088         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
17089         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
17090         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
17091         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
17092
17093 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
17094
17095         * sysdeps/x86_64/fpu/Makefile: New file.
17096         * sysdeps/x86_64/fpu/Versions: New file.
17097         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
17098         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
17099         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
17100         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
17101         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
17102         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
17103         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
17104         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
17105         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
17106         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
17107         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
17108         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
17109         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
17110         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17111         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17112         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
17113         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
17114         * sysdeps/x86_64/configure.ac: Options for libmvec build.
17115         * sysdeps/x86_64/configure: Regenerated.
17116         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
17117         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
17118         * manual/install.texi (Configuring and compiling): Document
17119         --disable-mathvec.
17120         * INSTALL: Regenerated.
17121         * NEWS: Mention addition of libmvec and x86_64 vector cos.
17122
17123         * math/Makefile: Added rules for vector tests.
17124         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
17125         declaration under condition.
17126         * math/test-double-vlen2.h: New file.
17127         * math/test-double-vlen4.h: New file.
17128         * math/test-double-vlen8.h: New file.
17129         * math/test-vec-loop.h: Added initialization macro.
17130         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
17131         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
17132         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
17133         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
17134         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
17135         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
17136         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
17137         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
17138         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
17139         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
17140         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
17141
17142         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17143         * sysdeps/x86_64/fpu/Versions: New versions added.
17144         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
17145         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
17146         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
17147         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
17148         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
17149         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
17150         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
17151         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
17152         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
17153         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
17154         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
17155         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
17156         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
17157         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17158         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17159         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17160         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
17161         * NEWS: Mention addition of x86_64 vector cosf.
17162
17163         * math/Makefile: Added CFLAGS for new tests.
17164         * math/test-float-vlen16.h: New file.
17165         * math/test-float-vlen4.h: New file.
17166         * math/test-float-vlen8.h: New file.
17167         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
17168         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
17169         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17170         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
17171         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
17172         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
17173         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
17174         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
17175         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
17176         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
17177         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
17178
17179 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
17180
17181         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
17182         * locale/programs/ld-ctype.c: Likewise.
17183
17184 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
17185
17186         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
17187         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
17188         bit_ZMM16_31_state): New macro.
17189         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17190         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
17191
17192 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
17193
17194         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
17195
17196 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
17197
17198         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
17199
17200 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
17201
17202         [BZ #18498]
17203         * libio/memstream.c (open_memstream): Rename to __open_memstream
17204         and define as weak alias of __open_memstream.
17205         * include/stdio.h (__open_memstream): Declare.  Use
17206         libc_hidden_proto.
17207         (open_memstream): Don't use libc_hidden_proto.
17208         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
17209         open_memstream.
17210         * posix/getopt.c (_getopt_internal_r): Likewise.
17211         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
17212         variable.
17213         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
17214         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
17215         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
17216
17217         [BZ #18496]
17218         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
17219         instead of wcrtomb.
17220
17221         [BZ #18483]
17222         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
17223         [__USE_XOPEN2K8].  Remove redundant #endif.
17224         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
17225         Remove redundant #if.
17226         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
17227         Remove variable.
17228         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
17229         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
17230
17231         [BZ #18495]
17232         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
17233         (__iswlower): Likewise.
17234         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
17235         (__iswlower): Likewise.
17236         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
17237         instead of towlower.
17238         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
17239         instead of iswlower.  Call __towupper instead of towupper.
17240         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
17241         instead of iswalnum.
17242
17243 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17244
17245         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
17246         errors to stderr.
17247
17248 2015-06-05  Florian Weimer  <fweimer@redhat.com>
17249
17250         [BZ #15661]
17251         [BZ #17322]
17252         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
17253         Check for overflow properly.  Check for O_APPEND.  Ignore large
17254         file system block sizes.  Add comments about problems.
17255         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
17256         * manual/filesys.texi (Storage Allocation): New node.
17257
17258 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17259
17260         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
17261         cancellable syscalls.
17262         (SYS_ify): Add guard to no redefine it.
17263         (INLINE_SYSCALL): Likewise.
17264         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
17265         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
17266         SYSCALL_CANCEL instead.
17267         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
17268         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
17269         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
17270         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
17271         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
17272         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
17273         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
17274         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
17275         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
17276         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
17277         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
17278         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
17279         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
17280         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
17281         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
17282         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
17283         Likewise.
17284         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
17285         (__libc_pread64): Likewise.
17286         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
17287         (__libc_preadv): Likewise.
17288         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
17289         (__libc_readv64): Likewise.
17290         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
17291         (__libc_pwrite): Likewise.
17292         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
17293         (__libc_pwrite64): Likewise.
17294         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
17295         (__libc_pwritev): Likewise.
17296         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
17297         (__libc_pwritev64): Likewise.
17298         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
17299         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
17300         (sync_file_range): Likewise.
17301         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
17302         Likewise.
17303         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
17304         Likewise.
17305         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
17306         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
17307         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
17308         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
17309         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
17310         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
17311         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
17312         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
17313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
17314         Likewise.
17315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
17316         (__libc_read64): Likewise.
17317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
17318         Likewise.
17319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
17320         Likewise.
17321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
17322         Likewise.
17323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
17324         Likewise.
17325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
17326         (__libc_pread64): Likewise.
17327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
17328         Likewise.
17329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
17330         (__libc_pwrite64): Likewise.
17331         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
17332         (sync_file_range): Likewise.
17333         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
17334         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
17335         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
17336         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
17337         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
17338         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
17339         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
17340         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
17341         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
17342         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
17343         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
17344         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
17345         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
17346         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
17347         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
17348         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
17349         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
17350         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17351         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
17352         Likewise.
17353         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
17354         Likewise.
17355         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
17356         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
17357         Likewise.
17358         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
17359         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
17360         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
17361         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
17362         Likewise.
17363         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
17364         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
17365         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
17366         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
17367         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
17368
17369 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
17370
17371         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
17372         Include dl-vdso.
17373         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
17374         Use VDSO routines for gettimeofday, clock_gettime if
17375         available.
17376         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
17377         Declare VDSO symbols.
17378         * sysdeps/unix/sysv/linux/arm/sysdep.h:
17379         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
17380         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17381         * sysdeps/unix/sysv/linux/arm/Versions: Add
17382         __vdso_clock_gettime.
17383
17384 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17385
17386         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
17387         be an inline implementation regardless of library is built within.
17388         (open_not_cancel_2): Likewise.
17389         (__read_nocancel): Likewise.
17390         (__write_nocancel): Likewise.
17391         (openat_not_cancel): Likewise.
17392         (openat_not_cancel_3): Likewise.
17393         (openat64_not_cancel): Likewise.
17394         (openat64_not_cancel_3): Likewise.
17395         (__close_nocancel): Likewise.
17396         (pause_not_cancel): Likewise.
17397         (nanosleep_not_cancel): Likewise.
17398         (sigsuspend_not_cancel): Likewise.
17399
17400 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17401
17402         [BZ #14958]
17403         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
17404         wake-up.
17405         (__pthread_rwlock_rdlock_slow): Likewise.
17406         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
17407         Likewise.
17408         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
17409         Likewise.
17410         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
17411         * nptl/tst-rwlock16.c: New file.
17412         * nptl/Makefile (tests): Add new test.
17413
17414 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17415
17416         [BZ #18324]
17417         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
17418         missing wake-up of readers.
17419         * nptl/tst-rwlock15.c: New file.
17420         * nptl/Makefile (tests): Add new test.
17421
17422 2015-06-03  Roland McGrath  <roland@hack.frob.com>
17423
17424         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
17425         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
17426         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
17427         and __nacl_supply_interface_rtld.
17428         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
17429         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
17430         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
17431         Add __nacl_supply_interface_rtld.
17432         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
17433
17434 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17435
17436         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
17437         isfinite.
17438         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17439         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
17440
17441 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17442
17443         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17444         __signbit* with standard C99 macros.
17445         * math/e_exp10l.c: Likewise.
17446         * math/e_exp2l.c: Likewise.
17447         * math/e_scalb.c: Likewise.
17448         * math/e_scalbf.c: Likewise.
17449         * math/e_scalbl.c: Likewise.
17450         * math/s_ldexp.c: Likewise.
17451         * math/s_ldexpf.c: Likewise.
17452         * math/s_ldexpl.c: Likewise.
17453         * math/w_atan2.c: Likewise.
17454         * math/w_atan2f.c: Likewise.
17455         * math/w_atan2l.c: Likewise.
17456         * math/w_cosh.c: Likewise.
17457         * math/w_coshf.c: Likewise.
17458         * math/w_coshl.c: Likewise.
17459         * math/w_exp10.c: Likewise.
17460         * math/w_exp10f.c: Likewise.
17461         * math/w_exp10l.c: Likewise.
17462         * math/w_exp2.c: Likewise.
17463         * math/w_exp2f.c: Likewise.
17464         * math/w_exp2l.c: Likewise.
17465         * math/w_fmod.c: Likewise.
17466         * math/w_fmodf.c: Likewise.
17467         * math/w_fmodl.c: Likewise.
17468         * math/w_hypot.c: Likewise.
17469         * math/w_hypotf.c: Likewise.
17470         * math/w_hypotl.c: Likewise.
17471         * math/w_jnl.c: Likewise.
17472         * math/w_lgamma.c: Likewise.
17473         * math/w_lgamma_r.c: Likewise.
17474         * math/w_lgammaf.c: Likewise.
17475         * math/w_lgammaf_r.c: Likewise.
17476         * math/w_lgammal.c: Likewise.
17477         * math/w_lgammal_r.c: Likewise.
17478         * math/w_pow.c: Likewise.
17479         * math/w_powf.c: Likewise.
17480         * math/w_powl.c: Likewise.
17481         * math/w_remainder.c: Likewise.
17482         * math/w_remainderf.c: Likewise.
17483         * math/w_remainderl.c: Likewise.
17484         * math/w_scalb.c: Likewise.
17485         * math/w_scalbf.c: Likewise.
17486         * math/w_scalbl.c: Likewise.
17487         * math/w_scalbln.c: Likewise.
17488         * math/w_scalblnf.c: Likewise.
17489         * math/w_scalblnl.c: Likewise.
17490         * math/w_sinh.c: Likewise.
17491         * math/w_sinhf.c: Likewise.
17492         * math/w_sinhl.c: Likewise.
17493         * math/w_tgamma.c: Likewise.
17494         * math/w_tgammaf.c: Likewise.
17495         * math/w_tgammal.c: Likewise.
17496         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17497         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17498         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17499         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17500         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17501         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17502         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17503         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17504         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17505         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17506         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17507         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17508         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17509         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17510         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17511         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17512         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17513         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17514         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17515         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17516         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17517         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17518         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17519         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17520         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17521         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17522         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17523         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17524         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17525         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17526         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17527         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17528         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17529         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17530         * stdio-common/printf_fp.c: Likewise.
17531         * stdio-common/printf_fphex.c: Likewise.
17532         * stdio-common/printf_size.c: Likewise.
17533
17534 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17535
17536         [BZ #18470]
17537         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17538         strnlen.
17539         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17540         Remove variable.
17541         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17542         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17543         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17544         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17545         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17546         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17547         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17548         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17549         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17550         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17551
17552         [BZ #18468]
17553         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17554         weak alias of __wmemchr.  Use libc_hidden_weak.
17555         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17556         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17557         instead of wmemchr.
17558
17559 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17560
17561         [BZ #18383]
17562         * elf/tst-tlsalign-extern.c: New file.
17563         * elf/tst-tlsalign-extern-static.c: New file.
17564         * elf/tst-tlsalign-vars.c: New file.
17565         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17566         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17567         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17568         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17569         (test-xfail-tst-tlsalign-extern-static): New variable.
17570
17571 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17572
17573         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17574         Use variable name _sc_err instead of err.
17575         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17576         instead of ret.
17577         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17578         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17579         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17580         (INLINE_SYSCALL): Likewise.
17581
17582         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17583         * include/string.h (__strnlen): Use libc_hidden_proto.
17584         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17585         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17586         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17587         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17588         (libc_hidden_def): Undefine and redefine.
17589         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17590         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17591         __GI_strnlen.
17592         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17593         libc_hidden_def.
17594         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17595
17596         [BZ #18469]
17597         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17598         weak alias of __towlower.  Use libc_hidden_weak.
17599         (towupper): Rename to __towupper and define as weak alias of
17600         __towupper.  Use libc_hidden_weak.
17601         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17602         (__towupper): Likewise.
17603         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17604         __towlower instead of towlower.
17605
17606 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17607
17608         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17609         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17610
17611 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17612
17613         * sysdeps/aarch64/libm-test-ulps: Update.
17614
17615 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17616
17617         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17618         Define.
17619         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17620         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17621         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17622         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17623         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17624         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17625         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17626
17627 2015-06-01  Martin Sebor  <msebor@redhat.com>
17628
17629         [BZ #18116]
17630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17631         (__setcontext): Use extended four-operand version of mtsf whenever
17632         possible.
17633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17634         (__novec_swapcontext): Likewise.
17635
17636 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17637
17638         * benchtests/scripts/compare_bench.py: New file.
17639         * benchtests/scripts/import_bench.py (mean): New function.
17640         (split_list): Likewise.
17641         (do_for_all_timings): Likewise.
17642         (compress_timings): Likewise.
17643
17644         * benchtests/scripts/import_bench.py: New file.
17645         * benchtests/scripts/validate_benchout.py: Import import_bench
17646         instead of jsonschema.
17647         (validate_bench): Remove function.
17648         (main): Use import_bench.
17649
17650 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17651
17652         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17653         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17654
17655 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17656
17657         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17658
17659 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17660
17661         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17662         set THREAD_SELF->tid to a magic value and futex-wake it.
17663         Pass its address to the thread_exit system call.
17664         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17665         bit is clear.
17666         * sysdeps/nacl/lowlevellock.h: New file.
17667         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17668
17669         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17670         Add TIMEOUT to current time, don't subtract it.
17671
17672 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17673
17674         [BZ #2981]
17675         [BZ #18422]
17676         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17677         ($(objpfx)tst-audit2.out): Also depend on
17678         $(objpfx)tst-auditmod9b.so.
17679         * elf/tst-audit2.c: Include <dlfcn.h>.
17680         (calloc_called): New.
17681         (calloc): Allow to be called more than once.
17682         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17683
17684 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17685
17686         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17687         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17688
17689 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17690
17691         * stdlib/monetary.h: Fix comment.
17692
17693 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17694
17695         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17696         Avoid using variables in #defines that might cause shadowing.
17697         (INTERNAL_VSYSCALL_CALL): Likewise.
17698
17699 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17700
17701         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17702
17703         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17704         * nptl/lll_timedlock_wait.c: ... to this new file.
17705         * nptl/Makefile (libpthread-routines): Add it.
17706         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17707         * nptl/lll_timedwait_tid.c: ... to this new file.
17708         * nptl/Makefile (libpthread-routines): Add it.
17709         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17710         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17711         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17712         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17713         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17714         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17715         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17716         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17717         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17718         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17719
17720 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17721
17722         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17723         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17724         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17725         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17726         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17727         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17728         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17729         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17730         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17731         * sysdeps/unix/sysv/linux/tile/sysdep.h
17732         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17733         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17734         using vDSO syscall macro.
17735
17736 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17737
17738         [BZ #17293]
17739         * uk_UA: Fix sorting order for Ukrainian locale
17740
17741 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17742
17743         * stdlib/monetary.h: Fix comment.
17744
17745 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17746
17747         [BZ #18234]
17748         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17749         st_mtim and st_ctim members.
17750         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17751         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17752         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17753         (struct stat64): Likewise.
17754         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17755         (struct stat64): Likewise.
17756         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17757         (struct stat64): Likewise.
17758
17759 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17760
17761         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17762         Define and include sysdep-vdso.h.
17763         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17764         Likewise.
17765         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17766         Likewise.
17767         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17768         Define with VDSO_SYMBOL and use PTR_MANGLE.
17769         (__vdso_clock_gettime): Likewise.
17770         (__vdso_clock_getres): Likewise.
17771         (_libc_vdso_platform_setup): Likewise.
17772         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17773         Likewise.
17774         (_libc_vdso_platform_setup): Likewise.
17775         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17776         Likewise.
17777         (__vdso_clock_gettime): Likewise.
17778         (__vdso_clock_getres): Likewise.
17779         (__vdso_get_tbfreq): Likewise.
17780         (__vdso_getcpu): Likewise.
17781         (__vdso_time): Likewise.
17782         (__vdso_sigtramp_rt64): Likewise.
17783         (__vdso_signtramp32): Likewise.
17784         (__vdso_sigtramp_rt32): Likewise.
17785         (_libc_vdso_platform_setup): Likewise.
17786         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17787         Likewise.
17788         (__vdso_clock_gettime): Likewise.
17789         (__vdso_clock_getres): Likewise.
17790         (_libc_vdso_platform_setup): Likewise.
17791         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17792         Likewise.
17793         (__vdso_clock_gettime): Likewise.
17794         (_libc_vdso_platform_setup): Likewise.
17795         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17796         Likewise.
17797         (__vdso_getcpu): Likewise.
17798         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17799         Use VDSO_SYMBOL macro to define.
17800         (__vdso_clock_gettime): Likewise.
17801         (__vdso_clock_getres): Likewise.
17802         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17803         Likewise.
17804         (__vdso_clock_gettime): Likewise.
17805         (__vdso_clock_getres): Likewise.
17806         (__vdso_get_tbfreq): Likewise.
17807         (__vdso_getcpu): Likewise.
17808         (__vdso_time): Likewise.
17809         (__vdso_sigtramp_rt64): Likewise.
17810         (__vdso_signtramp32): Likewise.
17811         (__vdso_sigtramp_rt32): Likewise.
17812         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17813         Likewise.
17814         (__vdso_clock_gettime): Likewise.
17815         (__vdso_clock_getres): Likewise.
17816         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17817         Likewise.
17818         (__vdso_clock_gettime): Likewise.
17819         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17820         Likewise.
17821         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17822         macro.
17823         (INTERNAL_VSYSCALL): Likewise.
17824         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17825         Remove macro.
17826         (INTERNAL_VSYSCALL): Likewise.
17827         (INTERNAL_VSYSCALL_NCS): Likewise.
17828         (INTERNAL_VSYSCALL_CALL): New macro.
17829         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17830         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17831         Likewise.
17832         (INTERNAL_VSYSCALL): Likewise.
17833         (INTERNAL_VSYSCALL_NCS): Likewise.
17834         (INTERNAL_VSYSCALL_CALL): New macro.
17835         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17837         (INLINE_VSYSCALL): Remove macro.
17838         (INTERNAL_VSYSCALL): Remove macro.
17839         (INTERNAL_VSYSCALL_NCS): Remove macro.
17840         (INTERNAL_VSYSCALL_CALL): New macro.
17841         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17842         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17843         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17844         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17845         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17847         (INLINE_VSYSCALL): Remove macro.
17848         (INTERNAL_VSYSCALL): Likewise.
17849         (INTERNAL_VSYSCALL_NCS): Likewise.
17850         (INTERNAL_VSYSCALL_CALL): New macro.
17851         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17852         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17853         PTR_DEMANGLE on vDSO pointer.
17854         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17855         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17856         macro.
17857         (INTERNAL_SYSCALL): Likewise.
17858         (INTERNAL_VSYSCALL_NCS): Remove macro.
17859         (INTERNAL_VSYSCALL_CALL): New macro.
17860         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17861         Remove macro.
17862         (INTERNAL_VSYSCALL): Likewise.
17863         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17864         sysdep-vdso.h instead of libc-vdso.h.
17865         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17866         definition.
17867         (INLINE_VSYSCALL): Likewise.
17868         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17869         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17870         definition.
17871         (INLINE_VSYSCALL): Likewise.
17872         (INTERNAL_VSYSCALL): Likewise.
17873         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17874         * sysdeps/unix/sysv/linux/timespec_get.c
17875         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17876         (timespec_get): Use ANSI prototype.
17877         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17878         and definition for Linux.
17879
17880 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17881
17882         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17883         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17884
17885 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17886
17887         [BZ #2981]
17888         [BZ #18410]
17889         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17890         for missing DT_PLTRELSZ.
17891
17892 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17893
17894         Remove obsolete aliases that broke 'locale -a'
17895         [BZ #18412]
17896         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17897         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17898         breaking some applications that use 'locale -a' output.
17899         Change the encoding of this file from Latin-1 to ASCII to avoid
17900         other potential problems with people grepping this file.
17901
17902 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17903
17904         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
17905         -fasynchronous-unwind-tables.
17906         (CFLAGS-sendto.c): Likewise.
17907         (CFLAGS-sendmsg.c): Likewise.
17908         (CFLAGS-connect.c): Likewise.
17909         (CFLAGS-recvmsg.c): Likewise.
17910         (CFLAGS-recvfrom.c): Likewise.
17911         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
17912         (SOCKETCALL): New macro: non-cancellable socketcall.
17913         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
17914         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
17915         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
17916         * sysdeps/unix/sysv/linux/accept.c: New file.
17917         * sysdeps/unix/sysv/linux/bind.c: Likewise.
17918         * sysdeps/unix/sysv/linux/connect.c: Likewise.
17919         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
17920         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
17921         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
17922         * sysdeps/unix/sysv/linux/listen.c: Likewise.
17923         * sysdeps/unix/sysv/linux/recv.c: Likewise.
17924         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
17925         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17926         * sysdeps/unix/sysv/linux/send.c: Likewise.
17927         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17928         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
17929         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
17930         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
17931         * sysdeps/unix/sysv/linux/socket.c: Likewise.
17932         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
17933         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
17934         prototype.
17935         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
17936         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17937         instead of __internal_xxx function.
17938         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
17939         prototype.
17940         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
17941         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17942         instead of __internal_xxx function.
17943         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
17944         prototype.
17945         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
17946         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17947         instead of __internal_xxx function.
17948         * sysdeps/unix/sysv/linux/accept.S: Remove file.
17949         * sysdeps/unix/sysv/linux/bind.S: Likewise.
17950         * sysdeps/unix/sysv/linux/connect.S: Likewise.
17951         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
17952         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
17953         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
17954         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
17955         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
17956         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
17957         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
17958         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
17959         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17960         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
17961         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
17962         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
17963         * sysdeps/unix/sysv/linux/listen.S: Likewise.
17964         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
17965         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
17966         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
17967         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
17968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
17969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
17970         * sysdeps/unix/sysv/linux/recv.S: Likewise.
17971         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
17972         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
17973         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
17974         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17975         * sysdeps/unix/sysv/linux/send.S: Likewise.
17976         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
17977         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
17978         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
17979         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
17980         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
17981         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
17982         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
17983         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
17984         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
17985         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
17986         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
17987         socketcall is implemented in GLIBC.
17988
17989 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
17990
17991         * soft-fp/fmadf4.c: Include <libc-internal.h>.
17992         (__fma): Ignore uninitialized warnings around packing.
17993         * soft-fp/fmasf4.c: Include <libc-internal.h>.
17994         (__fmaf): Ignore uninitialized warnings around packing.
17995         * soft-fp/fmatf4.c: Include <libc-internal.h>.
17996         (__fmal): Ignore uninitialized warnings around packing.
17997
17998         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
17999         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18000         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
18001         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18002
18003         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
18004         switch statement into default case.
18005         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
18006
18007         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
18008         a conditional in forcing "inexact".
18009         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
18010         Likewise.
18011
18012 2015-05-22  Roland McGrath  <roland@hack.frob.com>
18013
18014         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
18015         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
18016         for each INTERNAL_SYSCALL use.
18017
18018 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18019
18020         [BZ #438]
18021         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
18022         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
18023         variable.
18024
18025         [BZ #18444]
18026         * string/basename.c (basename): Rename to __basename and define as
18027         weak alias of __basename.  Use libc_hidden_weak.
18028         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
18029         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
18030         __basename instead of basename.
18031         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
18032         Remove variable.
18033         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
18034
18035 2015-05-18  Florian Weimer  <fweimer@redhat.com>
18036
18037         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
18038         (_IO_JUMPS_FILE_plus): New.
18039         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
18040         _IO_CAST_FIELD_ACCESS.
18041         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
18042         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
18043         * libio/freopen.c (freopen): Likewise.
18044         * libio/freopen64.c (freopen64): Likewise.
18045         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
18046         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
18047         * libio/iofwide.c (_IO_fwide): Likewise.
18048         * libio/memstream.c (open_memstream): Likewise.
18049         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18050         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
18051         * libio/oldiopopen.c (_IO_old_popen): Likewise.
18052
18053 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
18054
18055         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
18056         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
18057         NADJ.
18058         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
18059         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
18060         NADJ.
18061         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
18062         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
18063         NADJ.
18064
18065         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
18066         (p == 4) case.
18067
18068         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
18069         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
18070         Remove variable.
18071         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
18072         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
18073         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
18074
18075 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18076
18077         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
18078         Adjust jump table label generation macros.
18079
18080 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18081
18082         * stdio-common/vfprintf.c (vfprintf): Move local variables
18083         args_malloced, specs, specs_malloced, and the code after
18084         do_positional to the printf_positional function.
18085         (printf_positional): New function.
18086
18087 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18088
18089         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
18090         function.
18091         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
18092         STEP4_TABLE, process_arg): Move macro definitions
18093         out of the vfprintf function.  (Cosmetic change only.)
18094
18095 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
18096
18097         * benchtests/Makefile (stdio-common-bench): Define.
18098         (benchset): Add stdio-common-bench.
18099         * sprintf-inputs: New file.
18100         * sprintf-source.c: New file.
18101
18102 2015-05-21  Andreas Schwab  <schwab@suse.de>
18103
18104         [BZ #13028]
18105         [BZ #17053]
18106         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
18107         of struct __res_state.
18108         * resolv/res_send.c (__libc_res_nsend): Likewise.
18109         (get_nsaddr): New function.
18110         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
18111         statp directly.
18112
18113 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
18114
18115         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
18116         -D_POSIX_C_SOURCE=199506L.
18117
18118         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
18119
18120         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
18121         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
18122         Do not mention otherwise.
18123         [POSIX] (_XOPEN_VERSION): Do not expect.
18124         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
18125         [POSIX] (_POSIX2_C_BIND): Likewise.
18126         [POSIX] (_POSIX2_VERSION): Likewise.
18127         [POSIX] (_XOPEN_XPG2): Likewise.
18128         [POSIX] (_XOPEN_XPG3): Likewise.
18129         [POSIX] (_XOPEN_XPG4): Likewise.
18130         [POSIX] (_XOPEN_UNIX): Likewise.
18131         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
18132         [POSIX] (_POSIX_BARRIERS): Likewise.
18133         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
18134         [POSIX] (_POSIX_CPUTIME): Likewise.
18135         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
18136         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
18137         [POSIX] (_POSIX_SHELL): Likewise.
18138         [POSIX] (_POSIX_SPAWN): Likewise.
18139         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
18140         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
18141         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
18142         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
18143         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
18144         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
18145         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
18146         [POSIX] (_XBS5_LP64_OFF64): Likewise.
18147         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
18148         [POSIX] (_POSIX_TIMEOUTS): Likewise.
18149         [POSIX] (_POSIX2_PBS): Likewise.
18150         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
18151         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
18152         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
18153         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
18154         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
18155         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
18156         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
18157         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
18158         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
18159         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
18160         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
18161         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
18162         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
18163         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
18164         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
18165         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
18166         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
18167         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
18168         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
18169         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
18170         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
18171         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
18172         [POSIX] (_SC_2_C_BIND): Likewise.
18173         [POSIX] (_SC_2_C_VERSION): Likewise.
18174         [POSIX] (_SC_2_PBS): Likewise.
18175         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
18176         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
18177         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
18178         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
18179         [POSIX] (_SC_2_PBS_TRACK): Likewise.
18180         [POSIX] (_SC_ATEXIT_MAX): Likewise.
18181         [POSIX] (_SC_BARRIERS): Likewise.
18182         [POSIX] (_SC_BASE): Likewise.
18183         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
18184         [POSIX] (_SC_DEVICE_IO): Likewise.
18185         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
18186         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
18187         [POSIX] (_SC_FD_MGMT): Likewise.
18188         [POSIX] (_SC_FIFO): Likewise.
18189         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
18190         [POSIX] (_SC_FILE_LOCKING): Likewise.
18191         [POSIX] (_SC_FILE_SYSTEM): Likewise.
18192         [POSIX] (_SC_IOV_MAX): Likewise.
18193         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
18194         [POSIX] (_SC_NETWORKING): Likewise.
18195         [POSIX] (_SC_PAGE_SIZE): Likewise.
18196         [POSIX] (_SC_PASS_MAX): Likewise.
18197         [POSIX] (_SC_PIPE): Likewise.
18198         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
18199         [POSIX] (_SC_REGEXP): Likewise.
18200         [POSIX] (_SC_SHELL): Likewise.
18201         [POSIX] (_SC_SIGNALS): Likewise.
18202         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
18203         [POSIX] (_SC_SPIN_LOCKS): Likewise.
18204         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
18205         [POSIX] (_SC_USER_GROUPS): Likewise.
18206         [POSIX] (_SC_USER_GROUPS_R): Likewise.
18207         [POSIX] (_SC_STREAMS): Likewise.
18208         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
18209         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
18210         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
18211         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
18212         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
18213         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
18214         [POSIX] (_PC_FILESIZEBITS): Likewise.
18215         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
18216         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
18217         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
18218         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
18219         [POSIX] (uid_t): Likewise.
18220         [POSIX] (gid_t): Likewise.
18221         [POSIX] (off_t): Likewise.
18222         [POSIX] (pid_t): Likewise.
18223         [POSIX] (cuserid): Allow.
18224         (_SC_2_CHAR_TERM): Require constant.
18225         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
18226         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
18227         variable.
18228
18229 2015-05-20  Roland McGrath  <roland@hack.frob.com>
18230
18231         * sysdeps/nacl/pthread-pids.h: New file.
18232         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
18233         (create_thread): Use __nacl_get_tid to initialize PD->tid.
18234
18235         * nptl/pthread-pids.h: New file.
18236         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
18237         * nptl/nptl-init.c: Include <pthread-pids.h>.
18238         (__pthread_initialize_minimal_internal):
18239         Call __pthread_initialize_pids instead of set_tid_address syscall.
18240
18241         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
18242         * sysdeps/posix/usleep.c: ... here.
18243
18244 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18245
18246         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
18247         call_pselect6 object.
18248         [$(subdir) = io]: Remove call_sync_file_range object.
18249         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
18250         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
18251         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
18252         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
18253
18254 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
18255
18256         * math/s_cproj.c: Add include "math_private.h".
18257         * math/s_cprojf.c: Likewise.
18258         * math/s_cprojl.c: Likewise.
18259
18260 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
18261
18262         [BZ #18244]
18263         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
18264         high mantissa bit when testing whether P is a NaN.
18265         * math/libm-test.inc (remainder_test_data): Add more tests.
18266         (remquo_test_data): Likewise.
18267
18268         [BZ #18049]
18269         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
18270         below -32, return the argument, with underflow if subnormal.
18271         * math/auto-libm-test-in: Add more tests of atanh.
18272         * math/auto-libm-test-out: Regenerated.
18273
18274 2015-05-19  Roland McGrath  <roland@hack.frob.com>
18275
18276         [BZ #18434]
18277         * nptl/tst-sem15.c: New file.
18278         * nptl/Makefile (tests): Add it.
18279         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
18280         s/<</>>/ to fix typo in EOVERFLOW check.
18281         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
18282
18283 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18284
18285         * manual/strings.texi (envz_remove): Fix typo in safety
18286         annotations.
18287
18288 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18289             Steve Ellcey  <sellcey@imgtec.com>
18290
18291         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
18292         in order to avoid strict alias warnings.
18293         (iruserok_af): Ditto for ra.
18294
18295 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
18296
18297         [BZ #17581]
18298         * malloc/hooks.c
18299         (magicbyte): Convert to a function and avoid returning 0x01.
18300         (mem2mem_check): Avoid using a length byte equal to the magic byte.
18301         (mem2chunk_check): Fix unsigned comparisons to zero.
18302         Hoist defs of sz and magic.
18303
18304 2015-05-19  Richard Henderson  <rth@redhat.com>
18305
18306         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
18307
18308         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18309
18310 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18311
18312         [BZ #16159]
18313         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
18314         * malloc/arena.c (arena_lock): Check if arena is corrupt.
18315         (reused_arena): Find a non-corrupt arena.
18316         (heap_trim): Pass arena to unlink.
18317         * malloc/hooks.c (malloc_check_get_size): Pass arena to
18318         malloc_printerr.
18319         (top_check): Likewise.
18320         (free_check): Likewise.
18321         (realloc_check): Likewise.
18322         * malloc/malloc.c (malloc_printerr): Add arena argument.
18323         (unlink): Likewise.
18324         (munmap_chunk): Adjust.
18325         (ARENA_CORRUPTION_BIT): New macro.
18326         (arena_is_corrupt): Likewise.
18327         (set_arena_corrupt): Likewise.
18328         (sysmalloc): Use mmap if there are no usable arenas.
18329         (_int_malloc): Likewise.
18330         (__libc_malloc): Don't fail if arena_get returns NULL.
18331         (_mid_memalign): Likewise.
18332         (__libc_calloc): Likewise.
18333         (__libc_realloc): Adjust for additional argument to
18334         malloc_printerr.
18335         (_int_free): Likewise.
18336         (malloc_consolidate): Likewise.
18337         (_int_realloc): Likewise.
18338         (_int_memalign): Don't touch corrupt arenas.
18339         * malloc/tst-malloc-backtrace.c: New test case.
18340
18341         * Makefile (summarize-tests): Fix return value on success.
18342
18343         * manual/string.texi (Envz Functions): Add envz_remove.
18344
18345 2015-05-18  Roland McGrath  <roland@hack.frob.com>
18346
18347         * sysdeps/posix/opendir.c: Include <stdbool.h>.
18348         (invalid_name): New function, broken out of ...
18349         (__opendirat): ... here.  Call it.
18350         (need_isdir_precheck): New function, broken out of ...
18351         (__opendirat): ... here.  Call it.
18352         Use __fxstatat64, not __xstatat64.
18353         (opendir_oflags): New function, broken out of ...
18354         (__opendirat): ... here.  Call it.
18355         (opendir_tail): New function, broken out of ...
18356         (__opendirat): ... here.  Call it.
18357         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
18358         opendir_tail, rather than punting to __opendirat.
18359         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
18360
18361 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18362
18363         * .gitignore: Ignore generated *.pyc.
18364
18365 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
18366
18367         * include/stdio.h: Define __need_wint_t.
18368         * test-skeleton.c: Avoid `for' loop initial declaration.
18369         * nptl/tst-initializers1.c: Use test-skeleton.c.
18370
18371 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18372
18373         [BZ #18418]
18374         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
18375
18376 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18377
18378         [BZ #16352]
18379         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
18380         (__ieee754_atanh): Force underflow exception for results with
18381         small absolute value.
18382         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
18383         (__ieee754_atanhf): Force underflow exception for results with
18384         small absolute value.
18385         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
18386         (__ieee754_atanh): Force underflow exception for results with
18387         small absolute value.
18388         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
18389         (__ieee754_atanhf): Force underflow exception for results with
18390         small absolute value.
18391         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
18392         (__ieee754_atanhl): Force underflow exception for results with
18393         small absolute value.
18394         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
18395         (__ieee754_atanhl): Force underflow exception for results with
18396         small absolute value.
18397         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
18398         (__ieee754_atanhl): Force underflow exception for results with
18399         small absolute value.
18400         * math/auto-libm-test-in: Do not allow missing underflow
18401         exceptions from atanh.
18402         * math/auto-libm-test-out: Regenerated.
18403
18404         [BZ #18221]
18405         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
18406         2**-28 as threshold for returning x or +/- 1/x.
18407         * math/auto-libm-test-in: Add more tests of tan.
18408         * math/auto-libm-test-out: Regenerated.
18409
18410         [BZ #18220]
18411         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
18412         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
18413         * math/auto-libm-test-in: Add another test of lgamma.
18414         * math/auto-libm-test-out: Regenerated.
18415
18416 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
18417
18418         * stdio-common/printf_fp.c (___printf_fp): Use abs.
18419         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
18420         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
18421         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
18422         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
18423         (ADD2A): Use fabs.  (SUB2A): Use fabs.
18424         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
18425         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
18426         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
18427         (log1): Use fabs.  (my_log2): Use fabs.
18428         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
18429         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
18430         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
18431         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
18432         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
18433         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
18434         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
18435         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
18436         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
18437         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
18438         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
18439
18440 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18441
18442         [BZ #18217]
18443         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18444         as threshold for returning 1 - x.
18445         * math/auto-libm-test-in: Add more tests of erfc.
18446         * math/auto-libm-test-out: Regenerated.
18447
18448 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18449
18450         [BZ #18196]
18451         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18452         threshold for large arguments.
18453         * math/auto-libm-test-in: Add another test of atan.
18454         * math/auto-libm-test-out: Regenerated.
18455
18456         [BZ #16339]
18457         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18458         (__log1p): Force underflow exception for results with small
18459         absolute value.
18460         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18461         (__log1pf): Force underflow exception for results with small
18462         absolute value.
18463         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18464         (__log1p): Force underflow exception for results with small
18465         absolute value.
18466         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18467         (__log1pf): Force underflow exception for results with small
18468         absolute value.
18469         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18470         (__log1pl): Force underflow exception for results with small
18471         absolute value.
18472         * math/auto-libm-test-in: Do not allow missing underflow
18473         exceptions from log1p.
18474         * math/auto-libm-test-out: Regenerated.
18475
18476 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18477             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18478
18479         [BZ #16704]
18480         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18481
18482 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18483
18484         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18485         (libmvec): New variable.
18486         * configure.ac: Added option for mathvec build.
18487         * configure: Regenerated.
18488         * mathvec/Depend: New file.
18489         * mathvec/Makefile: New file.
18490         * shlib-versions: Added libmvec.
18491         * math/Makefile: Added rule for libm.so installation.
18492
18493         * bits/math-vector.h: New file.
18494         * bits/libm-simd-decl-stubs.h: New header.
18495         * math/Makefile (headers): Added new header
18496         libm-simd-decl-stubs.h.
18497         * math/math.h (__MATHCALL_VEC): New macro.
18498
18499         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18500         for conditions in testing functions.
18501         * math/Makefile: Added call of libm-have-vector-test.sh.
18502         * math/libm-test.inc (HAVE_VECTOR): New macros.
18503
18504         * math/libm-test.inc: START refactored.
18505         * math/test-double.c (TEST_MATHVEC): Add define.
18506         * math/test-float.c: Likewise.
18507         * math/test-idouble.c: Likewise.
18508         * math/test-ifloat.c: Likewise.
18509         * math/test-ildoubl.c: Likewise.
18510         * math/test-ldouble.c: Likewise.
18511         * sysdeps/generic/math-tests-arch.h
18512         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18513         architecture check.
18514
18515         * math/test-double.c (FUNC_TEST): New macro.
18516         * math/test-float.c: Likewise.
18517         * math/test-idouble.c: Likewise.
18518         * math/test-ifloat.c: Likewise.
18519         * math/test-ildoubl.c: Likewise.
18520         * math/test-ldouble.c: Likewise.
18521         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18522
18523 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18524
18525         * sysdeps/nacl/fdopendir.c: New file.
18526
18527         * dirent/scandir-tail.c: New file.
18528         * dirent/scandir64-tail.c: New file.
18529         * dirent/Makefile (routines): Add them.
18530         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18531         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18532         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18533         [!SCANDIR] (SCANDIR_TAIL): New macro.
18534         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18535         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18536         (SCANDIRAT): Macro removed.
18537         (SCANDIR_TAIL): New macro.
18538         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18539         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18540         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18541         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18542         (READDIR): Macro removed.
18543         (SCANDIR_TAIL): New macro.
18544         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18545         (SCANDIR_TAIL): New macro.
18546
18547         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18548         * dirent/scandir-cancel.c: ... to this new file.
18549         * dirent/Makefile (routines): Add it.
18550         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18551         * sysdeps/unix/sysv/linux/i386/scandir64.c
18552         (SKIP_SCANDIR_CANCEL): Macro removed.
18553         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18554
18555         * dirent/tst-scandir.c: New file.
18556         * dirent/tst-scandir64.c: New file.
18557         * dirent/Makefile (tests): Add them.
18558
18559 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18560
18561         [BZ #18409]
18562         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18563
18564 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18565
18566         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18567         list.
18568
18569 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18570
18571         * benchtests/bench-strcoll.c: New benchmark.
18572         * benchtests/Makefile: Generate locales and run benchmark.
18573         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18574         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18575         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18576         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18577         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18578         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18579         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18580         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18581         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18582         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18583         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18584         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18585         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18586         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18587         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18588         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18589         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18590         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18591         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18592         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18593         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18594         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18595         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18596         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18597
18598 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18599
18600         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18601         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18602
18603 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18604
18605         * posix/uname-values.h: New file.
18606         * posix/uname.c: Include that instead of <config-name.h>.
18607         * sysdeps/nacl/uname-values.h: New file.
18608         * sysdeps/arm/nacl/uname-values.h: New file.
18609
18610 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18611
18612         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18613         splitting into fields.
18614
18615 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18616
18617         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18618         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18619         * locale/localeinfo.h: Add enum collation_encoding_type.
18620         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18621         * programs/ld-collate.c (collate_output): Add encoding type info.
18622         * string/strcoll_l.c (STRDIFF): New function.
18623         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18624         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18625
18626 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18627
18628         [BZ #18397]
18629         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18630         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18631         <fpu_control.h> instead of <math/fpu_control.c>.
18632         * sysdeps/mips/mips32/fpu/Makefile: New file.
18633
18634 2015-05-11  Andreas Schwab  <schwab@suse.de>
18635
18636         [BZ #18007]
18637         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18638         nss_endgrent.
18639         (_nss_compat_endgrent): Call nss_endgrent.
18640         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18641         nss_endpwent.
18642         (_nss_compat_endpwent): Call nss_endpwent.
18643         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18644         needent, call nss_setspent only if non-zero.
18645         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18646         (internal_endspent): Don't call nss_endspent.
18647         (_nss_compat_endspent): Call nss_endspent.
18648         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18649         Remove.  All uses removed.
18650         (internal_setent): Remove parameter stayopen, add parameter
18651         stream.  Use it instead of global variable.
18652         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18653         (internal_endent, internal_getent): Add parameter stream.  Use it
18654         instead of global variable.
18655         (CONCAT(_nss_files_end,ENTNAME))
18656         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18657         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18658         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18659         uses removed.
18660         (internal_setent, internal_endent): Add parameter stream.  Use it
18661         instead of global variable.
18662         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18663         stream.
18664         (get_next_alias): Add parameter stream.
18665         (_nss_files_getaliasent_r): Pass global stream.
18666         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18667         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18668         (_nss_files_gethostbyname4_r): Pass local stream to
18669         internal_setent, internal_getent and internal_endent.  Remove
18670         locking.
18671
18672 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18673
18674         * tst-strfmon1.c (tests): Update expected currency symbol.
18675
18676 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18677
18678         * sysdeps/nacl/gethostname.c: New file.
18679
18680 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18681
18682         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18683         and sinh.
18684         * math/auto-libm-test-out: Regenerated.
18685         * sysdeps/i386/fpu/libm-test-ulps: Update.
18686         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18687
18688 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18689
18690         [BZ #18125]
18691         * stdlib/tst-setcontext3.c: New file.
18692         * stdlib/tst-setcontext3.sh: New file.
18693         * stdlib/Makefile (tests): Add tst-setcontext3.
18694         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18695         to verify test program created output file.
18696         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18697         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18698         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18699         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18700
18701 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18702
18703         [BZ #18383]
18704         * elf/tst-tlsalign.c: New file.
18705         * elf/tst-tlsalign-static.c: New file.
18706         * elf/tst-tlsalign-lib.c: New file.
18707         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18708         (tests-static): Add tst-tlsalign-static.
18709         (modules-names): Add tst-tlsalign-lib.
18710         (test-xfail-tst-tlsalign): New variable.
18711         (test-xfail-tst-tlsalign-static): New variable.
18712
18713         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18714         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18715
18716 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18717
18718         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18719         csqrt, erfc, sin and sincos.
18720         * math/auto-libm-test-out: Regenerated.
18721         * sysdeps/i386/fpu/libm-test-ulps: Update.
18722         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18723
18724 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18725
18726         * sysdeps/aarch64/libm-test-ulps: Update.
18727
18728 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18729
18730         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18731         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18732         * math/auto-libm-test-out: Regenerated.
18733         * sysdeps/i386/fpu/libm-test-ulps: Update.
18734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18735
18736 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18737
18738         [BZ #18265]
18739         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18740         (wcsncpy): Likewise.
18741
18742 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18743
18744         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18745         Assume __ASSUME_FALLOCATE is always true.
18746         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18747         (__posix_fallocate64_l64): Likweise.
18748         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18749         (posix_fallocate): Likewise.
18750         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18751         (__posix_fallocate64_l64): Likewise.
18752         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18753         [!__ASSUME_FALLOCATE]: Add comment.
18754
18755 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18756
18757         * sysdeps/unix/sysv/linux/i386/Makefile
18758         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18759         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18760         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18761         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18762         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18763         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18764         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18765
18766 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18767
18768         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18769         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18770         tgamma.
18771         * math/auto-libm-test-out: Regenerated.
18772         * sysdeps/i386/fpu/libm-test-ulps: Update.
18773         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18774
18775 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18776
18777         * math/auto-libm-test-in: Add more tests of tgamma.
18778         * math/auto-libm-test-out: Regenerated.
18779         * sysdeps/i386/fpu/libm-test-ulps: Update.
18780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18781
18782         * math/auto-libm-test-in: Add more tests of tanh.
18783         * math/auto-libm-test-out: Regenerated.
18784         * sysdeps/i386/fpu/libm-test-ulps: Update.
18785         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18786
18787         * math/auto-libm-test-in: Add more tests of tan.
18788         * math/auto-libm-test-out: Regenerated.
18789         * sysdeps/i386/fpu/libm-test-ulps: Update.
18790         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18791
18792         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18793         * math/auto-libm-test-out: Regenerated.
18794         * sysdeps/i386/fpu/libm-test-ulps: Update.
18795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18796
18797         * math/auto-libm-test-in: Add another test of pow.
18798         * math/auto-libm-test-out: Regenerated.
18799         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18800
18801         * math/auto-libm-test-in: Add more tests of lgamma.
18802         * math/auto-libm-test-out: Regenerated.
18803         * sysdeps/i386/fpu/libm-test-ulps: Update.
18804         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18805
18806         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18807         log1p.
18808         * math/auto-libm-test-out: Regenerated.
18809         * sysdeps/i386/fpu/libm-test-ulps: Update.
18810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18811
18812 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18813
18814         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18815         Elf64_Chdr structs and ELFCOMPRESS constants.
18816
18817 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18818
18819         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18820         expm1.
18821         * math/auto-libm-test-out: Regenerated.
18822         * sysdeps/i386/fpu/libm-test-ulps: Update.
18823         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18824
18825         * math/auto-libm-test-in: Add more tests of erf and erfc.
18826         * math/auto-libm-test-out: Regenerated.
18827         * sysdeps/i386/fpu/libm-test-ulps: Update.
18828         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18829
18830 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18831
18832         * config.h.in (HAVE_AARCH64_BE): Add.
18833
18834 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18835
18836         * math/auto-libm-test-in: Add more tests of csqrt.
18837         * math/auto-libm-test-out: Regenerated.
18838         * sysdeps/i386/fpu/libm-test-ulps: Update.
18839         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18840
18841         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18842         * math/auto-libm-test-out: Regenerated.
18843         * sysdeps/i386/fpu/libm-test-ulps: Update.
18844         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18845
18846         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18847
18848 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18849
18850         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18851         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18852
18853         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18854         (euidaccess, eaccess): Define as weak aliases.
18855
18856         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18857         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18858         but __suseconds_t is often 'long int' so some sources assume that
18859         type is being used (e.g. they use %ld to print tv_usec).
18860
18861 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18862
18863         [BZ #18007]
18864         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18865         (CVE-2014-8121)
18866         * nss/tst-nss-getpwent.c: New file.
18867         * nss/Makefile (tests): Add new test.
18868
18869 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18870
18871         [BZ #18346]
18872         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18873         exponents less than 48 as cases where high part of mantissa needs
18874         examining to determine whether argument is integral.
18875         * math/libm-test.inc (round_test_data): Add more tests.
18876
18877 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18878
18879         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18880
18881 2015-04-27  David S. Miller  <davem@davemloft.net>
18882
18883         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18884         __tls_get_addr.
18885         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18886
18887 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18888
18889         [BZ#18333]
18890         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18891
18892 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18893
18894         [BZ#18333]
18895         * time/tzset.c (parse_tzname): Return error on memory allocation
18896         failure.
18897         * test-skeleton.c (struct temp_name_list): Change type of name
18898         member to non-const.
18899         (add_temp_file): Create a copy of the file name.
18900         (delete_temp_files): Deallocate memory.
18901         (create_temp_file): Add comment.
18902
18903 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18904
18905         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
18906         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
18907
18908 2015-04-24  Roland McGrath  <roland@hack.frob.com>
18909
18910         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
18911         * sysdeps/arm/configure: Regenerated.
18912
18913 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18914
18915         [BZ #17715]
18916         * time/tzfile.c (__tzfile_read): Check for large values of
18917         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
18918         * time/tzset.c (__tzstring_len): New function, based on the old
18919         __tzstring function.
18920         (__tzstring): Call __tzstring_len.
18921         (parse_tzname): New helper function extracted from
18922         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
18923         the input string.
18924         (parse_offset): New helper function extracted from
18925         __tzset_parse_tz.  Replace switch with fallthrough with
18926         initialization before sscanf.
18927         (parse_rule): Likewise.
18928         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
18929         new-style function definition.
18930         * timezone/Makefile (tests): Add tst-tzset.
18931         (tst-tzset.out): Dependencies on time zone files.
18932         (tst-tzset-ENV): Set TZDIR.
18933         (testdata/XT%): Copy crafted time zone files.
18934         * timezone/README: Mention crafted time zone files.
18935         * timezone/testdata/XT1, timezone/testdata/XT2,
18936         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
18937         files.
18938         * timezone/tst-tzset.c: New test.
18939
18940 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18941
18942         * Makeconfig (+gccwarn): Remove -Winline.
18943
18944 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18945
18946         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
18947
18948 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18949
18950         * NEWS: Mention sysconf() cache information support for s390.
18951         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
18952
18953 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
18954
18955         * math/k_casinh.c (__kernel_casinh): Use __copysign.
18956         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
18957         (__nearbyint): Likewise.
18958         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
18959         (copysignl): Likewise.
18960
18961 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
18962
18963         [BZ #18287]
18964         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
18965         based on padding.  (CVE-2015-1781)
18966
18967 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18968
18969         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
18970         libc-vdso.h.
18971         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
18972         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
18973         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
18974         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
18975         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
18976         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
18977         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
18978         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
18979         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
18980         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
18981         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
18982         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
18983         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
18984         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
18985         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
18986         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
18987         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
18988         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
18989         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
18990         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
18991         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
18992         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
18993         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
18994
18995 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18996
18997         * stdlib/setenv.c (__add_to_environ):
18998         Dump core quickly if setenv (..., NULL, ...) is called.
18999         This time, do it the right way, and pacify GCC with a pragma.
19000
19001 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19002
19003         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
19004         IMAP->l_prev cannot be null, and #if out the code for the contrary
19005         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
19006         believe that NS (&_dl_ns[NSID]) could point outside the array.
19007
19008         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
19009         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
19010         before using NSID as an index.
19011
19012 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
19013
19014         [BZ #17825]
19015         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
19016         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
19017         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
19018
19019 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19020
19021         Add preliminary port to Google Native Client on ARM.
19022         * abi-tags (.*-.*-nacl.*): New entry.
19023         * sysdeps/arm/nacl: New directory.
19024         * sysdeps/nacl: New directory.
19025
19026 2015-04-16  David S. Miller  <davem@davemloft.net>
19027
19028         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
19029         lowlevellock-futex.h
19030
19031 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
19032
19033         * sysdeps/tile/configure.ac: New file.
19034         * sysdeps/tile/configure: Regenerated.
19035
19036 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19037
19038         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
19039         conditionals for weak_alias and libc_hidden_weak.
19040         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
19041         libc_hidden_weak and weak_alias.
19042         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
19043         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
19044         and weak_alias for static one.
19045
19046 2015-04-15  David S. Miller  <davem@davemloft.net>
19047
19048         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
19049
19050 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19051
19052         [BZ #18206]
19053         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
19054           Use signed comparision instead of substraction to avoid
19055           overflow bug.
19056         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
19057           Take the sign of ret.
19058         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
19059           Do not expect precise return values. Only the sign matters.
19060         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
19061         * wcsmbs/test-wcsncmp.c: New File.
19062         * string/test-strncmp.c: Add wcsncmp support.
19063
19064 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19065
19066         [BZ #6792]
19067         * math/w_log1p.c: New file.
19068         * math/w_log1pf.c: Likewise.
19069         * math/w_log1pl.c: Likewise.
19070         * math/Makefile (libm-calls): Add w_log1p.
19071         * math/s_log1pl.c (log1pl): Remove weak_alias.
19072         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
19073         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
19074         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
19075         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
19076         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
19077         [NO_LONG_DOUBLE] (log1pl): Likewise.
19078         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
19079         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
19080         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
19081         (log1p): Remove long_double_symbol.
19082         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
19083         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
19084         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
19085         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
19086         remove weak_alias for corresponding log1p function.
19087         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
19088         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
19089         * sysdeps/ia64/fpu/w_log1p.c: New file.
19090         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
19091         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
19092         * math/libm-test.inc (log1p_test_data): Add errno expectations.
19093
19094 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
19095
19096         [BZ #18247]
19097         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
19098         decimal exponent by 1.
19099         * stdlib/tst-strtod-round-data: Add more tests.
19100         * stdlib/tst-strtod-round.c (tests): Regenerated.
19101
19102 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
19103
19104         * math/auto-libm-test-in: Add more tests of clog and clog10.
19105         * math/auto-libm-test-out: Regenerated.
19106         * sysdeps/i386/fpu/libm-test-ulps: Update.
19107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19108
19109 2015-04-09  Roland McGrath  <roland@hack.frob.com>
19110
19111         * Makeconfig (module-cppflags): Exclude all .v.i files.
19112         (skip-module-cppflags): Variable removed.
19113
19114         * configure.ac (libc_config_ok): Initialize before reading
19115         preconfigure scripts, not after.
19116         * configure: Regenerated.
19117
19118         * test-skeleton.c (TIMEOUT): Move #define to top level.
19119         (main): Grok environment variable TEST_DIRECT.  If set, print
19120         test expectation details into that file and then behave as if
19121         given --direct.
19122
19123 2015-04-09  Florian Weimer  <fweimer@redhat.com>
19124
19125         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
19126         warning on 32-bit.
19127
19128 2015-04-08  David S. Miller  <davem@davemloft.net>
19129
19130         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19131
19132 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19133
19134         * math/auto-libm-test-in: Add more tests of atanh.
19135         * math/auto-libm-test-out: Regenerated.
19136         * sysdeps/i386/fpu/libm-test-ulps: Update.
19137         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19138
19139         * math/auto-libm-test-in: Add more tests of atan.
19140         * math/auto-libm-test-out: Regenerated.
19141         * sysdeps/i386/fpu/libm-test-ulps: Update.
19142         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19143
19144 2015-04-08  Florian Weimer  <fweimer@redhat.com>
19145
19146         * elf/pldd.c (main): Rewrite to use struct
19147         scratch_buffer instead of extend_alloca.
19148         * elf/pldd-xx.c (find_maps): Likewise.
19149         * grp/initgroups.c: Include <scratch_buffer.h> instead of
19150         <alloca.h>.
19151         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
19152         scratch_buffer instead of extend_alloca.
19153         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
19154         grp/compat-initgroups.c.
19155         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
19156         Rewrite to use struct scratch_buffer instead of extend_alloca.
19157         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
19158         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
19159
19160 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19161
19162         * math/auto-libm-test-in: Add more tests of cbrt.
19163         * math/auto-libm-test-out: Regenerated.
19164         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19165
19166         * math/auto-libm-test-in: Add more tests of cabs.
19167         * math/auto-libm-test-out: Regenerated.
19168         * sysdeps/i386/fpu/libm-test-ulps: Update.
19169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19170
19171         [BZ #18210]
19172         [BZ #18211]
19173         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
19174         (__ieee754_atan2): Set FE_TONEAREST mode for internal
19175         computations.
19176         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
19177         clog10.
19178         * math/auto-libm-test-out: Regenerated.
19179         * sysdeps/i386/fpu/libm-test-ulps: Update.
19180         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19181
19182         [BZ #18197]
19183         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
19184         (atan): Set FE_TONEAREST mode for internal computations.
19185         * math/auto-libm-test-in: Add more tests of atan.
19186         * math/auto-libm-test-out: Regenerated.
19187
19188 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
19189
19190         [BZ #17930]
19191         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
19192
19193 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19194
19195         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
19196
19197 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19198
19199         * include/scratch_buffer.h: New file.
19200         * malloc/scratch_buffer_grow.c: Likewise.
19201         * malloc/scratch_buffer_grow_preserve.c: Likewise.
19202         * malloc/scratch_buffer_set_array_size.c: Likewise.
19203         * malloc/tst-scratch_buffer.c: Likewise.
19204         * malloc/Makefile (routines): Add scratch_buffer_grow.
19205         (tests): Add test case.
19206         * malloc/Versions (GLIBC_PRIVATE): Export
19207         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
19208         __libc_scratch_buffer_set_array_size.
19209
19210 2015-04-06  Richard Henderson  <rth@redhat.com>
19211
19212         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
19213         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19214
19215         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
19216         unsigned int before printing.
19217
19218 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19219
19220         [BZ #17596]
19221         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
19222         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
19223
19224 2015-04-02  Florian Weimer  <fweimer@redhat.com>
19225
19226         * include/libc-internal.h (libc_max_align_t): Define.
19227
19228 2015-04-02  Andreas Schwab  <schwab@suse.de>
19229
19230         [BZ #16850]
19231         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
19232
19233 2015-04-02  Mel Gorman  <mgorman@suse.de>
19234
19235         [BZ #17195]
19236         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
19237         as well as the main arena.
19238
19239 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19240
19241         [BZ #18185]
19242         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
19243         sharing L2 cache to 2 for Silvermont/Knights Landing.
19244
19245 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19246
19247         [BZ #17711]
19248         * config.make.in (have-protected-data): New.
19249         * configure.ac: Check linker support for protected data symbol.
19250         * configure: Regenerated.
19251         * elf/Makefile (modules-names): Add tst-protected1moda and
19252         tst-protected1modb if $(have-protected-data) is yes.
19253         (tests): Add tst-protected1a and tst-protected1b if
19254         $(have-protected-data) is yes.
19255         ($(objpfx)tst-protected1a): New.
19256         ($(objpfx)tst-protected1b): Likewise.
19257         (tst-protected1modb.so-no-z-defs): Likewise.
19258         * elf/tst-protected1a.c: New file.
19259         * elf/tst-protected1b.c: Likewise.
19260         * elf/tst-protected1mod.h: Likewise.
19261         * elf/tst-protected1moda.c: Likewise.
19262         * elf/tst-protected1modb.c: Likewise.
19263
19264 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19265
19266         [BZ #17711]
19267         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
19268         indicates it is called from do_lookup_x on relocation against
19269         protected data, skip the data definion in the executable from
19270         copy reloc.
19271         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
19272         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
19273         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
19274         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
19275         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
19276         otherwise to 0.
19277         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19278         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
19279         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
19280         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19281         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
19282         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
19283
19284 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
19285
19286         * sysdeps/nptl/pthread.h: Remove duplicate definition of
19287         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
19288
19289 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
19290
19291         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
19292         THREAD_SETMEM_NC.
19293         * sysdeps/x86_64/nptl/tls.h: Ditto.
19294
19295 2015-03-27  Roland McGrath  <roland@hack.frob.com>
19296
19297         * dlfcn/tststatic.c (main): Converted to ...
19298         (do_test): ... this.
19299         (TEST_FUNCTION): New macro.
19300         Include test-skeleton.c.
19301
19302 2015-03-26  Alan Modra  <amodra@gmail.com>
19303
19304         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
19305         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
19306         zero for undefined weak.
19307         (elf_machine_plt_conflict): Similarly.
19308
19309 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19310
19311         * math/auto-libm-test-in: Add more tests of acosh, asinh and
19312         atanh.
19313         * math/auto-libm-test-out: Regenerated.
19314         * sysdeps/i386/fpu/libm-test-ulps: Update.
19315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19316
19317         * math/auto-libm-test-in: Add another test of asin.
19318         * math/auto-libm-test-out: Regenerated.
19319         * sysdeps/i386/fpu/libm-test-ulps: Update.
19320         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19321
19322         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
19323         Remove macro.
19324         (LLL_EBX_REG): Likewise.
19325         (LLL_ENTER_KERNEL): Likewise.
19326
19327         * math/auto-libm-test-in: Add more tests of asin.
19328         * math/auto-libm-test-out: Regenerated.
19329         * sysdeps/i386/fpu/libm-test-ulps: Update.
19330         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19331
19332         [BZ #18138]
19333         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
19334         libc_do_syscall_args): New structure.
19335         (INTERNAL_SYSCALL_MAIN_0): New macro.
19336         (INTERNAL_SYSCALL_MAIN_1): Likewise.
19337         (INTERNAL_SYSCALL_MAIN_2): Likewise.
19338         (INTERNAL_SYSCALL_MAIN_3): Likewise.
19339         (INTERNAL_SYSCALL_MAIN_4): Likewise.
19340         (INTERNAL_SYSCALL_MAIN_5): Likewise.
19341         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
19342         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
19343         Replace conditional definitions by conditional definitions of ....
19344         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
19345         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
19346         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
19347         (libpthread-sysdep_routines): Add libc-do-syscall.
19348         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
19349         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
19350         to __NR_futex not 240.
19351
19352 2015-03-25  Alan Modra  <amodra@gmail.com>
19353
19354         * NEWS: Advertise TLS optimization.
19355         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
19356         (DT_PPC_NUM): Increment.
19357         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
19358         (CHECK_STATIC_TLS): Use here.
19359         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
19360         TLS descriptors.
19361         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
19362         * sysdeps/powerpc/dl-tls.c: New file.
19363         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
19364         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
19365         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
19366         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
19367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
19368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
19369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
19370
19371 2015-03-25  Alan Modra  <amodra@gmail.com>
19372
19373         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
19374         for overlapping .opd entries" to "support...".
19375         * sysdeps/powerpc/powerpc64/configure: Regenerate
19376
19377 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19378
19379         * math/auto-libm-test-in: Add more tests of acos.
19380         * math/auto-libm-test-out: Regenerated.
19381         * sysdeps/i386/fpu/libm-test-ulps: Update.
19382         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19383
19384         * math/auto-libm-test-in: Add more tests of expm1.
19385         * math/auto-libm-test-out: Regenerated.
19386         * sysdeps/i386/fpu/libm-test-ulps: Update.
19387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19388
19389 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
19390
19391         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19392         * math/auto-libm-test-out: Regenerated.
19393         * sysdeps/i386/fpu/libm-test-ulps: Update.
19394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19395
19396         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19397         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19398
19399         * math/auto-libm-test-in: Add more tests of log2.
19400         * math/auto-libm-test-out: Regenerated.
19401         * sysdeps/i386/fpu/libm-test-ulps: Update.
19402         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19403
19404 2015-03-23  Roland McGrath  <roland@hack.frob.com>
19405
19406         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
19407         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
19408         _IO_IS_APPENDING bit in READ_WRITE instead.
19409
19410 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19411
19412         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19413         (__determine_cpumask_size): Replace extend_alloca with a
19414         variable-length array.  Do not treat res == 0 as an error.
19415
19416 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19417
19418         [BZ #18100]
19419         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
19420         and integer overflow.
19421         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
19422         (main): Add integer overflow tests.
19423         * manual/pattern.texi (Calling Wordexp): Document additional use
19424         for WRDE_SYNTAX.
19425
19426 2015-03-23  Alan Modra  <amodra@gmail.com>
19427
19428         * config.h.in: Remove HAVE_ASM_PPC_REL16.
19429         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
19430         and false branch of conditional.
19431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
19432         Likewise.
19433
19434 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
19435
19436         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
19437         libc-modules.h
19438         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
19439         unused declaration of _hurd_intr_rpc_msg_in_trap.
19440         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19441         defined instead of whether it is non-zero.
19442         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19443         input constraint instead of both input and output constraint.  Use ecx
19444         clobber instead of %ecx.
19445         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19446         mutex_unlock): Use a statement expression instead of an expression list.
19447         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19448         type to vm_size_t instead of vm_address_t.
19449         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19450         defined instead of whether it is non-zero.
19451         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19452         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19453         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19454         comparisons with mapaddr.
19455         * nscd/nscd-client.h: Include <time.h>.
19456         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19457         9th parameter to __vm_region instead of int.
19458         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19459         * scripts/check-local-headers.sh (exclude): Add device/,
19460         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19461         cthreads.h.
19462
19463 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19464
19465         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19466         to account for alignment padding.
19467         * sysdeps/arm/memmove.S: Likewise.
19468
19469 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19470
19471         * sysdeps/unix/sysv/linux/generic/README: New file.
19472
19473 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19474
19475         [BZ #18138]
19476         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19477         (futex_abstimed_wait)
19478         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19479         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19480         of lll_futex_timed_wait.
19481
19482 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19483
19484         [BZ #17542]
19485         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19486
19487 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19488
19489         [BZ #17090]
19490         [BZ #17620]
19491         [BZ #17621]
19492         [BZ #17628]
19493         * NEWS: Update.
19494         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19495         entries with Static TLS too.  Skip entries past the end of the
19496         allocated DTV, from Alan Modra.
19497         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19498         Static TLS DTV entry set up from...
19499         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19500         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19501         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19502         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19503         for Static TLS.
19504         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19505         that the slot we find is associated with the given map before
19506         using its generation count.
19507         * nptl_db/db_info.c: Include ldsodefs.h.
19508         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19509         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19510         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19511         (link_map::l_tls_offset): New struct field.
19512         (dtv_t::counter): Likewise.
19513         (rtld_global): New struct.
19514         (_rtld_global): New rtld variable.
19515         (dl_tls_dtv_slotinfo_list): New rtld global field.
19516         (dtv_slotinfo_list): New struct.
19517         (dtv_slotinfo): Likewise.
19518         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19519         (td_lookup): Rename to...
19520         (td_mod_lookup): ... this.  Use new mod parameter instead of
19521         LIBPTHREAD_SO.
19522         * nptl_db/td_thr_tlsbase.c: Include link.h.
19523         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19524         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19525         addresses even if the DTV is out of date or missing them.
19526         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19527         index zero-length arrays.
19528         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19529         (td_lookup): Make it a macro implemented in terms of...
19530         (td_mod_lookup): ... this declaration.
19531         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19532         (DB_MAIN_VARIABLE): Likewise.
19533
19534 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19535
19536         [BZ #18134]
19537         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19538
19539 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19540
19541         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19542
19543 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19544
19545         [BZ #18128]
19546         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19547         (atomic_add, atomic_increment_and_test)
19548         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19549
19550 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19551
19552         * stdlib/setenv.c (__add_to_environ):
19553         Dump core quickly if setenv (..., NULL, ...) is called.
19554
19555 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19556
19557         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19558         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19559         all the necessary asm magic in one place.
19560         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19561         using those.
19562
19563 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19564
19565         [BZ #14906]
19566         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19567         traced file mtime. Use consistent log message.
19568         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19569         (register_traced_file): Call install_watches. Always set mtime.
19570         (invalidate_cache): Iterate over all trace files. Call install_watches.
19571         (inotify_check_files): Don't inline. Handle watching parent
19572         directories and configuration file movement in and out.
19573         (handle_inotify_events): New function.
19574         (main_loop_poll): Call handle_inotify_events.
19575         (main_loop_epoll): Likewise.
19576         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19577         (struct traced_file): Use array of inotify fds. Add parent directory,
19578         and basename.
19579         (struct database_dyn): Remove unused file_mtime.
19580         (init_traced_file): New inline function.
19581         (define_traced_file): New macro.
19582         * nss/nss_db/db-init.c: Use define_traced_file.
19583         (_nss_db_init): Use init_traced_file.
19584         * nss/nss_files/files-init.c: Use define_traced_file.
19585         (_nss_files_init): Use init_traced_file.
19586
19587 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19588
19589         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19590         [_LIBC]: Do not include <stdlib.h>.
19591         [!_LIBC] (abort): Remove declaration.
19592         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19593         _FP_STATIC_ASSERT instead of conditionally calling abort.
19594         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19595         (_FP_EXTEND_CNAN): Likewise.
19596         (FP_TRUNC): Likewise.
19597         (__FP_CLZ): Likewise.
19598         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19599
19600 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19601
19602         * manual/string.texi (XPG basename): Fix prototype.
19603
19604 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19605
19606         [BZ #18080]
19607         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19608         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19609         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19610         (__setcontext): Likewise.
19611         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19612         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19613         Call rt_sigprocmask syscall one time to set new signal mask
19614         and retrieve the current signal mask instead of two calls.
19615         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19616         (__swapcontext): Likewise.
19617         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19618         * stdlib/tst-setcontext2.c: New file.
19619
19620 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19621
19622         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19623
19624 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19625
19626         [BZ #18093]
19627         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19628         the wrong size.
19629
19630 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19631
19632         [BZ #18043]
19633         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19634
19635 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19636
19637         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19638         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19639         Remove define.
19640         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19641         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19642         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19643         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19644         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19645         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19646         define.
19647         * nptl_db/td_symbol_list.c (td_lookup): Remove
19648         HAVE_ASM_GLOBAL_DOT_NAME code.
19649         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19650         HAVE_ASM_GLOBAL_DOT_NAME check.
19651         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19652         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19653         (DOT_LABEL): Remove define.
19654         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19655         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19656         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19657         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19658         (__TLS_GET_ADDR): Likewise.
19659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19660         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19661
19662 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19663
19664         [BZ #18111]
19665         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19666         (_FPU_SETCW): Initialize cw from fpsr before storing.
19667         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19668         (fesetexceptflag): Rewrite using fpu_control.h.
19669         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19670
19671 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19672
19673         [BZ #18110]
19674         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19675         asms.
19676         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19677
19678 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19679
19680         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19681         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19682         abort.
19683         (_FP_FMA): Likewise.
19684         (_FP_DIV): Likewise.
19685
19686 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19687
19688         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19689         with 0 in that case.
19690         * Makefile (summarize-tests): New canned sequence, factored out of
19691         commands for targets tests and xtests.  Display summary lines that
19692         don't start with PASS: or XFAIL: rather than ones that do start with
19693         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19694         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19695         do start with ERROR: or FAIL:.
19696         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19697         (except for [$(build-shared) = yes]).
19698         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19699         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19700         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19701         * nptl/Makefile: Revert 2015-03-04 changes.
19702         [$(CXX) empty] (tests-unsupported): New variable.
19703         * debug/Makefile: Likewise.
19704
19705         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19706         gnulib file.  Replace __attribute with __attribute__ throughout.
19707
19708 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19709
19710         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19711
19712 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19713
19714         [BZ #18104]
19715         * math/auto-libm-test-in: Add another test of pow.
19716         * math/auto-libm-test-out: Regenerated.
19717
19718 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19719
19720         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19721         $(config-cflags-nofma).
19722
19723 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19724
19725         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19726         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19727         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19728         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19729         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19730         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19731         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19732         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19733         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19734         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19735         Add comment on closing #endif.
19736
19737 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19738
19739         * posix/wordexp.c (CHAR_IN_SET): New macro.
19740         (parse_param): Use it.
19741
19742 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19743
19744         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19745
19746 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19747
19748         [BZ #18043]
19749         * posix/wordexp.c (parse_param): Fix buffer overflow.
19750         * posix/wordexp-test.c (test_case): Add test case.
19751
19752 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19753
19754         [BZ #18042]
19755         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19756         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19757
19758 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19759
19760         [BZ #18043]
19761         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19762         (do_bz18043): Delete.
19763         (at_page_end): New.
19764         (testit): Refactor to have words at the edge of unreadable page.
19765
19766 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19767
19768         [BZ #16734]
19769         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19770         Cleanup read-only streams as well.
19771         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19772
19773 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19774
19775         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19776         <bits/libc-lockP.h>
19777
19778 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19779
19780         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19781         on [__KERNEL__].
19782         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19783         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19784         * soft-fp/op-common.h (_FP_DECL): Likewise.
19785
19786 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19787
19788         * elf/ifuncdep2.c (global): Replace
19789         __attribute__((visibility("protected"))) with
19790         asm (".protected global").
19791         * elf/ifuncmod1.c (global): Likewise.
19792         * elf/ifuncmod5.c (global): Likewise.
19793
19794 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19795
19796         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19797         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19798
19799 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19800
19801         * manual/install.texi (Configuring and compiling):
19802         Document test-wrapper-env-only.
19803         * INSTALL: Regenerated.
19804
19805 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19806
19807         [BZ #18043]
19808         * posix/wordexp.c (parse_param): Fix buffer overflow.
19809         * posix/wordexp-test.c (do_bz18043): Add test case.
19810
19811 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19812
19813         * time/tst-strptime2.c (do_test): Ensure failing tests are
19814         reported correctly.
19815         * time/tst-strptime3.c (do_test): Likewise.
19816
19817 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19818
19819         Fix aio_error thread-safety.
19820         * sysdeps/pthread/aio_error.c: New file
19821         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19822         synchronization.
19823
19824 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19825
19826         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19827         (group_number, vfprintf): Use it.
19828         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19829         (JUMP, REF): Use it.
19830         (WORK_BUFFER_SIZE): New enum constant.
19831         (process_arg, vfprintf): Use it.
19832
19833 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19834
19835         * manual/errno.texi (Error Messages): Complete example function
19836         by adding missing #define.
19837         (program_invocation_name): Add statement indicating GNU
19838         extension and reference which header file declares the variable.
19839         (program_invocation_short_name): Likewise.
19840
19841 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19842
19843         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19844         compatibility note.
19845
19846 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19847
19848         * Makeconfig (test-wrapper-env-only): New variable.
19849         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19850         then use that with $(test-wrapper-env-only) rather than using
19851         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19852
19853 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19854
19855         [BZ #18082]
19856         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19857         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19858         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19859         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19860         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19861         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19862         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19863         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19864         Likewise.
19865         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19866         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19867         Likewise.
19868         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19869         Likewise.
19870         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19871         Likewise.
19872         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19873         Likewise.
19874         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19875         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19876         Likewise.
19877         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19878         Likewise.
19879         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19880         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19881
19882 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19883
19884         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19885         (ETH_ALEN): New macro.
19886         (struct ether_addr): Use it for length of ether_addr_octet.
19887
19888         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19889         (setdb): Don't call __nss_configure_lookup for "rpc".
19890         (do_test): Don't call test_rpc.
19891         (output_rpcent, test_rpc): Functions moved ...
19892         * sunrpc/test-rpcent.c: ... to this new file.
19893         * sunrpc/Makefile (tests): Add it.
19894
19895         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19896         __xpg_sigpause.
19897         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19898         * nptl/tst-signal6.c: Likewise.
19899         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19900         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19901
19902         * configure.ac (libc_cv_cxx_link_ok): New check.
19903         Reset CXX to empty if it fails to link.
19904         * configure: Regenerated.
19905         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
19906         bug-atexit3-lib only if $(CXX) is nonempty.
19907         * nptl/Makefile (tests): Likewise for tst-cancel24.
19908         (tests, tests-static): Likewise for tst-cancel24-static.
19909         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
19910         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
19911         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
19912         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
19913
19914 2015-03-04  Andreas Schwab  <schwab@suse.de>
19915
19916         [BZ #17631]
19917         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
19918         for non-GCC compilers.
19919         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
19920         Likewise.
19921
19922 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19923
19924         [BZ #17776]
19925         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
19926         integer before bitwise and assembly operations.
19927         (feclearexcept): Likewise.
19928         * math/test-fenvinline.c: New file.
19929         * math/Makefile: Add test-fenvinline test.
19930
19931 2015-03-03  Alan Modra  <amodra@gmail.com>
19932
19933         [BZ #16512]
19934         * scripts/localplt.awk: Strip off symbol version.
19935         * NEWS: Mention bug fix.
19936
19937 2015-03-02  Roland McGrath  <roland@hack.frob.com>
19938
19939         * sysdeps/pthread/timer_routines.c
19940         (timer_free_list, thread_free_list, thread_active_list): Make static.
19941
19942 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
19943
19944         [BZ #17779]
19945         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19946         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19947         Undefine.
19948         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19949         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19950         Likewise.
19951         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19952         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19953         Likewise.
19954
19955 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19956
19957         [BZ #18036]
19958         * posix/fnmatch_loop.c (END): Detect invalid pattern.
19959         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
19960
19961 2015-03-02  Andreas Schwab  <schwab@suse.de>
19962
19963         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
19964         variable name.
19965
19966 2015-03-02  Florian Weimer  <fweimer@redhat.com>
19967
19968         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
19969         Return error status.
19970
19971 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
19972
19973         [BZ #15969]
19974         * locale/findlocale.c (_nl_find_locale): Introduce const
19975         version of loc_name and drop unsafe type casts.
19976
19977 2015-02-27  Roland McGrath  <roland@hack.frob.com>
19978
19979         * dlfcn/tststatic2.c (main): Converted to ...
19980         (do_test): ... this.
19981         (TEST_FUNCTION): New macro.
19982         Include test-skeleton.c.
19983
19984 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19985
19986         [BZ #17711]
19987         * elf/Makefile (tests): Add vismain only if PIE is enabled.
19988         (tests-pie): Add vismain.
19989         (CFLAGS-vismain.c): New.
19990         * elf/vismain.c: Add comments for PIE requirement.
19991
19992 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
19993
19994         [BZ #18046]
19995         [BZ #18047]
19996         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
19997         0x1p-56L as threshold for just returning the argument.
19998         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
19999         0x1p-32L as threshold for just returning the argument.
20000         * math/auto-libm-test-in: Add more tests of atanh.
20001         * math/auto-libm-test-out: Regenerated.
20002         * sysdeps/i386/fpu/libm-test-ulps: Update.
20003         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
20004
20005 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20006
20007         * string/bcopy.c (bcopy): Call memmove for performance.
20008
20009 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20010
20011         * string/bzero.c (__bzero): Call memset for performance.
20012
20013 2015-02-27  John David Anglin  <dave.anglin@bell.net>
20014
20015         [BZ #18068]
20016         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
20017         to 00100000.
20018
20019 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20020
20021         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
20022
20023 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20024
20025         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
20026         (__kernel_standard): Use CSTR macro when setting exc.name.
20027         * sysdeps/ieee754/Makefile [$(subdir) = math]
20028         (CFLAGS-k_standard.c): Remove variable.
20029
20030         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
20031         setting p and q from "else if" to "else".
20032         (qzero): Likewise.
20033         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
20034         (qone): Likewise.
20035         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
20036         (qzerof): Likewise.
20037         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
20038         (qonef): Likewise.
20039         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
20040         (qzero): Likewise.
20041         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
20042         (qone): Likewise.
20043
20044         [BZ #18038]
20045         [BZ #18039]
20046         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
20047         return pi/2 for arguments below 0x1p-113L.
20048         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
20049         return pi/2 for arguments below 0x1p-106L.
20050         * math/auto-libm-test-in: Add more tests of acos.
20051         * math/auto-libm-test-out: Regenerated.
20052
20053         [BZ #16351]
20054         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
20055         (MO): New macro.
20056         (__ieee754_asin): Force underflow exception for results with small
20057         absolute value.
20058         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
20059         (MO): New macro.
20060         (__ieee754_asinf): Force underflow exception for results with
20061         small absolute value.
20062         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
20063         (__ieee754_asin): Force underflow exception for results with small
20064         absolute value.
20065         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
20066         (__ieee754_asinf): Force underflow exception for results with
20067         small absolute value.
20068         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
20069         (__ieee754_asinl): Force underflow exception for results with
20070         small absolute value.
20071         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
20072         (__ieee754_asinl): Force underflow exception for results with
20073         small absolute value.
20074         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
20075         (__ieee754_asinl): Force underflow exception for results with
20076         small absolute value.
20077         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
20078         Include <math.h>.
20079         * math/auto-libm-test-in: Do not mark underflow exceptions as
20080         possibly missing for bug 16351.
20081         * math/auto-libm-test-out: Regenerated.
20082
20083         [BZ #18030]
20084         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
20085         of power of 2 down when low part has opposite sign.
20086         * math/libm-test.inc (logb_test_data): Add more tests.
20087
20088 2015-02-26  Andreas Schwab  <schwab@suse.de>
20089
20090         [BZ #18032]
20091         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
20092         over collating symbol inside a bracket expression.  Minor cleanup.
20093         * posix/tst-fnmatch3.c (do_test): Add test case.
20094
20095 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20096
20097         [BZ #18029]
20098         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
20099         Adjust exponent of power of 2 down when low part has opposite
20100         sign.
20101         * math/libm-test.inc (ilogb_test_data): Add more tests.
20102
20103 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
20104
20105         [BZ #15969]
20106         * locale/findlocale.c (_nl_find_locale): Fix constness error in
20107         the previous change.
20108
20109         [BZ #15969]
20110         * locale/findlocale.c (_nl_find_locale): Retry archive search
20111         after alias expansion.
20112
20113 2015-02-25  Roland McGrath  <roland@hack.frob.com>
20114
20115         * iconv/tst-iconv3.c (main): Converted to ...
20116         (do_test): ... this.
20117         (TEST_FUNCTION): New macro.
20118         Include test-skeleton.c.
20119
20120         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
20121         (convert): Make function static.
20122         (test_unalign): Likewise.  Add const to argument pointee types.
20123         (main): Replace with static function do_test.
20124         Print "Succeeded." only if RET is zero.
20125         (TEST_FUNCTION): New macro.
20126         Include test-skeleton.c.
20127
20128         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
20129         returns a null pointer.
20130
20131 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20132
20133         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
20134         to __memcpy_ppc only for static builds.
20135
20136 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
20137
20138         [BZ #18020]
20139         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
20140         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
20141         * math/auto-libm-test-in: Add more tests of asinh.
20142         * math/auto-libm-test-out: Regenerated.
20143         * sysdeps/i386/fpu/libm-test-ulps: Update.
20144         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20145
20146 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
20147
20148         [BZ #15850]
20149         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
20150         and ip6_mtuinfo definitions here.
20151         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
20152         in this define too.  Update comment.
20153
20154 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
20155
20156         * elf/sprof.c (load_shobj): Tweak error message to match others.
20157
20158 2015-02-24  Kevin Easton  <kevin@guarana.org>
20159
20160         [BZ #16145] (partial fix)
20161         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
20162         to reduce lock contention.
20163
20164 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
20165
20166         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
20167         (struct timex): Update time comment.
20168         (ADJ_SETOFFSET): Define.
20169
20170 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20171
20172         [BZ #18019]
20173         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20174         2**56 not 2**28 as threshold for log (2x) formula.
20175         * math/auto-libm-test-in: Add more tests of acosh.
20176         * math/auto-libm-test-out: Regenerated.
20177         * sysdeps/i386/fpu/libm-test-ulps: Update.
20178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20179
20180 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20181
20182         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
20183         parenthesis around the buf assignment.
20184         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
20185
20186 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20187
20188         [BZ #16783]
20189         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
20190         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
20191         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
20192         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20193         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20194         * math/libm-test.inc (scalb_test_data): Add more tests.
20195
20196 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
20197
20198         [BZ #17916]
20199         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
20200         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
20201
20202 2015-02-24  Eric Rannaud  <e@nanocritical.com>
20203
20204         [BZ #17523]
20205         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
20206         * io/bits/fcntl2.h (open): Use it.
20207         (openat): Likewise.
20208         * io/open.c (__libc_open): Likewise.
20209         * io/open64.c (__libc_open64): Likewise.
20210         * io/open64_2.c (__open64_2): Likewise.
20211         * io/open_2.c (__open_2): Likewise.
20212         * io/openat.c (__openat): Likewise.
20213         * io/openat64.c (__openat64): Likewise.
20214         * io/openat64_2.c (__openat64_2): Likewise.
20215         * io/openat_2.c (__openat_2): Likewise.
20216         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
20217         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
20218         * sysdeps/posix/open64.c (__libc_open64): Likewise.
20219         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
20220         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
20221         (__open_nocancel): Likewise.
20222         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
20223         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
20224         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
20225
20226 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20227
20228         [BZ #14841]
20229         * resolv/gethnamaddr.c (getanswer): Skip logging if
20230         RES_USE_DNSSEC is set.
20231         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
20232
20233 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20234
20235         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
20236
20237 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
20238
20239         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
20240         201304L, for Unicode 7.
20241
20242 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
20243
20244         [BZ #17836]
20245         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
20246         shared library.  Add gmon-start.os otherwise.
20247         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
20248         $(objpfx)gmon-start.os if builing shared library.
20249         ($(objpfx)g$(static-start-installed-name)): Likewise.
20250
20251 2015-02-23  Andreas Schwab  <schwab@suse.de>
20252
20253         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
20254
20255 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
20256
20257         [BZ #17269]
20258         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
20259         (enlarge_userbuf): Likewise.
20260
20261 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
20262
20263         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
20264         * math/atest-exp.c (TIMEOUT): Adjust to 200.
20265         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
20266         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
20267
20268 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
20269
20270         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
20271         expression inside statement expression.
20272
20273 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20274
20275         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
20276         <sysdeps/nptl/lowlevellock.h> and remove macros and
20277         functions that are now defined there.
20278         (SYS_futex): Remove.
20279         (lll_compare_and_swap): Remove.
20280         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
20281
20282 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
20283
20284         [BZ #17999]
20285         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
20286         instead of scandirat.
20287         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
20288         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
20289         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
20290         __scandirat.
20291         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
20292         (__scandirat): Declare.  Use libc_hidden_proto.
20293         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
20294         Remove variable.
20295         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
20296
20297 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20298
20299         [BZ #15319]
20300         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
20301         (MO): New macro.
20302         (__ieee754_atan2): For results with small absolute value, force
20303         underflow exception and remove excess range and precision from
20304         return value.
20305         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
20306         (MO): New macro.
20307         (__ieee754_atan2f): For results with small absolute value, force
20308         underflow exception and remove excess range and precision from
20309         return value.
20310         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
20311         (MO): New macro.
20312         (__atan): For results with small absolute value, force underflow
20313         exception and remove excess range and precision from return value.
20314         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
20315         (MO): New macro.
20316         (__atanf): For results with small absolute value, force underflow
20317         exception and remove excess range and precision from return value.
20318         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
20319         <math.h>.
20320         (__ieee754_atan2): Force underflow exception for results with
20321         small absolute value.
20322         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
20323         <math_private.h>.
20324         (atan): Force underflow exception for results with small absolute
20325         value.
20326         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
20327         (__atanf): Force underflow exception for results with small
20328         absolute value.
20329         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
20330         <math.h>.
20331         (__atanl): Force underflow exception for results with small
20332         absolute value.
20333         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
20334         (__atanl): Force underflow exception for results with small
20335         absolute value.
20336         * sysdeps/x86/fpu/bits/mathinline.h
20337         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
20338         (__ieee754_atan2): Only define inline for long double.
20339         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
20340         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
20341         * math/auto-libm-test-in: Do not mark underflow exceptions as
20342         possibly missing for bug 15319.  Add more tests of atan2.
20343         * math/auto-libm-test-out: Regenerated.
20344         * math/libm-test.inc (casin_test_data): Do not mark underflow
20345         exceptions as possibly missing for bug 15319.
20346         (casinh_test_data): Likewise.
20347         * sysdeps/i386/fpu/libm-test-ulps: Update.
20348
20349 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
20350
20351         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
20352         * sysdeps/mips/bits/endian.h: Fix comments.
20353
20354 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20355
20356         [BZ #17996]
20357         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
20358         (hdestroy_r): Likewise.
20359         (hsearch_r): Likewise.
20360         (__hcreate_r): Declare and use libc_hidden_proto.
20361         (__hdestroy_r): Likewise.
20362         (__hsearch_r): Likewise.
20363         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
20364         (hcreate): Call __hcreate_r instead of hcreate_r.
20365         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
20366         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
20367         as weak alias of __hcreate_r.
20368         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
20369         __hdestroy_r.
20370         (hsearch_r): Rename to __hsearch_r and define as weak alias of
20371         __hsearch_r.
20372         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
20373         Remove variable.
20374         (test-xfail-XPG4/search.h/linknamespace): Likewise.
20375         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
20376         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
20377         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
20378
20379 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20380
20381         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
20382         arena_lock into a single arena_get.
20383
20384 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
20385
20386         * dl-reloc.c: Inlucde libc-internal.h.
20387         (_dl_try_allocate_static_tls): Call ALIGN_UP.
20388         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
20389         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
20390         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
20391         (grow_heap): Likewise.
20392         * malloc/malloc.c: Include libc-internal.h.
20393         (do_check_malloc): Call powerof2.
20394         (sysmalloc): Use pagesize. Call ALIGN_UP.
20395         (systrim): Use pagesize.
20396         (mremap_chunk): Use pagesize. Call ALIGN_UP.
20397         (__libc_valloc): Use pagesize.
20398         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
20399
20400 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20401
20402         [BZ #17991]
20403         * include/sys/resource.h (__getrlimit64): Declare.  Use
20404         libc_hidden_proto.
20405         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
20406         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
20407         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
20408         getrlimit64.
20409         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
20410         __getrlimit64.
20411         [!getrlimit64] (getrlimit64): Define as weak alias of
20412         __getrlimit64.  Use libc_hidden_weak.
20413         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
20414         using __getrlimit64 not __new_getrlimit64.
20415         (__GI_getrlimit64): Likewise.
20416         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
20417         Likewise.
20418         (__GI_getrlimit64): Likewise.
20419         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
20420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
20421         (getrlimit): Add __getrlimit64 alias.
20422         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
20423         Likewise.
20424         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
20425         Remove variable.
20426         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
20427         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
20428
20429 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
20430
20431         * libio/fileops.c: Add missing sys/mman.h
20432         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
20433
20434 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20435
20436         * manual/math.texi (Errors in Math Functions): Clarify goals
20437         regarding inexact and underflow exceptions.
20438
20439 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20440
20441         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20442         * sysdeps/mips/memset.S: Ditto.
20443
20444 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20445
20446         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20447
20448 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20449
20450         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20451         (__v1longjmp): Remove versioned symbol.
20452         (__v1siglongjmp): Remove alias and versioned symbol.
20453         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20454         (__v2siglongjmp): Likewise.
20455
20456 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20457
20458         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20459
20460 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20461
20462         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20463
20464 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20465
20466         [BZ #17987]
20467         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20468         zero result does not depend on the sign resulting from
20469         subtraction.
20470         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20471         Likewise.
20472         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20473         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20474         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20475         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20476         * math/libm-test.inc (remquo_test_data): Add more tests.
20477
20478 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20479
20480         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20481         Problem reported by J William Piggott.
20482
20483 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20484
20485         [BZ #17978]
20486         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20487         products 4 * y and 2 * y where those would overflow.
20488         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20489         Likewise.
20490         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20491         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20492         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20493         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20494         * math/libm-test.inc (remquo_test_data): Add more tests.
20495
20496         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20497
20498         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20499         [defined _COMPILING_NEWLIB].
20500         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20501         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20502
20503         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20504         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20505
20506 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20507
20508         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20509         acquired.
20510
20511 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20512
20513         [BZ #17792]
20514         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20515         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20516         HOST_STACK_END_ADDR): Likewise.
20517
20518 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20519
20520         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20521         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20522         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20523
20524 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20525
20526         * sysdeps/generic/c++-types.data: New file.
20527         * sysdeps/generic/ld.abilist: New file.
20528         * sysdeps/generic/libBrokenLocale.abilist: New file.
20529         * sysdeps/generic/libanl.abilist: New file.
20530         * sysdeps/generic/libc.abilist: New file.
20531         * sysdeps/generic/libcrypt.abilist: New file.
20532         * sysdeps/generic/libdl.abilist: New file.
20533         * sysdeps/generic/libm.abilist: New file.
20534         * sysdeps/generic/libpthread.abilist: New file.
20535         * sysdeps/generic/libresolv.abilist: New file.
20536         * sysdeps/generic/librt.abilist: New file.
20537
20538 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20539
20540         [BZ #17569]
20541         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20542         Compute absolute value of x as modified by fmod, not original
20543         value of x.
20544         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20545         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20546         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20547         RUN_TEST_ffI_f1_mod8.
20548         (remquo_test_data): Add more tests.
20549
20550 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20551
20552         * sysdeps/init_array/pt-crti.S: New file.
20553
20554 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20555
20556         [BZ #17967]
20557         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20558         __builtin_fmaf instead of relying on contraction of a * b + c.
20559
20560 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20561
20562         [BZ #17969]
20563         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20564         node.
20565
20566 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20567
20568         [BZ #17964]
20569         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20570         __builtin_fma instead of relying on contraction of a * b + c.
20571
20572 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20573
20574         * Makeconfig (ASFLAGS): Add -Werror=undef.
20575         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20576         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20577         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20578
20579         * Makeconfig (after-link): New variable.
20580         (+link-pie, +link-pie-tests): Use it.
20581         (+link-static, +link-static-tests): Likewise.
20582         (+link, +link-tests): Likewise.
20583         * Makerules (build-module, build-module-asneeded): Likewise.
20584         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20585         Likewise.
20586         * elf/Makefile ($(objpfx)ld.so): Likewise.
20587
20588 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20589
20590         [BZ #17965]
20591         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20592         both struct timeval and struct timespec.
20593
20594 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20595
20596         [BZ #16560]
20597         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20598         and redefine.
20599         (__ieee754_exp2l): Do not multiply small fractional parts by
20600         M_LN2l.
20601         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20602         small argument.
20603         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20604         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20605         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20606         * math/auto-libm-test-in: Add more tests of exp2.
20607         * math/auto-libm-test-out: Regenerated.
20608
20609 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20610
20611         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20612         unaligned path.
20613
20614 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20615
20616         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20617         little endian.
20618
20619 2015-02-12  Andreas Schwab  <schwab@suse.de>
20620
20621         [BZ #15790]
20622         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20623         Filter out elision flags from value returned in kind.
20624         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20625         * nptl/tst-pthread-mutexattr.c: New file.
20626
20627 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20628
20629         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20630         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20631         into gnu-gnu, and update comment to refer to abi-tags.
20632
20633 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20634
20635         [BZ #15467]
20636         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20637         (__sincos): Set errno to EDOM for infinite argument.
20638         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20639         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20640         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20641         (__sincosl): Set errno to EDOM for infinite argument.
20642         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20643         (__sincosl): Set errno to EDOM for infinite argument.
20644         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20645         (__sincosl): Set errno to EDOM for infinite argument.
20646         * math/libm-test.inc (sincos_test_data): Test errno setting.
20647
20648 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20649
20650         * string/strxfrm_l.c: Remove #define STRCMP.
20651         * string/strcoll_l.c: Remove #define STRLEN.
20652         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20653         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20654
20655 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20656
20657         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20658         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20659         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20660         * sysdeps/mips/mips64/Makefile: ... here.
20661         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20662         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20663         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20664         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20665         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20666         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20667         * sysdeps/mips/mips64/n64/Implies: Likewise.
20668
20669 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20670
20671         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20672         <sys/time.h>, <string.h>, and <errno.h>.
20673         (dest_offset, dest_address, value, zero): Remove unused variables.
20674         (ldouble): Remove typedef.
20675         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20676         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20677         1).  Fix code style.
20678         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20679         (check): Function removed.
20680         (CHECK): New macro.
20681         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20682         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20683         Don't call set_sigaction_FP and remove_sigaction_FP here.
20684         (ldouble_test): Just use 'long double' as macro argument, no need for
20685         the 'ldouble' typedef.
20686         (do_test): Set up SIGFPE handler at start, using plain signal rather
20687         than sigaction.  Fix code style.
20688
20689 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20690
20691         [BZ #17949]
20692         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20693         jump label.
20694
20695 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20696
20697         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20698         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20699
20700         * sysdeps/powerpc/configure.ac: Remove file.
20701         * sysdeps/powerpc/configure: Likewise.
20702
20703         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20704         [sysdep_routines]: Remove wordcopy-power6 object.
20705         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20706         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20707         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20708         (__memmove_ppc32): Likewise.
20709         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20710         file.
20711         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20712         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20713         Remove preprocessor.
20714
20715         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20716         [sysdep_routines]: Remove wide chars objects.
20717         [wcsmbs]: New rule for wide char objects.
20718
20719         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20720         Remove wordcopy-power6 obejct.
20721         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20722         Use local call for wordcopy and memcpy symbols.
20723         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20724         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20725         implementation for loader.
20726         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20727
20728         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20729         Remove wordcopy-power7 object.
20730         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20731         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20732         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20733         (_wordcopy_fwd_dest_aligned): Likewise.
20734         (_wordcopy_bwd_aligned): Likewise.
20735         (_wordcopy_bwd_dest_aligned): Likewise.
20736
20737         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20738         Rewrite to call __memmove_ppc instead of include default
20739         implementation.
20740
20741         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20742         Remove wide chars objects.
20743         [wcsmbs]: New rule for wide char objects.
20744
20745 2015-02-09  Andreas Schwab  <schwab@suse.de>
20746
20747         [BZ #17912]
20748         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20749         in terms of __O_DIRECTORY.
20750
20751 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20752
20753         * time/getdate.c: Include <stdbool.h>.
20754         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20755         call PTR_MANGLE.
20756         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20757         PTR_DEMANGLE.
20758
20759 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20760
20761         Add ersatz _Static_assert on older C hosts
20762         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20763         pre-C11 C platform that is not known to support _Static_assert.
20764
20765 2015-02-07  Richard Braun  <rbraun@sceen.net>
20766
20767         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20768         sigstate.
20769         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20770
20771 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20772
20773         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20774         priority against unexistent AIO_PRIO_DELTA_MAX.
20775         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20776         instead of int.
20777         * misc/fchflags.c (fchflags): Likewise.
20778         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20779         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20780         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20781         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20782         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20783         Declare macros.
20784         [__USE_MISC] (chflags, fchflags): Declare functions.
20785         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20786         EINVAL when nfds is greater than FD_SETSIZE.
20787         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20788         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20789         45.
20790         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20791         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20792         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20793         MACH_RCV_TIMED_OUT.
20794         * hurd/hurd/signal.h (_hurd_self_sigstate,
20795         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20796         Explicit casts from void *.
20797         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20798         * abi-tags: Rename gnu-gnu os into gnu.
20799
20800         [BZ #4719]
20801         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20802         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20803         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20804         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20805         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20806         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20807
20808         [BZ #17944]
20809         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20810         duplicates ADDR->sun_path with sockaddr LEN limitation.
20811         * sysdeps/mach/hurd/connect.c: Include <string.h>
20812         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20813         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20814         * sysdeps/mach/hurd/sendto.c: Likewise.
20815         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20816         implementing it by hand.
20817
20818 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20819
20820         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20821         Use sfi_breg on ldr.
20822         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20823         Likewise.
20824
20825         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20826         it's defined.
20827         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20828         Test SIGSETXID only if it's defined.
20829
20830         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20831
20832         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20833         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20834
20835         * nptl/tst-align2.c: Moved ...
20836         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20837         * nptl/Makefile (tests): Remove tst-align2.
20838         * sysdeps/unix/sysv/linux/Makefile
20839         [$(subdir) = nptl] (tests): Add tst-align-clone.
20840         * nptl/tst-getpid1.c: Moved ...
20841         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20842         * nptl/tst-getpid2.c: Moved ...
20843         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20844         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20845         * sysdeps/unix/sysv/linux/Makefile
20846         [$(subdir) = nptl] (tests): ... here.
20847         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20848         * sysdeps/unix/sysv/linux/Makefile
20849         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20850
20851         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20852         Drop trailing \n from perror argument.  Use return rather than exit.
20853
20854         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20855         on [SA_SIGINFO].
20856         * nptl/tst-cancel21.c (do_test): Likewise.
20857         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20858         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20859         [!SA_SIGINFO]: Make it a stub test.
20860
20861         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20862         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20863
20864         * posix/tst-getlogin.c: Move to ...
20865         * login/tst-getlogin.c: ... here.
20866         * posix/Makefile (tests): Move tst-getlogin to ...
20867         * login/Makefile (tests): ... here.
20868
20869         * libio/tst-atime.c (do_test): Move local variables SV and E
20870         inside [ST_NOATIME] conditional.
20871
20872         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20873
20874         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20875
20876         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20877         (wait_code): New function replaces macro.
20878         Call nanosleep rather than syscall.
20879
20880         * nptl/pt-system.c: Rewritten.  Put everything under
20881         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20882         Use IFUNC to redirect when possible.
20883
20884         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20885         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20886         Use IFUNC to redirect when possible.
20887
20888         * nptl/pt-fork.c: Rewritten.  Put everything under
20889         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20890         Use IFUNC to redirect when possible.
20891         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20892
20893         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20894         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20895         unconditionally nowadays.  This included the only reference to
20896         __vdso_clock_gettime that appears outside libc proper.
20897         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20898         Remove version set (containing only __vdso_clock_gettime).
20899         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20900         Add attribute_hidden.
20901         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20902         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20903         libc_hidden_data_def.
20904         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
20905         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20906
20907         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
20908         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
20909         setrpcent, and getrpcport to ...
20910         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
20911         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
20912         getrpcbynumber_r, and getrpcent_r to ...
20913         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
20914         * inet/getrpcbyname.c: Moved ...
20915         * sunrpc/getrpcbyname.c: ... here.
20916         * inet/getrpcbyname_r.c: Moved ...
20917         * sunrpc/getrpcbyname_r.c: ... here.
20918         * inet/getrpcbynumber.c: Moved ...
20919         * sunrpc/getrpcbynumber.c: ... here.
20920         * inet/getrpcbynumber_r.c: Moved ...
20921         * sunrpc/getrpcbynumber_r.c: ... here.
20922         * inet/getrpcent.c: Moved ...
20923         * sunrpc/getrpcent.c: ... here.
20924         * inet/getrpcent_r.c: Moved ...
20925         * sunrpc/getrpcent_r.c: ... here.
20926         * inet/Makefile (routines): Move those to ...
20927         * sunrpc/Makefile (routines): ... here.
20928         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
20929         the $(subdirs) list.
20930         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
20931         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
20932         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
20933         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
20934
20935         * elf/Makefile (routines): Include $(all-dl-routines), not just
20936         $(dl-routines).
20937         (rtld-routines): Likewise.  Use = rather than :=.
20938         * sysdeps/aarch64/Makefile [$(subdir) = elf]
20939         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
20940         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
20941         * sysdeps/arm/Makefile: Likewise.
20942         * sysdeps/i386/Makefile: Likewise.
20943         * sysdeps/x86_64/Makefile: Likewise.
20944         * sysdeps/hppa/Makefile [$(subdir) = elf]
20945         (sysdep_routines, sysdep-rtld-routines): Don't add
20946         $(sysdep-dl-routines) to these.
20947         * sysdeps/ia64/Makefile: Likewise.
20948         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
20949         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
20950         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
20951         Don't add dl-static to these; sysdep-dl-routines alone is enough.
20952         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
20953         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
20954         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
20955         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
20956         * sysdeps/powerpc/Makefile [$(subdir) = elf]
20957         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
20958         these; sysdep-dl-routines alone is enough.
20959
20960 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
20961
20962         [BZ #17932]
20963         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
20964         where multiplication results in zero and third argument is finite
20965         and nonzero.
20966         * math/auto-libm-test-in: Add more tests of fma.
20967         * math/auto-libm-test-out: Regenerated.
20968
20969         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
20970         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
20971         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
20972         (_FP_CMP_EQ): Likewise.
20973         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
20974
20975         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
20976         extra argument CHECK_NAN.  Redefine as wrapper around
20977         _FP_EXTEND_CNAN.
20978
20979 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
20980
20981         * version.h (RELEASE): Set to "stable".
20982         (VERSION): Set to "2.21"
20983         * include/features.h (__GLIBC_MINOR__): Set to 21.
20984
20985         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
20986
20987 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20988             Paul Eggert  <eggert@cs.ucla.edu>
20989
20990         [BZ #16618]
20991         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
20992         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
20993         size in bytes. Store needed elements in wpmax. Use needed size
20994         in bytes for extend_alloca.
20995
20996 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
20997
20998         * manual/install.texi: Latest tested versions are GCC 4.9.2,
20999         binutls 2.25, and texinfo 5.2.
21000         * INSTALL: Regenerate.
21001         * sysdeps/nios2/configure: Regenerate.
21002         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
21003         * manual/contrib.texi: Update.
21004         * po/be.po: Update.
21005         * po/bg.po: Update.
21006         * po/ca.po: Update.
21007         * po/cs.po: Update.
21008         * po/da.po: Update.
21009         * po/de.po: Update.
21010         * po/el.po: Update.
21011         * po/eo.po: Update.
21012         * po/es.po: Update.
21013         * po/fi.po: Update.
21014         * po/fr.po: Update.
21015         * po/gl.po: Update.
21016         * po/hr.po: Update.
21017         * po/hu.po: Update.
21018         * po/ia.po: Update.
21019         * po/id.po: Update.
21020         * po/it.po: Update.
21021         * po/ja.po: Update.
21022         * po/ko.po: Update.
21023         * po/lt.po: Update.
21024         * po/nb.po: Update.
21025         * po/nl.po: Update.
21026         * po/pl.po: Update.
21027         * po/pt_BR.po: Update.
21028         * po/ru.po: Update.
21029         * po/rw.po: Update.
21030         * po/sk.po: Update.
21031         * po/sl.po: Update.
21032         * po/sv.po: Update.
21033         * po/tr.po: Update.
21034         * po/uk.po: Update.
21035         * po/vi.po: Update.
21036         * po/zh_CN.po: Update.
21037         * po/zh_TW.po: Update.
21038
21039         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
21040         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
21041         * sysdeps/hppa/dl-irel.h: Remove #warning.
21042         * sysdeps/hppa/entry.h: Provide prototype for
21043         __canonicalize_funcptr_for_compare and cast argument.
21044         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
21045         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
21046         * sysdeps/hppa/sotruss-lib.c: New file.
21047         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
21048         (atomic_compare_and_exchange_val_acq): Use __typeof__.
21049         (atomic_compare_and_exchange_bool_acq): Likewise.
21050         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
21051         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
21052
21053         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
21054         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
21055         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
21056
21057 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
21058
21059         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
21060         called function in non-PIC case.
21061
21062 2015-01-31  David S. Miller  <davem@davemloft.net>
21063
21064         * sysdeps/sparc/sparc32/bits/atomic.h
21065         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
21066         unlock not after it.
21067         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
21068         volatile register usage warnings from the compiler.
21069
21070         * sysdeps/sparc/nptl/sem_init.c: Delete.
21071         * sysdeps/sparc/nptl/sem_post.c: Delete.
21072         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
21073         * sysdeps/sparc/nptl/sem_wait.c: Delete.
21074         * sysdeps/sparc/sparc32/sem_init.c: New file.
21075         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
21076         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
21077         padding explicitly initialized.
21078         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
21079         padding for in-semaphore spinlock.
21080         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
21081         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
21082         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
21083         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
21084         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
21085         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
21086         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
21087         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
21088         version.
21089         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
21090         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
21091
21092 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
21093
21094         [BZ #17801]
21095         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21096         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
21097         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
21098         New.
21099         (index_AVX_Fast_Unaligned_Load): Likewise.
21100         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
21101         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
21102         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
21103         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
21104         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
21105         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
21106         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
21107         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
21108         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
21109
21110 2015-01-29  Andreas Schwab  <schwab@suse.de>
21111
21112         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
21113
21114 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
21115
21116         [BZ #17892]
21117         * nscd/nscd_stat.c (send_stats): Initialize DATA.
21118
21119 2015-01-28  Martin Sebor  <msebor@redhat.com>
21120
21121         * math/README.libm-test: Clarify. Add "How to read the test output."
21122
21123 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
21124
21125         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
21126         Define to 0.
21127
21128 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
21129
21130         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
21131         (__HAVE_64B_ATOMICS): Define to 0.
21132
21133 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21134
21135         [BZ #17885]
21136         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
21137         value to set as new flag.
21138
21139         [BZ #16576]
21140         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
21141         and use _ARCH_PPCSQ instead.
21142         (__ieee754_sqrt): Likewise.
21143         (__ieee754_sqrtf): Likewise.
21144         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
21145         _ARCH_PPCSQ is defined.
21146         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
21147         fsqrt instruction.
21148         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
21149         _ARCH_PPCSQ is defined.
21150         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
21151         fsqrts instruction.
21152         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
21153
21154 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21155
21156         * iconv/loop.c: Suppress array out of bound warning caused by GCC
21157         bug (GCC BZ #64739).
21158
21159 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
21160
21161         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
21162         Mark _retval as used.
21163         (lll_futex_wake_unlock): Likewise.
21164         (lll_futex_timed_wait_requeue_pi): Likewise.
21165
21166         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
21167         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
21168         register variables.
21169
21170         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
21171         libm_hidden_def.
21172
21173         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
21174         (__bswap_64): Mark as __always_inline.
21175
21176 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
21177
21178         [BZ #15378]
21179         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
21180         when none of the search directories exist.
21181
21182 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21183
21184         [BZ #17869]
21185         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
21186         power8 in .machine directive.
21187
21188         [BZ #17868]
21189         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
21190         set dependency from opd value.
21191
21192 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21193
21194         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21195         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
21196         architecture.
21197
21198 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21199
21200         [BZ #17870]
21201         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
21202         with uint64_t.
21203         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
21204         (uint64_t) 1.
21205         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
21206         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
21207         Replace 1UL with (uint64_t) 1.
21208         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
21209         int with uint64_t.
21210
21211 2015-01-23  Roland McGrath  <roland@hack.frob.com>
21212
21213         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
21214         (if_freenameindex): Likewise.
21215
21216         * resource/getrlimit64.c: Add missing libc_hidden_def.
21217
21218 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
21219
21220         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
21221         __label__.
21222         (_FP_FMA): Likewise.
21223         (_FP_TO_INT_ROUND): Likewise.
21224         (_FP_FROM_INT): Likewise.
21225
21226 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21227
21228         [BZ #16418]
21229         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
21230         Make code racy and cancel safe.
21231
21232 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
21233
21234         * sysdeps/arm/unwind-resume.h: Fix copyright year.
21235         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
21236         attribution.
21237
21238         * pwd/tst-getpw.c: Rewrite.
21239
21240         [BZ #17702]
21241         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
21242         (modules-names): Add moddummy1 and moddummy2.
21243         ($(objpfx)tst-rec-dlopen): Define.
21244         * dlfcn/moddummy1.c: New file.
21245         * dlfcn/moddummy2.c: New file.
21246         * dlfcn/tst-rec-dlopen.c: New file.
21247         * elf/dl-cache.c (_dl_load_cache_lookup):
21248         Return char*. Copy result with alloca/strcpy/strdup.
21249         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
21250         returns char*. Free cached. If not saving realname
21251         free cached.
21252         * elf/dl-open.c (dl_open_worker): Do not assert that
21253         _r_debug->r_state is RT_CONSISTENT.
21254         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
21255         returns char*.
21256
21257 2015-01-21  Torvald Riegel  <triegel@redhat.com>
21258             Carlos O'Donell  <carlos@redhat.com>
21259
21260         [BZ #12674]
21261         * nptl/sem_waitcommon.c: New file.
21262         * nptl/sem_wait.c: Include sem_waitcommon.c.
21263         (__sem_wait_cleanup, do_futex_wait): Remove.
21264         (__new_sem_wait): Adapt.
21265         (__new_sem_trywait): New function.
21266         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
21267         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
21268         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
21269         (sem_timedwait): Adapt.
21270         * nptl/sem_post.c (__new_sem_post): Adapt.
21271         (futex_wake): New function.
21272         (__old_sem_post): Add release MO fence.
21273         * nptl/sem_open.c (sem_open): Adapt.
21274         * nptl/sem_init.c (__new_sem_init): Adapt.
21275         (futex_private_if_supported): New function.
21276         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
21277         (__old_sem_getvalue): Add using previous code.
21278         * sysdeps/nptl/internaltypes.h: Adapt.
21279         * nptl/tst-sem13.c (do_test): Adapt.
21280         * nptl/tst-sem11.c (main): Adapt.
21281         * nptl/sem_trywait.c: Remove.
21282         * nptl/DESIGN-sem.txt: Remove.
21283         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
21284         (gen-as-const-headers): Remove structsem.sym.
21285         * nptl/structsem.sym: Remove.
21286         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
21287         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
21288         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
21289         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
21290         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
21291         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
21292         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
21293         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
21294         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
21295         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
21296         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
21297         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
21298         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
21299         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
21300         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
21301         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
21302         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
21303         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
21304         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
21305         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
21306         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
21307         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
21308
21309 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
21310
21311         * INSTALL: Regenerated.
21312
21313         * po/libc.pot: Regenerated.
21314
21315 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
21316             Sandra Loosemore  <sandra@codesourcery.com>
21317             Andrew Jenner  <andrew@codesourcery.com>
21318             Joseph Myers  <joseph@codesourcery.com>
21319             Nathan Sidwell  <nathan@codesourcery.com>
21320
21321         * NEWS: Mention new Nios II port.
21322         * sysdeps/nios2/Implies: New file.
21323         * sysdeps/nios2/Makefile: New file.
21324         * sysdeps/nios2/Subdirs: New file.
21325         * sysdeps/nios2/Versions: New file.
21326         * sysdeps/nios2/__longjmp.S: New file.
21327         * sysdeps/nios2/abort-instr.h: New file.
21328         * sysdeps/nios2/backtrace.c: New file.
21329         * sysdeps/nios2/bits/endian.h: New file.
21330         * sysdeps/nios2/bits/fenv.h: New file.
21331         * sysdeps/nios2/bits/link.h: New file.
21332         * sysdeps/nios2/bits/setjmp.h: New file.
21333         * sysdeps/nios2/bsd-_setjmp.S: New file.
21334         * sysdeps/nios2/bsd-setjmp.S: New file.
21335         * sysdeps/nios2/configure: New generated file.
21336         * sysdeps/nios2/configure.ac: New file.
21337         * sysdeps/nios2/crti.S: New file.
21338         * sysdeps/nios2/crtn.S: New file.
21339         * sysdeps/nios2/dl-init.c: New file.
21340         * sysdeps/nios2/dl-machine.h: New file.
21341         * sysdeps/nios2/dl-sysdep.h: New file.
21342         * sysdeps/nios2/dl-tls.h: New file.
21343         * sysdeps/nios2/dl-trampoline.S: New file.
21344         * sysdeps/nios2/gccframe.h: New file.
21345         * sysdeps/nios2/gmp-mparam.h: New file.
21346         * sysdeps/nios2/jmpbuf-offsets.h: New file.
21347         * sysdeps/nios2/jmpbuf-unwind.h: New file.
21348         * sysdeps/nios2/ldsodefs.h: New file.
21349         * sysdeps/nios2/libc-tls.c: New file.
21350         * sysdeps/nios2/libm-test-ulps: New file.
21351         * sysdeps/nios2/machine-gmon.h: New file.
21352         * sysdeps/nios2/math-tests.h: New file.
21353         * sysdeps/nios2/math_private.h: New file.
21354         * sysdeps/nios2/memusage.h: New file.
21355         * sysdeps/nios2/nptl/Makefile: New file.
21356         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
21357         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
21358         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
21359         * sysdeps/nios2/nptl/pthreaddef.h: New file.
21360         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
21361         * sysdeps/nios2/nptl/tls.h: New file.
21362         * sysdeps/nios2/preconfigure: New file.
21363         * sysdeps/nios2/s_fma.c: New file.
21364         * sysdeps/nios2/s_fmaf.c: New file.
21365         * sysdeps/nios2/setjmp.S: New file.
21366         * sysdeps/nios2/sfp-machine.h: New file.
21367         * sysdeps/nios2/sotruss-lib.c: New file.
21368         * sysdeps/nios2/stackguard-macros.h: New file.
21369         * sysdeps/nios2/stackinfo.h: New file.
21370         * sysdeps/nios2/start.S: New file.
21371         * sysdeps/nios2/sysdep.h: New file.
21372         * sysdeps/nios2/tls-macros.h: New file.
21373         * sysdeps/nios2/tst-audit.h: New file.
21374         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
21375         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
21376         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
21377         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
21378         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
21379         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
21380         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
21381         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
21382         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
21383         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
21384         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
21385         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
21386         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
21387         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
21388         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
21389         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
21390         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
21391         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
21392         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
21393         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
21394         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
21395         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
21396         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
21397         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
21398         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
21399         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
21400         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
21401         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
21402         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
21403         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
21404         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
21405         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
21406         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
21407         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
21408         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
21409         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
21410         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
21411         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
21412         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
21413         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
21414         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
21415         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
21416         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
21417         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
21418
21419 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21420
21421         [BZ #17844]
21422         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
21423         (getutent): Use weak_alias in non SHARED case
21424         and default_symbol_version in SHARED case.
21425         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
21426         (getutent_r, pututline): Likewise.
21427         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
21428         (getutid): Likewise.
21429         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
21430         (getutid_r): Likewise.
21431         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
21432         (getutline): Likewise.
21433         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
21434         (getutline_r): Likewise.
21435         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
21436         (updwtmp): Likewise.
21437
21438 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21439
21440         [BZ #17848]
21441         * sysdeps/s390/s390-32/memcmp.S
21442         (memcmp_g5): Rename to __memcmp_g5.
21443         * sysdeps/s390/s390-32/memcpy.S
21444         (memcpy_g5): Rename to __memcpy_g5.
21445         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21446         (memcpy_mvcle) Rename to __memcpy_mvcle.
21447         * sysdeps/s390/s390-32/memset.S
21448         (memset_g5): Rename to __memset_g5.
21449         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21450         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21451         and use prefixed functions.
21452         * sysdeps/s390/s390-32/multiarch/memcmp.S
21453         (memcmp_z196): Rename to __memcmp_z196.
21454         (memcmp_z10): Rename to __memcmp_z10.
21455         (memcmp): Set alias to __memcmp_g5.
21456         (bcmp): Set alias to __memcmp_g5.
21457         * sysdeps/s390/s390-32/multiarch/memcpy.S
21458         (memcpy_z196): Rename to __memcpy_z196.
21459         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21460         (memcpy_z10): Rename to __memcpy_z10.
21461         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21462         (memcpy): Set alias to __memcpy_g5.
21463         * sysdeps/s390/s390-32/multiarch/memset.S
21464         (memset_z196): Rename to __memset_z196.
21465         Jump to __memset_mvcle instead of memset_mvcle.
21466         (memset_z10): Rename to __memset_z10.
21467         Jump to __memset_mvcle instead of memset_mvcle.
21468         (memset_mvcle) Rename to __memset_mvcle.
21469         (memset): Set alias to __memset_g5.
21470         * sysdeps/s390/s390-64/memcmp.S
21471         (memcmp_z900): Rename to __memcmp_z900.
21472         * sysdeps/s390/s390-64/memcpy.S
21473         (memcpy_z900): Rename to __memcpy_z900.
21474         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21475         (memcpy_mvcle) Rename to __memcpy_mvcle.
21476         * sysdeps/s390/s390-64/memset.S
21477         (memset_z900): Rename to __memset_z900.
21478         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21479         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21480         and use prefixed functions.
21481         * sysdeps/s390/s390-64/multiarch/memcmp.S
21482         (memcmp_z196): Rename to __memcmp_z196.
21483         (memcmp_z10): Rename to __memcmp_z10.
21484         (memcmp): Set alias to __memcmp_z900.
21485         (bcmp): Set alias to __memcmp_z900.
21486         * sysdeps/s390/s390-64/multiarch/memcpy.S
21487         (memcpy_z196): Rename to __memcpy_z196.
21488         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21489         (memcpy_z10): Rename to __memcpy_z10.
21490         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21491         (memcpy): Set alias to __memcpy_z900.
21492         * sysdeps/s390/s390-64/multiarch/memset.S
21493         (memset_z196): Rename to __memset_z196.
21494         Jump to __memset_mvcle instead of memset_mvcle.
21495         (memset_z10): Rename to __memset_z10.
21496         Jump to __memset_mvcle instead of memset_mvcle.
21497         (memset_mvcle) Rename to __memset_mvcle.
21498         (memset): Set alias to __memset_z900.
21499
21500 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21501
21502         [BZ #17748]
21503         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21504         __fesetenv instead of fesetenv.
21505
21506 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21507
21508         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21509         macro.
21510
21511 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21512
21513         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21514         regression on LE.
21515
21516         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21517         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21518         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21519         strncmp-power8 object.
21520         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21521         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21522         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21523         * NEWS: Update.
21524
21525 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21526             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21527
21528         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21529         trailing byte check.
21530
21531 2015-01-13  David S. Miller  <davem@davemloft.net>
21532
21533         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21534
21535 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21536
21537         * login/logout.c (logout): Use memset rather than bzero.
21538         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21539         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21540         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21541         (_gethtbyaddr): Likewise.
21542         * locale/programs/simple-hash.c (bcopy): Macro removed.
21543
21544 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21545
21546         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21547         Add strcmp-power8 object.
21548         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21549         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21550         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21551         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21552         __strcmp_power8 implementation.
21553         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21554         * NEWS: Update.
21555
21556         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21557         Add strncpy-power8 and stpncpy-power8 objects.
21558         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21559         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21560         implementations.
21561         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21562         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21563         __stpncpy_power8 implementation.
21564         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21565         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21566         __strncpy_power8 implementation.
21567         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21568         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21569         * NEWS: Update.
21570
21571         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21572         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21573         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21574
21575         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21576         strncat-power8 object.
21577         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21578         __strcat_power8 implementation.
21579         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21580         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21581         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21582         optimized strcat for power8.
21583
21584         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21585         strcpy-power8 and stpcpy-power8 objects.
21586         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21587         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21588         implementations.
21589         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21590         multiarch stpcpy implementation for POWER8.
21591         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21592         multiarch strcpy implementation for POWER8.
21593         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21594         __strcpy_power8 function.
21595         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21596         stpcpy for POWER8.
21597         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21598         strcpy for POWER8.
21599         * NEWS: Update.
21600
21601 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21602
21603         [BZ #16009]
21604         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21605         weights and rules. Use do_xfrm_cached if data fits in cache,
21606         do_xfrm otherwise.  Moved former main loop to...
21607         * (do_xfrm_cached): New function.
21608         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21609         find_idx, find_position and stack_push.
21610         * (find_idx): New function.
21611         * (find_position): Likewise.
21612         * localedata/sort-test.sh: Added test run for do_xfrm.
21613         * localedata/xfrm-test.c (main): Added command line option
21614         -nocache to run the test with strings that are too large for
21615         the STRXFRM cache.
21616
21617 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21618
21619         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21620         variable to lll_futex_wake call, not the value itself.
21621
21622 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21623
21624         [BZ #17803]
21625         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21626         twom64.  Adjust value to 0x1p-64L.
21627         (__scalblnl): Only return standard underflowing result for K <=
21628         -64 not K <= -63; adjust exponent for underflowing result by 64
21629         not 63.
21630         * math/libm-test.inc (scalbn_test_data): Add more tests.
21631         (scalbln_test_data): Likewise.
21632
21633         [BZ #17834]
21634         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21635         0x1p63L.
21636         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21637         not HX.
21638         * math/libm-test.inc (scalbn_test_data): Add more tests.
21639         (scalbln_test_data): Likewise.
21640
21641 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21642             Stefani Seibold  <stefani@seibold.net>
21643
21644         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21645         (sysdep_routines): Add dl-vdso here, ...
21646         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21647         (sysdep_routines): ... not here.
21648         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21649         fallback when vDSO is not presented.
21650         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21651         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21652         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21653         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21654         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21655         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21656         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21657         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21658         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21659         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21660         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21661         fallback configurable symbol when vDSO is not available.
21662         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21663         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21664         be able to redefine fallback symbol when vDSO is not available.
21665         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21666         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21667
21668 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21669
21670         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21671         (TLS_INIT_TP): Add tm_capable initialization.
21672         (TLS_DEFINE_INIT_TP): Likewise.
21673         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21674         TCB.
21675         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21676         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21677         calculation.
21678         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21679         transactoion is lock elision is built and TCB tm_capable is set.
21680         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21682         (INTERNAL_SYSCALL_NCS): Likewise.
21683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21684         (INTERNAL_SYSCALL_NCS): Likewise.
21685         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21686
21687         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21688         for powerpc.
21689         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21690         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21691         and remove it for 32 bits case.
21692         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21693         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21694         initialization.
21695         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21696         Disable lock elision with rdlocks if elision is not available.
21697
21698         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21699         (sysdep_routines): Add lock elision objects.
21700         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21701         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21702         [pthread_mutex_t] (__elision): Add field.
21703         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21704         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21705         elision definitions for powerpc.
21706         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21707         implementation of lock elision for powerpc.
21708         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21709         implementation of timed lock elision for powerpc.
21710         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21711         implementation of trylock with lock elision for powerpc.
21712         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21713         implementaion of unlock for lock elision for powerpc.
21714         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21715         automatic enable lock elision for mutexes.
21716         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21717         transaction execution definitions for powerpc.
21718         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21719         definitions.
21720         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21721         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21722         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21723         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21724         * NEWS: Update.
21725
21726 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21727
21728         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21729         for #include of <shm-directory.h>.
21730
21731 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21732
21733         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21734         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21735
21736 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21737
21738         [BZ #17791]
21739         * NEWS: Mention bug fix.
21740         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21741         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21742         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21743
21744 2015-01-09  Torvald Riegel <triegel@redhat.com>
21745
21746         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21747
21748 2015-01-09  Torvald Riegel <triegel@redhat.com>
21749
21750         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21751
21752 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21753
21754         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21755         pointer and cast to uintptr_t.
21756
21757 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21758
21759         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21760         removed.
21761         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21762
21763 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21764
21765         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21766         of 0.
21767
21768 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21769
21770         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21771         <nptl/pthreadP.h> instead.
21772         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21773
21774         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21775         already defined.
21776         [__SIGRTMIN] (init): Function removed.
21777         [__SIGRTMIN] (initialized): Variable removed.
21778         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21779         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21780         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21781         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21782         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21783         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21784         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21785         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21786         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21787         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21788         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21789         * sysdeps/nptl/allocrtsig.c: New file.
21790         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21791         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21792         * sysdeps/generic/testrtsig.h: File removed.
21793
21794         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21795         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21796
21797         * nptl/nptl-init.c (pthread_functions): Conditionalize
21798         .ptr__nptl_setxid initialization on [SIGSETXID].
21799
21800         * sysdeps/nptl/sys/procfs.h: New file.
21801         * nptl_db/Makefile (headers): Add it.
21802         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21803
21804         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21805         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21806         * nptl/pthread_attr_setaffinity.c: Include it.
21807         * nptl/pthread_setattr_default_np.c: Likewise.
21808         * nptl/check-cpuset.h: New file.
21809
21810 2015-01-08  Richard Henderson  <rth@redhat.com>
21811
21812         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21813         (CFLAGS-tst-execstack-prog.c): Likewise.
21814         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21815
21816 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21817             Sandra Loosemore  <sandra@codesourcery.com>
21818             Andrew Jenner  <andrew@codesourcery.com>
21819             Joseph Myers  <joseph@codesourcery.com>
21820             Nathan Sidwell  <nathan@codesourcery.com>
21821
21822         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21823         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21824         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21825         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21826         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21827         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21828         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21829         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21830         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21831         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21832         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21833         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21834         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21835         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21836         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21837         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21838         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21839
21840 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21841
21842         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21843         timespec struct member in syscall macro.
21844         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21845         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21846         first timeval struct member in syscall macro.
21847         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21848
21849 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21850
21851         [BZ #17748]
21852         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21853         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21854         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21855         __feupdateenv and define as weak alias of __feupdateenv.  Use
21856         libm_hidden_weak.
21857         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21858         libm_hidden_def.
21859         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21860         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21861         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21862         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21863         libm_hidden_def.
21864         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21865         __feupdateenv and define as weak alias of __feupdateenv.  Use
21866         libm_hidden_weak.
21867         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21868         libm_hidden_def.
21869         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21870         __feupdateenv and define as weak alias of __feupdateenv.  Use
21871         libm_hidden_weak.
21872         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21873         libm_hidden_def.
21874         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21875         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21876         (__feupdateenv): Likewise.
21877         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21878         __feupdateenv and define as weak alias of __feupdateenv.  Use
21879         libm_hidden_weak.
21880         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21881         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21882         libm_hidden_def.
21883         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21884         function.
21885         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21886         libm_hidden_def.
21887         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21888         __feupdateenv instead of feupdateenv.
21889         (default_libc_feupdateenv_test): Likewise.
21890         (libc_feresetround_ctx): Likewise.
21891
21892 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21893
21894         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21895         prototype.
21896
21897 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21898
21899         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21900         COLL_SYM in a couple of places to avoid uninitialized variable
21901         wanings on tilegx gcc 4.8.2.
21902
21903 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21904
21905         * sysdeps/aarch64/strcpy.S: New file.
21906         * sysdeps/aarch64/stpcpy.S: New file.
21907         * NEWS: Updated.
21908
21909 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21910
21911         * sysdeps/aarch64/strrchr.S: New file.
21912         * NEWS: Updated.
21913
21914 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
21915
21916         [BZ #17658]
21917         * stdlib/setenv.c: Fix memory leak when setting large,
21918         duplicate string.
21919
21920 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
21921
21922         [BZ #17273]
21923         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
21924         and tabs from buffer before parsing fstab entry.
21925         * misc/tst-mntent.c (main): Add test for mount entry with
21926         trailing spaces and tabs.
21927
21928 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
21929
21930         [BZ #17748]
21931         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
21932         * math/fesetround.c (fesetround): Rename to __fesetround and
21933         define as weak alias of __fesetround.  Use libm_hidden_weak.
21934         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
21935         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
21936         * sysdeps/arm/fesetround.c (fesetround): Likewise.
21937         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
21938         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
21939         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
21940         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
21941         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
21942         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
21943         __fesetround_inline.
21944         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
21945         __fesetround_inline instead of __fesetround.
21946         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
21947         __fesetround and define as weak alias of __fesetround.  Use
21948         libm_hidden_weak.  Call __fesetround_inline instead of
21949         __fesetround.
21950         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
21951         __fesetround and define as weak alias of __fesetround.  Use
21952         libm_hidden_weak.
21953         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
21954         Likewise.
21955         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
21956         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21957         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
21958         * sysdeps/tile/math_private.h (__fesetround): New inline function.
21959         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
21960         __fesetround and define as weak alias of __fesetround.  Use
21961         libm_hidden_weak.
21962         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
21963         __fesetround instead of fesetround.
21964         (default_libc_feholdexcept_setround): Likewise.
21965         (libc_feholdsetround_ctx): Likewise.
21966         (libc_feholdsetround_noex_ctx): Likewise.
21967
21968         [BZ #17748]
21969         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
21970         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
21971         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21972         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21973         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21974         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
21975         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21976         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
21977         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21978         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21979         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21980         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21981         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21982         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21983         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
21984         libm_hidden_def.
21985         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
21986         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
21987         Likewise.
21988         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
21989         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21990         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
21991         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21992         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
21993         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21994         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21995         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
21996         __fesetenv instead of fesetenv.
21997         (libc_feresetround_noex_ctx): Likewise.
21998         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
21999         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22000         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
22001         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22002         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22003         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22004         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22005         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22006         (__feupdateenv): Likewise.
22007         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22008         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22009         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22010         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
22011
22012 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22013
22014         [BZ #17806]
22015         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
22016         addresses have been freed.
22017
22018 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22019
22020         * resolv/res_init.c (__res_vinit): Improve comments about nserv
22021         and nservall.
22022
22023 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
22024
22025         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
22026         Clean up check_pf allocation pattern. addresses
22027
22028 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22029
22030         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
22031         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
22032         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
22033         * nptl/pthread_exit.c (__pthread_exit): Likewise.
22034         * nptl/pthread_join.c (pthread_join): Likewise.
22035         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
22036         * sysdeps/posix/waitid.c (__waitid): Likewise.
22037         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
22038         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
22039         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
22040         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
22041         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
22042         Likewise.
22043         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
22044         (__libc_pread64): Likewise.
22045         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
22046         (__libc_pwrite): Likewise.
22047         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
22048         (__libc_pwrite64): Likewsie.
22049         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
22050         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
22051         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
22052         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
22053         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
22054         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
22055         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
22056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
22057         Likewise.
22058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
22059         (__libc_pread64): Likewise.
22060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
22061         Likewise.
22062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
22063         (__libc_pwrite64): Likewise.
22064         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
22065         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
22066         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
22067         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
22068         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
22069         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
22070         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
22071         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
22072         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
22073         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
22074         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
22075         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
22076         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
22077         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
22078         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22079         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
22080         Likewise.
22081
22082 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
22083
22084         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
22085         (CFLAGS-test-double.c): Likewise.
22086         (CFLAGS-test-ldouble.c): Likewise.
22087         (CPPFLAGS-test-ifloat.c): Likewise.
22088         (CPPFLAGS-test-idouble.c): Likewise.
22089         (CPPFLAGS-test-ildoubl.c): Likewise.
22090         (CFLAGS-test-test-fenv.c): Remove variable.
22091         (CFLAGS-test-misc.c): Likewise.
22092
22093 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
22094
22095         [BZ #17797]
22096         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
22097         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
22098         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
22099         CLOCKS_PER_SEC == 1000000.
22100         * time/clocktest.c (main): Replace %ld with %jd and cast to
22101         intmax_t.
22102
22103 2015-01-05  Roland McGrath  <roland@hack.frob.com>
22104
22105         * sysdeps/generic/unwind-resume.h: New file.
22106         * sysdeps/gnu/unwind-resume.c: Include it.
22107         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
22108         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
22109         argument list.
22110         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
22111         global rather than static.
22112         (_Unwind_Resume): Update user.
22113         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
22114         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
22115         rather than static.  Add __attribute__ ((cold)).
22116         (_Unwind_Resume, __gcc_personality_v0): Update callers.
22117         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
22118         * sysdeps/arm/arm-unwind-resume.S: New file.
22119         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
22120         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
22121         * sysdeps/arm/Makefile [$(subdir) = csu]
22122         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
22123         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
22124         Add rt-arm-unwind-resume.
22125         [$(subdir) = nptl]
22126         (libpthread-sysdep_routines, libpthread-shared-only-routines):
22127         Add pt-arm-unwind-resume.
22128         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
22129         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
22130
22131 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22132
22133         [BZ #17748]
22134         * include/fenv.h (__feholdexcept): Declare.  Use
22135         libm_hidden_proto.
22136         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
22137         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
22138         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22139         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
22140         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
22141         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
22142         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
22143         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22144         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
22145         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
22146         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22147         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
22148         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
22149         (feholdexcept): Likewise.
22150         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
22151         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22152         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22153         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22154         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
22155         __feholdexcept instead of feholdexcept.
22156         (default_libc_feholdexcept_setround): Likewise.
22157
22158 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22159
22160         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
22161         to avoid using stl/str to align destination.
22162
22163 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22164
22165         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
22166
22167 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22168
22169         [BZ #17796]
22170         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
22171         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
22172         Define as weak alias not strong alias.
22173
22174 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22175
22176         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
22177         bltzal with addiupc.
22178         (RTLD_START): Ditto.
22179
22180 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
22181
22182         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
22183         for __vdso_* functions in declarations.
22184         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
22185         definitions.
22186         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
22187         INTERNAL_VSYSCALL): Use struct return types to check for error.
22188
22189         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
22190         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
22191         function with cast from llround().
22192         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
22193         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
22194         Define.
22195
22196 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22197
22198         [BZ #17793]
22199         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
22200         Define as weak alias not strong alias.
22201
22202         [BZ #17635]
22203         * ctype/ctype-c99.c: New file.  isblank implementation moved from
22204         ...
22205         * ctype/ctype-extn.c: ... here.
22206         (__isblank_l): Move to ...
22207         * ctype/ctype-c99_l.c: ... here.  New file.
22208         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
22209         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
22210         Remove variable.
22211         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
22212         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
22213         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
22214         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
22215         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
22216
22217         [BZ #17777]
22218         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
22219         (posix_fadvise64): Define as weak alias not strong alias.
22220         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22221         (posix_fallocate64): Likewise.
22222         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
22223         Remove variable.
22224         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
22225         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
22226         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
22227         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
22228         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
22229
22230 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
22231
22232         [BZ #16191]
22233         * NEWS: Mention bug fix.
22234         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
22235         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
22236         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
22237         (HOST_STACK_END_ADDR): Likewise.
22238
22239 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22240
22241         [BZ #17748]
22242         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
22243         * math/fegetround.c (fegetround): Rename to __fegetround and
22244         define as weak alias of __fegetround.  Use libm_hidden_weak.
22245         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
22246         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
22247         * sysdeps/arm/fegetround.c (fegetround): Likewise.
22248         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
22249         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
22250         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
22251         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
22252         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
22253         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
22254         Undefine after rather than before function definition; use
22255         parentheses around function name in definition.
22256         (__fegetround): Also undefine macro after function definition.
22257         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
22258         __fegetround and define as weak alias of __fegetround.  Use
22259         libm_hidden_weak.  Do not undefine as macro.
22260         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
22261         Likewise.
22262         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
22263         __fegetround and define as weak alias of __fegetround.  Use
22264         libm_hidden_weak.
22265         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22266         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
22267         * sysdeps/tile/math_private.h (__fegetround): New inline function.
22268         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
22269         __fegetround and define as weak alias of __fegetround.  Use
22270         libm_hidden_weak.
22271         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
22272         __fegetround instead of fegetround.
22273
22274         [BZ #17782]
22275         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
22276         Condition macro definition on [__USE_MISC].
22277
22278         [BZ #17781]
22279         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
22280         (struct sigaction): Change type of sa_flags field to int.
22281
22282         [BZ #17780]
22283         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
22284         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
22285         __glibc_reserved0.
22286
22287         * nptl/version.c (banner): Use single year in copyright notice.
22288
22289         * NEWS: Update copyright dates.
22290         * catgets/gencat.c (print_version): Likewise.
22291         * csu/version.c (banner): Likewise.
22292         * debug/catchsegv.sh: Likewise.
22293         * debug/pcprofiledump.c (print_version): Likewise.
22294         * debug/xtrace.sh (do_version): Likewise.
22295         * elf/ldconfig.c (print_version): Likewise.
22296         * elf/ldd.bash.in: Likewise.
22297         * elf/pldd.c (print_version): Likewise.
22298         * elf/sotruss.sh: Likewise.
22299         * elf/sprof.c (print_version): Likewise.
22300         * iconv/iconv_prog.c (print_version): Likewise.
22301         * iconv/iconvconfig.c (print_version): Likewise.
22302         * locale/programs/locale.c (print_version): Likewise.
22303         * locale/programs/localedef.c (print_version): Likewise.
22304         * login/programs/pt_chown.c (print_version): Likewise.
22305         * malloc/memusage.sh (do_version): Likewise.
22306         * malloc/memusagestat.c (print_version): Likewise.
22307         * malloc/mtrace.pl: Likewise.
22308         * manual/libc.texinfo: Likewise.
22309         * nptl/version.c (banner): Likewise.
22310         * nscd/nscd.c (print_version): Likewise.
22311         * nss/getent.c (print_version): Likewise.
22312         * nss/makedb.c (print_version): Likewise.
22313         * posix/getconf.c (main): Likewise.
22314         * scripts/test-installation.pl: Likewise.
22315         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22316
22317 2015-01-02  Will Newton  <will.newton@linaro.org>
22318
22319         * sysdeps/arm/armv7/configure: Removed.
22320         * sysdeps/arm/armv7/configure.ac: Likewise.
22321
22322 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22323
22324         * All files with FSF copyright notices: Update copyright dates
22325         using scripts/update-copyrights.
22326         * intl/plural.c: Regenerated.
22327         * locale/programs/charmap-kw.h: Likewise.
22328         * locale/programs/locfile-kw.h: Likewise.
22329
22330 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22331
22332         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
22333
22334 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22335
22336         [BZ #17748]
22337         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
22338         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
22339         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22340         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22341         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22342         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
22343         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22344         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
22345         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22346         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22347         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22348         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22349         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22350         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22351         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
22352         libm_hidden_def.
22353         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
22354         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
22355         Likewise.
22356         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22357         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22358         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22359         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22360         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
22361         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22362         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22363         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
22364         __fegetenv instead of fegetenv.
22365         (libc_feholdsetround_noex_ctx): Likewise.
22366
22367 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
22368
22369         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
22370         (Elf_MIPS_ABIFlags_v0): New structure.
22371         (EF_MIPS_FP64): Define.
22372         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
22373         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
22374         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
22375         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
22376         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
22377         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
22378         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
22379         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
22380         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
22381         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
22382         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
22383         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
22384         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
22385         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
22386         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
22387         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
22388         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
22389         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
22390         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
22391         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
22392         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
22393         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
22394         field.
22395         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
22396         EF_MIPS_FP64.
22397         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
22398         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
22399         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
22400         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
22401         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
22402         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
22403         * sysdeps/mips/tst-abi-interlink.c: Likewise.
22404         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
22405         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
22406         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
22407         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
22408         record the current FP ABI extension.
22409         (mips-mode-switch): Define to show if kernel headers support mode
22410         switching.
22411         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22412         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
22413         supported SYSV ABI version to 3.
22414         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
22415         feature.
22416
22417 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22418             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22419
22420         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
22421         path.
22422         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
22423
22424 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22425
22426         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
22427         __fegetround and redefine to call __fegetround.  Remove condition
22428         on [!__NO_MATH_INLINES].
22429         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
22430         function.
22431         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
22432         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
22433         Remove macro.
22434         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
22435         instead of <fenv_libc.h>.
22436         (__llrintl): Call fegetround instead of __fegetround.
22437         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
22438         instead of <fenv_libc.h>.
22439         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22440         (__lrintl): Call fegetround instead of __fegetround.
22441         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22442         instead of <fenv_libc.h>.
22443         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22444         (__rintl): Call fegetround instead of __fegetround.
22445
22446 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22447
22448         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22449         arrays.
22450
22451 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22452
22453         [BZ #17775]
22454         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22455         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22456         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22457
22458 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22459
22460         * sysdeps/i386/tls-macros.h: Include <features.h>.
22461         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22462         (TLS_IE): Likewise.
22463         (TLS_LD): Likewise.
22464         (TLS_GD): Likewise.
22465         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22466         define for GCC >= 5.0.
22467
22468 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22469
22470         * math/test-fenv.c (test_single_exception, set_single_exc,
22471         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22472         feexcp_mask_test, feenable_test, fe_single_test): Add
22473         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22474         case where they are not used.
22475         * math/libm-test.inc: Likewise.
22476         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22477         unused in the absence of FP rounding/exception support.
22478         * stdio-common/tst-printf-round.c: Likewise.
22479         * stdlib/tst-strtod-round.c: Likewise.
22480         * stdlib/tst-strtod-underflow.c: Likewise.
22481
22482 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22483
22484         [BZ #17723]
22485         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22486         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22487         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22488         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22489         libm_hidden_weak.
22490         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22491         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22492         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22493         libm_hidden_def.
22494         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22495         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22496         libm_hidden_weak.
22497         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22498         Likewise.
22499         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22500         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22501         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22502         libm_hidden_weak.
22503         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22504         libm_hidden_def.
22505         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22506         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22507         (__feraiseexcept): Likewise.
22508         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22509         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22510         libm_hidden_weak.
22511         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22512         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22513         libm_hidden_def.
22514         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22515         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22516         Use libm_hidden_def.
22517         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22518         libm_hidden_def.
22519         (feraiseexcept): Define as weak not strong alias.  Use
22520         libm_hidden_weak.
22521         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22522         New inline function.  Factored out of ...
22523         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22524         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22525         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22526         feraiseexcept.
22527         * math/w_acos.c (__acos): Likewise.
22528         * math/w_asin.c (__asin): Likewise.
22529         * math/w_ilogb.c (__ilogb): Likewise.
22530         * math/w_j0.c (y0): Likewise.
22531         * math/w_j1.c (y1): Likewise.
22532         * math/w_jn.c (yn): Likewise.
22533         * math/w_log.c (__log): Likewise.
22534         * math/w_log10.c (__log10): Likewise.
22535         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22536         * sysdeps/aarch64/fpu/math_private.h
22537         (libc_feupdateenv_test_aarch64): Likewise.
22538         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22539         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22540         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22541         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22542         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22543         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22544         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22545         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22546         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22547         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22548
22549 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22550
22551         [BZ #17732]
22552         * io/test-utime.c (main): Replace %ld with %jd and cast to
22553         intmax_t.
22554         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22555         * nptl/tst-mutex5.c: Include <stdint.h>.
22556         (do_test): Replace %ld with %jd and cast to intmax_t.
22557         * posix/tst-regex.c (run_test): Likewise.
22558         (run_test_backwards): Likewise.
22559         * rt/tst-clock.c: Include <stdint.h>.
22560         (clock_test): Replace %ld with %jd and cast to intmax_t.
22561         * rt/tst-cpuclock1.c: Include <stdint.h>.
22562         (do_test): Replace %lu with %ju and cast to uintmax_t.
22563         * rt/tst-cpuclock2.c: Include <stdint.h>.
22564         (do_test): Replace %lu with %ju and cast to uintmax_t.
22565         * rt/tst-mqueue1.c: Include <stdint.h>.
22566         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22567         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22568         intmax_t.
22569         * rt/tst-mqueue4.c (do_test): Likewise.
22570         * rt/tst-timer4.c: Include <stdint.h>.
22571         (check_ts): Replace %ld with %jd and cast to intmax_t.
22572         (do_test): Likewise.
22573         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22574         and cast to intmax_t.
22575         * sysdeps/pthread/tst-timer.c (main): Likewise.
22576         * time/clocktest.c (main): Likewise.
22577         * time/tst-posixtz.c (do_test): Likewise.
22578         * timezone/tst-timezone.c (main): Likewise.
22579
22580 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22581             H.J. Lu  <hongjiu.lu@intel.com>
22582
22583         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22584         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22585         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22586         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22587         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22588         version if bit_Fast_Unaligned_Load is set.
22589         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22590         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22591         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22592         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22593         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22594         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22595         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22596         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22597         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22598         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22599         to 4.
22600         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22601         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22602         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22603         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22604
22605 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22606
22607         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22608         instead of #if to avoid a Wundef warning.
22609         * stdlib/tst-limits.c (do_test): Likewise.
22610
22611         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22612         parallel other exception macros.
22613         (fegetenv): Convert from macro to extern inline so that it applies
22614         retroactively to inline functions already seen by the compiler.
22615         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22616
22617         * posix/Makefile (before-compile): Use $(objpfx) for
22618         posix-conf-vars-def.h.
22619
22620 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22621
22622         * posix/getconf.c (main): Use size_t for type of I.
22623         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22624         NSPEC.
22625
22626         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22627         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22628         * posix/posix-envs.def: Likewise.
22629         * sysdeps/posix/sysconf.c: Likewise.
22630         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22631         (specs): Remove array.
22632         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22633         array.
22634
22635         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22636         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22637         (__sysconf): Use CONF_IS_* macros.
22638
22639         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22640         ($(objpfx)posix-conf-vars-def.h): New target.
22641         * posix/posix-conf-vars.list: New file.
22642         * posix/posix-conf-vars.h: New file.
22643         * posix/confstr.c: Include posix-conf-vars.h.
22644         (confstr): Use CONF_IS_* macros.
22645         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22646         CONF_IS_* macros.
22647         * scripts/gen-posix-conf-vars.awk: New file.
22648
22649 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22650
22651         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22652         fegetround): Add no-op macros to avoid linknamespace issues.
22653
22654         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22655         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22656
22657         * sysdeps/unix/sysv/linux/tile/sysdep.h
22658         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22659         assembly-specific section to avoid a redefinition warning.
22660
22661         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22662         long before casting to pointer to avoid a cast warning.
22663
22664 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22665
22666         * sysdeps/tile/tilegx/Implies: New file.
22667
22668 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22669
22670         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22671
22672 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22673
22674         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22675
22676 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22677
22678         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22679         not define.
22680         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22681         <kernel-features.h>.
22682         (__utimes) [__NR_utimes]: Make code unconditional.
22683         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22684         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22685         (__ASSUME_UTIMES): Do not undefine.
22686         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22687         (__ASSUME_UTIMES): Likewise.
22688         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22689         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22690         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22691         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22692
22693 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22694
22695         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22696
22697 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22698
22699         [BZ #17747]
22700         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22701         alias to weak alias for j0l, y0l.
22702         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22703         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22704
22705         [BZ #17746]
22706         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22707         conversion.
22708
22709 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22710
22711         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22712         to zero if not already defined.
22713
22714 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22715
22716         [BZ #17724]
22717         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22718         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22719         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22720         (char *) casts added.
22721         * sysdeps/ieee754/k_standardf.c: New file.
22722         * sysdeps/ieee754/k_standardl.c: Likewise.
22723         * math/Makefile (libm-support): Remove k_standard.
22724         (libm-calls): Add k_standard.
22725
22726 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22727
22728         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22729         Optimize to avoid an unnecessary FPCR read.
22730
22731 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22732
22733         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22734         Optimize to reduce FPCR/FPSR accesses.
22735
22736 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22737
22738         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22739         Call libc_fetestexcept_aarch64.
22740
22741 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22742
22743         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22744         Call libc_fesetround_aarch64.
22745
22746 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22747
22748         [BZ #17733]
22749         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22750         (__bind): Do not define as weak alias.
22751         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22752         define.
22753         (__getsockname): Do not define as weak alias.
22754
22755 2014-12-22  Will Newton  <will.newton@linaro.org>
22756
22757         * manual/install.texi: Document that we require bison 2.7
22758         or above.
22759         * INSTALL: Regenerate.
22760         * configure.ac: Use AC_CHECK_PROG_VER instead of
22761         AC_PATH_PROG when checking for bison and check for
22762         version 2.7 or above.
22763         * configure: Regenerate.
22764
22765 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22766
22767         [BZ #17745]
22768         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22769         * sysdeps/tile/ffsll.c (ffsll): To here.
22770
22771         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22772
22773 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22774
22775         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22776         if not defined.
22777         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22778         definition.
22779         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22780         hidden ___tls_get_addr.
22781         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22782         hidden __tls_get_addr.
22783         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22784         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22785         Likewise.
22786
22787 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22788
22789         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22790         _dl_init call.
22791
22792 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22793
22794         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22795         from "call _dl_init@PLT".
22796         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22797
22798 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22799
22800         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22801         guarantees.
22802
22803 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22804
22805         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22806
22807 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22808
22809         [BZ #17744]
22810         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22811         strnlen.
22812
22813 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22814
22815         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22816         of multu on MIPSr6.
22817         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22818         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22819         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22820         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22821         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22822
22823 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22824
22825         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22826         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22827         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22828         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22829         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22830         mips32r6/mips64r6.
22831         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22832
22833 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22834
22835         * string/strncat.c (STRNCAT): Simplify implementation.
22836
22837 2014-12-19  David S. Miller  <davem@davemloft.net>
22838
22839         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22840         access the quad as both a long double and as a series of 4 words.
22841
22842         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22843         link_map->l_info array access.
22844
22845 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22846
22847         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22848
22849         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22850         * math/atest-exp2.c (TIMEOUT): Likewise.
22851         * math/atest-sincos.c (TIMEOUT): Likewise.
22852
22853 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22854
22855         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22856         -Wno-error with -fno-builtin-lround.
22857
22858 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22859
22860         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22861         Contains futex constants and functions moved over from ...
22862         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22863         <lowlevellock-futex.h>.
22864         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22865         (lll_timedwait_tid): Add comments and parentheses around macro
22866         arguments.
22867
22868 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22869
22870         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22871         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22872         (__lll_private_flag): Remove.
22873         (lll_futex_wait): Likewise.
22874         (lll_futex_timed_wait): Likewise.
22875         (lll_futex_wake): Likewise.
22876         (lll_futex_requeue): Likewise.
22877         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22878         (__lll_timedwait_tid): Spell out argument names.
22879         (lll_timedwait_tid): Add comments and parentheses around macro
22880         arguments.
22881         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22882         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22883
22884 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22885
22886         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22887         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22888         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22889         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22890         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22891         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22892         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22893         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22894         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22895         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22896         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22897         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22898         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22899         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22900         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22901         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22902         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22903         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
22904         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
22905
22906 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22907
22908         * sysdeps/x86_64/x32/Makefile: New file.
22909
22910 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22911
22912         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
22913         1L with (mp_limb_t) 1.
22914
22915 2014-12-17  Roland McGrath  <roland@hack.frob.com>
22916
22917         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
22918         * nptl/libc_pthread_init.c: ... here.
22919         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
22920         * nptl/register-atfork.c: ... here.
22921
22922         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
22923         Use pthread_sigmask rather than INTERNAL_SYSCALL.
22924         Use assert_perror to check its return value.
22925         (__gai_create_helper_thread): Likewise.
22926
22927         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
22928
22929         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
22930
22931 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
22932
22933         [BZ #17725]
22934         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
22935         __profil_counter.
22936         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
22937         Likewise.
22938         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
22939         Likewise.
22940         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
22941         Likewise.
22942         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
22943         (profil_counter): Likewise.
22944         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
22945         (profil_counter): Likewise.
22946         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
22947         Likewise.
22948         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
22949         Likewise.
22950         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
22951         (profil_counter): Likewise.
22952         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
22953         Likewise.
22954         [!__profil_counter] (profil_counter): Define as weak alias of
22955         __profil_counter.
22956         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
22957         (profil_counter): Rename to __profil_counter.
22958         [!__profil_counter] (profil_counter): Define as weak alias of
22959         __profil_counter.
22960         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
22961         (profil_counter): Rename to __profil_counter.
22962         [!__profil_counter] (profil_counter): Define as weak alias of
22963         __profil_counter.
22964         * sysdeps/posix/profil.c: Update comment referring to
22965         profil_counter.
22966         (__profil): Use __profil_counter instead of profil_counter.
22967         * sysdeps/posix/sprofil.c (profil_counter): Rename to
22968         __profil_counter.  Use __profil_counter_ushort and
22969         __profil_counter_uint in definitions.
22970         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
22971         instead of profil_counter_uint and profil_counter_ushort.
22972
22973         [BZ #17722]
22974         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
22975         define as weak alias of __inet_makeaddr.
22976         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
22977         as weak alias of __inet_addr.
22978         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
22979         as weak alias of __inet_pton.  Use libc_hidden_weak.
22980         * include/arpa/inet.h (__inet_pton): Declare.  Use
22981         libc_hidden_proto.
22982         (inet_makeaddr): Don't use libc_hidden_proto.
22983         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
22984         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
22985         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
22986         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
22987         Remove variable.
22988         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
22989         (test-xfail-POSIX/time.h/linknamespace): Likewise.
22990
22991 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
22992
22993         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
22994
22995 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
22996
22997         * stdio-common/bug-vfprintf-nargs.c (do_test):
22998         Cast value to intptr_t to avoid format warning
22999         for usage with PRIdPTR printing macro.
23000
23001 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23002
23003         * libio/tst-widetext.c (do_test):
23004         Use format type %td instead of %Zd for ptrdiff_t
23005         in order to avoid format warning.
23006
23007 2014-12-17  Andreas Schwab  <schwab@suse.de>
23008
23009         * nscd/mem.c (gc): Add size_t cast to match printf format.
23010
23011 2014-12-16  Roland McGrath  <roland@hack.frob.com>
23012
23013         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
23014         (init): Apply PTR_MANGLE to pointers before storing them.
23015         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
23016         before using them.
23017
23018 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
23019
23020         [BZ #17719]
23021         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
23022         define as weak alias of __memrchr.
23023         (__memrchr): Do not define as strong alias of memrchr.
23024         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
23025         Remove variable.
23026         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
23027         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
23028         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
23029
23030         [BZ #17717]
23031         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
23032         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
23033         (if_indextoname): Rename to __if_indextoname and define as weak
23034         alias of __if_indextoname.  Use libc_hidden_weak.
23035         (if_freenameindex): Rename to __if_freenameindex and define as
23036         weak alias of __if_freenameindex.
23037         (if_nameindex): Rename to __if_nameindex and define as weak alias
23038         of __if_nameindex.
23039         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
23040         __if_nametoindex and define as weak alias of __if_nametoindex.
23041         Use libc_hidden_weak.
23042         (if_freenameindex): Rename to __if_freenameindex and define as
23043         weak alias of __if_freenameindex.
23044         (if_nameindex): Rename to __if_nameindex and define as weak alias
23045         of __if_nameindex.
23046         (if_indextoname): Rename to __if_indextoname and define as weak
23047         alias of __if_indextoname.  Use libc_hidden_weak.
23048         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
23049         __if_nametoindex and define as weak alias of __if_nametoindex.
23050         Use libc_hidden_weak.
23051         (if_freenameindex): Rename to __if_freenameindex and define as
23052         weak alias of __if_freenameindex.  Use libc_hidden_weak.
23053         (if_nameindex_netlink): Use __if_freenameindex instead of
23054         if_freenameindex.
23055         (if_nameindex): Rename to __if_nameindex and define as weak alias
23056         of __if_nameindex.  Use libc_hidden_weak.
23057         (if_indextoname): Rename to __if_indextoname and define as weak
23058         alias of __if_indextoname.  Use libc_hidden_weak.
23059         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
23060         libc_hidden_proto.
23061         [!_ISOMAC] (__if_freenameindex): Likewise.
23062         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
23063         if_nametoindex.
23064         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
23065         variable.
23066         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
23067         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
23068         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
23069         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
23070         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
23071         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
23072         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
23073
23074         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
23075         Remove variable.
23076         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
23077         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
23078
23079 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23080
23081         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
23082         subscript above bounds'
23083
23084         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
23085         bounds.
23086
23087 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
23088
23089         * libio/tst-fopenloc.c: Use test-skeleton.c.
23090
23091         * stdlib/tst-bsearch.c: Use test-skeleton.c.
23092         (entry): Rename to ITEM.
23093         (do_test, comp): Adjust.
23094
23095         * stdio-common/tst-fseek.c: Use test-skeleton.c.
23096
23097 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23098
23099         * string/tester.c: Include <libc-internal.h>.
23100         (test_memset): Ignore -Wmemset-transposed-args.
23101
23102 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23103
23104         * misc/tst-mntent2.c (do_test): Fix warning.
23105
23106 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23107
23108         * elf/tst-unique4lib.cc(a): Mark as used.
23109
23110 2014-12-16  Florian Weimer  <fweimer@redhat.com>
23111
23112         [BZ #17630]
23113         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
23114         names.
23115
23116 2014-12-16  Allan McRae  <allan@archlinux.org>
23117
23118         * stdio-common/Makefile (tests): Re-add bug26.
23119
23120 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
23121
23122         [BZ #17657]
23123         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
23124         static array.
23125
23126 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
23127
23128         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
23129         (__lll_lock_wait): Likewise.
23130         (__lll_timedlock_wait): Likewise.
23131         (__lll_timedwait_tid): Likewise.
23132         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
23133         (__lll_robust_timedlock_wait): Likewise.
23134         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
23135         (lll_cond_trylock): Likewise.
23136         (__lll_lock): Likewise.
23137         (__lll_robust_lock): Likewise.
23138         (__lll_cond_lock): Likewise.
23139         (lll_robust_cond_lock): Likewise.
23140         (__lll_timedlock): Likewise.
23141         (__lll_robust_timedlock): Likewise.
23142         (__lll_unlock): Likewise.
23143         (__lll_robust_unlock): Likewise.
23144         (lll_wait_tid): Likewise.
23145         (lll_timedwait_tid): Likewise.
23146
23147 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23148
23149         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
23150
23151 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23152
23153         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
23154
23155 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23156
23157         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
23158         * stdio-common/tst-sprintf.c: Likewise.
23159
23160 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23161
23162         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
23163
23164 2014-12-15  Jeff Law  <law@redhat.com>
23165
23166         [BZ #16617]
23167         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
23168         on the heap.  (CVE-2012-3406)
23169         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
23170         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
23171         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
23172
23173 2014-12-15  Will Newton  <will.newton@linaro.org>
23174
23175         * manual/install.texi: Bump required version of texinfo
23176         to 4.7 from 4.5.
23177         * INSTALL: Regenerated.
23178         * configure.ac: Check for makeinfo version 4.7 and above.
23179         * configure: Regenerated.
23180
23181 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23182
23183         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
23184         PREFIX, string constant to insert between directory and name.
23185         * sysdeps/posix/shm_open.c: Update caller.
23186         * sysdeps/posix/shm_unlink.c: Likewise.
23187         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
23188         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
23189         (SEM_SHM_PREFIX): New macro.
23190         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
23191         [$(have-thread-library) = no].
23192         * nptl/Makefile (libpthread-routines): Add shm-directory.
23193         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
23194         * sysdeps/nptl/shm-directory.h: New file.
23195         * sysdeps/posix/shm-directory.c
23196         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
23197         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
23198         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
23199         INTERNAL_SYSCALL.
23200         (__where_is_shmfs): Function removed.
23201         (mountpoint, defaultmount, defaultdir, __namedsem_once):
23202         Variables removed.
23203         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
23204         Use SHM_GET_NAME.
23205         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
23206
23207         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
23208         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
23209         unconditional for use inside libpthread.
23210         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
23211
23212 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23213
23214         * nptl/pthread_getaffinity.c: New file.
23215         * nptl/pthread_setaffinity.c: New file.
23216         * nptl/pthread_getname.c: New file.
23217         * nptl/pthread_setname.c: New file.
23218
23219         * nptl/pthread_create.c (START_THREAD_DEFN)
23220         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
23221
23222 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23223             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23224
23225         * resolv/res_send.c (send_vc): Disable warning resplen may
23226         be used uninitialized.
23227
23228 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23229
23230         * nptl/tst-mutex6.c
23231         (ATTR_NULL): New define checks ATTR against NULL.
23232         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
23233         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
23234
23235 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
23236
23237         [BZ #17581]
23238         * malloc/hooks.c
23239         (mem2mem_check): Revert my previous change.
23240         (malloc_check_get_size): Revert my previous change.
23241         (mem2chunk_check): Revert my previous change.
23242
23243 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23244
23245         * sysdeps/posix/shm-directory.c: New file.
23246         * sysdeps/posix/shm-directory.h: New file.
23247         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
23248         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
23249         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
23250         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
23251         Transmute EPERM to EACCES.
23252         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
23253         from ...
23254         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
23255         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
23256
23257 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
23258
23259         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
23260         pointer and cast to uintptr_t.
23261         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
23262         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
23263         Add cast to avoid warning.
23264         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
23265
23266 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23267
23268         * nptl/semaphore.h: Move to ...
23269         * sysdeps/pthread/semaphore.h: ... here.
23270         * Makefile (installed-headers): Change nptl/semaphore.h to
23271         sysdeps/pthread/semaphore.h.
23272
23273 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23274
23275         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
23276         generated error format strings.
23277
23278         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
23279         -Wformat-extra-args warnings for scanf formats.
23280         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
23281         test of zero-length format (duh).
23282         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
23283         corner-case scanf format test.
23284         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
23285         generated fprintf format string.
23286         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
23287         corner-case sprintf format tests.
23288         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
23289         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
23290         -Wformat-extra-args warnings throughout.
23291         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
23292         (CFLAGS-scanf4.c): Likewise.
23293         (CFLAGS-scanf7.c): Likewise.
23294         (CFLAGS-tst-sprintf.c): Likewise.
23295         (CFLAGS-tst-printf.c): Likewise.
23296         (CFLAGS-tst-printfsz.c): Likewise.
23297
23298 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23299
23300         * include/cpio.h: New file.
23301         * include/fmtmsg.h: Likewise.
23302
23303         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
23304         corresponding format argument to size_t.
23305         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
23306         arguments.
23307         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
23308         corresponding format argument to size_t.
23309         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
23310         arguments.
23311         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
23312         corresponding format argument to size_t.
23313         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
23314         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
23315         (CFLAGS-tst-mbswcs2.c): Likewise.
23316         (CFLAGS-tst-mbswcs3.c): Likewise.
23317         (CFLAGS-tst-mbswcs4.c): Likewise.
23318         (CFLAGS-tst-mbswcs5.c): Likewise.
23319         (CFLAGS-tst-trans.c): Likewise.
23320
23321 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23322
23323         * posix/regexbug1.c (main): Use "%s" format with regerror results,
23324         rather than assuming they won't contain any '%'s.
23325
23326 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
23327
23328         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
23329         inhibit_loop_to_libcall to avoid recursive calls.
23330         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
23331         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
23332
23333 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23334
23335         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
23336         prototype.
23337
23338 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23339
23340         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
23341         integer value instead of boolean.
23342
23343 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23344
23345         * malloc/malloc.c: Fix powerof2 check.
23346
23347 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23348
23349         * locale/programs/locfile.h (maybe_swap_uint32):
23350         Remove inline and add unused attribute.
23351
23352 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23353
23354         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
23355         Truncating assembler expression to a .long expression.
23356
23357 2014-12-11  Andreas Schwab  <schwab@suse.de>
23358
23359         * elf/rtld.c (struct map_args): Constify str member.
23360         (do_preload): Constify fname argument.
23361
23362 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23363
23364         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
23365         constants definition.
23366
23367 2014-12-11  Andreas Schwab  <schwab@suse.de>
23368
23369         [BZ #16657]
23370         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
23371         FORCE_ELISION instead of DO_ELISION.
23372         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
23373         Remove.
23374         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
23375         Likewise.
23376
23377         * iconvdata/gconv-modules: Remove duplicate entry.
23378
23379 2014-12-11  Will Newton  <will.newton@linaro.org>
23380
23381         Merge gettext 0.19.3 into intl/.
23382
23383         This involves a number of cosmetic changes to comments
23384         and ANSI function definitions and prototypes throughout
23385         all the files. The gettext copyright header is used but
23386         with the date ranges taken from the glibc copy.
23387
23388         * NEWS: Add gettext merge to 2.21.
23389         * intl/bindtextdom.c: Switch to gettext copyright.
23390         Use ANSI definitions and prototypes.
23391         Use gl_* locking primitives rather than __libc_* ones.
23392         Use __builtin_expect rather than __glibc_likely/unlikely.
23393         * intl/dcgettext.c: Switch to gettext copyright.
23394         Use ANSI definitions and prototypes.
23395         * intl/dcigettext.c: Switch to gettext copyright.
23396         Use ANSI definitions and prototypes.
23397         (INTDIV0_RAISES_SIGFPE): New define.
23398         Use gl_* locking primitives rather than __libc_* ones.
23399         Include eval-plural.h instead of plural-eval.c.
23400         Use __builtin_expect rather than __glibc_likely/unlikely.
23401         * intl/dcngettext.c: Switch to gettext copyright.
23402         Use ANSI definitions and prototypes.
23403         * intl/dgettext.c: Likewise.
23404         * intl/dngettext.c: Likewise.
23405         * intl/plural-eval.c: Renamed to...
23406         * intl/eval-plural.h: ...this.
23407         * intl/explodename.c: Switch to gettext copyright.
23408         Use ANSI definitions and prototypes.
23409         (_nl_explode_name): Use strchr instead of __rawmemchr.
23410         * intl/finddomain.c: Switch to gettext copyright.
23411         Use ANSI definitions and prototypes.
23412         Use gl_* locking primitives rather than __libc_* ones.
23413         (_nl_find_domain): Use malloc rather than alloca for
23414         allocation of temporary locale name.
23415         * intl/gettext.c: Switch to gettext copyright.
23416         Use ANSI definitions and prototypes.
23417         * intl/gettextP.h: Switch to gettext copyright.
23418         Use ANSI definitions and prototypes.
23419         Use gl_* locking primitives rather than __libc_* ones.
23420         * intl/gmo.h: Switch to gettext copyright.
23421         (struct sysdep_string): Move struct segment_pair outside of
23422         struct definition.
23423         * intl/hash-string.c: Use ANSI definitions and prototypes.
23424         * intl/hash-string.h: Switch to gettext copyright.
23425         Use ANSI definitions and prototypes.
23426         * intl/l10nflist.c: Switch to gettext copyright.
23427         Use ANSI definitions and prototypes.
23428         (_nl_normalize_codeset): Avoid integer overflow.
23429         * intl/loadinfo.h: Switch to gettext copyright.
23430         Use ANSI definitions and prototypes.
23431         (LIBINTL_DLL_EXPORTED): New define.
23432         (PATH_SEPARATOR): New define.
23433         * intl/loadmsgcat.c: Switch to gettext copyright.
23434         * intl/localealias.c: Switch to gettext copyright.
23435         Use ANSI definitions and prototypes.
23436         (_nl_expand_alias): Use PATH_SEPARATOR.
23437         * intl/ngettext.c: Switch to gettext copyright.
23438         Use ANSI definitions and prototypes.
23439         * intl/plural-exp.c: Likewise.
23440         * intl/plural-exp.h: Switch to gettext copyright.
23441         Use ANSI definitions and prototypes.
23442         (struct expression): Move definition of enum operator outside
23443         of struct definition.
23444         * intl/plural.c: Regenerate.
23445         * intl/plural.y: Switch to gettext copyright.
23446         Use ANSI definitions and prototypes.
23447         Port to bison 3.0.
23448         * intl/textdomain.c: Switch to gettext copyright.
23449         Use ANSI definitions and prototypes.
23450         Use gl_* locking primitives rather than __libc_* ones.
23451
23452 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23453
23454         * debug/warning-nop.c: Add used atrribute.
23455
23456 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23457
23458         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23459
23460         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23461         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23462         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23463
23464 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23465             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23466
23467         [BZ #17634]
23468         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23469         Undefine after defining function.  Define as weak alias of
23470         __wcschr.  Use libc_hidden_weak.
23471         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23472         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23473         (libc_hidden_def): Also define __GI___wcschr alias.
23474         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23475         __wcschr and define as weak alias of __wcschr.
23476         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23477         __wcschr.
23478         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23479         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23480         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23481         libc_hidden_weak.  Do not use libc_hidden_def.
23482         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23483         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23484         __GI___wcschr alias.
23485         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23486         [IS_IN (libc)] (wcschr): Define as macro expanding to
23487         __redirect_wcschr.
23488         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23489         [IS_IN (libc)] (__wcschr_power6): Likewise.
23490         [IS_IN (libc)] (__wcschr_power7): Likewise.
23491         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23492         instead of wcschr.
23493         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23494         __libc_wcschr.
23495         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23496         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23497         __wcschr and define as weak alias of __wcschr.  Use
23498         libc_hidden_builtin_def.
23499         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23500         as weak alias of __wcschr.  Use libc_hidden_weak.
23501         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23502         wcschr.
23503         * time/era.c (_nl_init_era_entries): Likewise.
23504         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23505         variable.
23506         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23507         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23508
23509 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23510
23511         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23512         format for long int variable.
23513
23514 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23515
23516         [BZ #10672]
23517         * manual/search.texi: (Array Sort Function): Remove claim how to make
23518         qsort stable.
23519
23520 2014-12-10  Andreas Schwab  <schwab@suse.de>
23521
23522         [BZ #12847]
23523         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23524         user-controlled locks.
23525
23526 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23527
23528         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23529         register.
23530
23531 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23532
23533         * configure.ac (--disable-werror): New configure option.
23534         (enable_werror): New AC_SUBST.
23535         * configure: Regenerated.
23536         * config.make.in (enable-werror): New variable.
23537         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23538         -Wno-error=undef.
23539         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23540         * manual/install.texi (Configuring and compiling): Document
23541         --disable-werror.
23542         * INSTALL: Regenerated.
23543         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23544         (CFLAGS-tst-chk2.c): Likewise.
23545         (CFLAGS-tst-chk3.c): Likewise.
23546         (CFLAGS-tst-chk4.cc): Likewise.
23547         (CFLAGS-tst-chk5.cc): Likewise.
23548         (CFLAGS-tst-chk6.cc): Likewise.
23549         (CFLAGS-tst-lfschk1.c): Likewise.
23550         (CFLAGS-tst-lfschk2.c): Likewise.
23551         (CFLAGS-tst-lfschk3.c): Likewise.
23552         (CFLAGS-tst-lfschk4.cc): Likewise.
23553         (CFLAGS-tst-lfschk5.cc): Likewise.
23554         (CFLAGS-tst-lfschk6.cc): Likewise.
23555
23556         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23557         (main): Disable -Wdeprecated-declarations around calls to
23558         register_printf_function.
23559
23560         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23561         (do_test): Disable -Wdiv-by-zero around some calls to
23562         fwrite_unlocked and fread_unlocked.
23563
23564         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23565         (DIAG_POP_NEEDS_COMMENT): Likewise.
23566         (_DIAG_STR1): Likewise.
23567         (_DIAG_STR): Likewise.
23568         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23569         * stdio-common/bug21.c: Include <libc-internal.h>.
23570         (do_test): Disable -Wformat around call to sscanf.
23571         * stdio-common/scanf14.c: Include <libc-internal.h>.
23572         (main): Disable -Wformat around some calls to scanf functions.
23573
23574 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23575
23576         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23577
23578 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23579
23580         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23581         stack variable alignment.
23582
23583 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23584
23585         [BZ #17682]
23586         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23587         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23588         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23589         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23590         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23591         __getrlimit instead of getrlimit.
23592         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23593         __gettimeofday instead of gettimeofday.
23594         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23595         Likewise.
23596         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23597         Likewise.
23598         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23599         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23600         Remove variable.
23601         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23602         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23603
23604 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23605
23606         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23607         for wide-character tests.
23608
23609 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23610
23611         * io/openat64.c: #include <libc-internal.h>
23612         (__openat64): Prototypify.  Use ignore_value on MODE.
23613         * io/openat.c: Likewise.
23614         * misc/reboot.c: #include <libc-internal.h>
23615         (reboot): Prototypify.  Use ignore_value on HOWTO.
23616         * misc/ptrace.c: #include <libc-internal.h>
23617         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23618
23619 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23620
23621         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23622         XPG4, UNIX98 and XOPEN2K.
23623         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23624         Remove variable.
23625         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23626
23627 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23628
23629         * libio/fileops.c: Use ISO C style for function definitions.
23630         * libio/iofopen.c: Likewise.
23631         * libio/wfileops.c: Likewise.
23632
23633         [BZ #17653]
23634         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23635         offset on EOF.
23636         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23637         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23638         (fgets_func): Function pointer to fgets and fgetws.
23639         (do_ftell_test): Add test to verify ftell value after read
23640         EOF.
23641         (do_test): Set fgets_func.
23642
23643         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23644         O_TRUNC flag for w and w+ modes.
23645         (do_rewind_test): Likewise.
23646         (do_ftell_test): Likewise.
23647         (do_write_test): Likewise.
23648
23649         [BZ #17647]
23650         * libio/fileops.c (do_ftell): Seek only when there are
23651         unflushed writes.
23652         * libio/wfileops.c (do_ftell_wide): Likewise.
23653         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23654         test case.
23655         (do_one_test): Call it.
23656
23657 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23658
23659         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23660         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23661         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23662         Remove variable.
23663         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23664         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23665         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23666
23667 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23668
23669         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23670         Remove variable.
23671         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23672
23673         [BZ #17668]
23674         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23675         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23676         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23677         __freeifaddrs.  Use libc_hidden_weak.
23678         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23679         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23680         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23681         __freeifaddrs.  Use libc_hidden_weak.
23682         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23683         __getifaddrs and define as weak alias of __getifaddrs.  Use
23684         libc_hidden_weak.
23685         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23686         __freeifaddrs.  Use libc_hidden_weak.
23687         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23688         Remove variable.
23689         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23690         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23691
23692 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23693
23694         [BZ #17601]
23695         * sysdeps/mips/start.S (__start): Use indirect jump to call
23696         __libc_start_main.
23697
23698 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23699
23700         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23701
23702         * nptl/tst-mutex1.c: Include <stdbool.h>.
23703         [!ATTR] (ATTR_NULL): New macro.
23704         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23705         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23706         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23707
23708         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23709         to char *.
23710
23711         [BZ #17665]
23712         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23713         Change conditional to [__USE_MISC].
23714
23715         [BZ #17664]
23716         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23717         fgets_unlocked.
23718         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23719         __fgets_unlocked.
23720         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23721         fgets_unlocked.
23722         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23723         Remove variable.
23724         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23725         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23726         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23727         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23728         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23729         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23730         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23731         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23732         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23733
23734         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23735
23736 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23737
23738         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23739         Remove strpbrk objects.
23740         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23741         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23742         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23743         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23744         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23745         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23746
23747         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23748         Remove strcspn objects.
23749         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23750         (__libc_ifunc_impl_list): Remove strcspn implementation.
23751         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23752         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23753         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23754         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23755
23756         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23757         Remove strspn objetcs.
23758         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23759         (__libc_ifunc_impl_list): Remove strspn implementation.
23760         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23761         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23762         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23763         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23764
23765 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23766
23767         [BZ #17581]
23768         * malloc/hooks.c
23769         (mem2mem_check): Add a terminator to the chain of checking blocks.
23770         (malloc_check_get_size): Use it here.
23771         (mem2chunk_check): Ditto.
23772
23773 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23774
23775         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23776         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23777
23778 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23779
23780         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23781
23782         * nptl/nptl-init.c: Include libc-internal.h.
23783         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23784
23785         * elf/ldconfig.c (search_dir): Expand comment.
23786
23787 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23788
23789         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23790         variable.
23791         (linknamespace-symlist-stdlibs-tests): Likewise.
23792         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23793         instead of $(objpfx)symlist-stdlibs.
23794         (linknamespace-libs-isoc): New variable.
23795         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23796         (linknamespace-libs-ISO): New variable.
23797         (linknamespace-libs-ISO99): Likewise.
23798         (linknamespace-libs-ISO11): Likewise.
23799         (linknamespace-libs-XPG3): Likewise.
23800         (linknamespace-libs-XPG4): Likewise.
23801         (linknamespace-libs-POSIX): Likewise.
23802         (linknamespace-libs-UNIX98): Likewise.
23803         (linknamespace-libs-XOPEN2K): Likewise.
23804         (linknamespace-libs-POSIX2008): Likewise.
23805         (linknamespace-libs-XOPEN2K8): Likewise.
23806         ($(objpfx)symlist-stdlibs): Replace by
23807         $(linknamespace-symlist-stdlibs-tests).  Use
23808         $(linknamespace-libs-$*) as set of libraries.
23809         ($(linknamespace-header-tests)): Update dependencies.  Use
23810         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23811         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23812         * conform/linknamespace.pl: Remove comment about considering
23813         definitions of symbols from irrelevant libraries.
23814
23815 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23816
23817         [BZ #13862]
23818         * elf/dl-tls.c: Include <atomic.h>.
23819         (oom): Remove #ifdef SHARED/#endif.
23820         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23821         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23822         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23823         big enough.
23824         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23825         * nptl/Makefile (tests): Add tst-stack4.
23826         (modules-names): Add tst-stack4mod.
23827         ($(objpfx)tst-stack4): New.
23828         (tst-stack4mod.sos): Likewise.
23829         ($(objpfx)tst-stack4.out): Likewise.
23830         ($(tst-stack4mod.sos)): Likewise.
23831         (clean): Likewise.
23832         * nptl/tst-stack4.c: New file.
23833         * nptl/tst-stack4mod.c: Likewise.
23834
23835 2014-11-27  J. Brown  <jb999@gmx.de>
23836
23837         * sysdeps/x86/bits/string.h: Add recent CPUs.
23838
23839 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23840
23841         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23842         sigblock.
23843
23844         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23845         feof.
23846
23847         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23848         variable.
23849
23850 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23851
23852         * nscd/connections.c: Include libc-internal.h because of macro
23853         usage ignore_value.
23854
23855 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23856
23857         * string/bits/string3.h (__warn_memset_zero_len): Don't
23858         declare for gcc newer than 5.0.
23859         (memset): Don't test for zero-length __LEN for gcc newer than
23860         5.0.
23861
23862 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23863
23864         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23865         size_t for %zu format.
23866
23867         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23868         difference, not %ju.
23869
23870 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23871
23872         * include/libc-internal.h (ignore_value): New macro.
23873         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23874         with ignore_value.
23875
23876         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23877         definition.
23878
23879         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23880         pthread_cleanup_push to void *.
23881
23882         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23883         Undefine.
23884
23885         [BZ #16619]
23886         [BZ #16740]
23887         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23888         instead of 1L << 52.
23889
23890         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23891         * libio/bug-rewind2.c (do_test): Likewise.
23892
23893         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23894         * debug/test-strcpy_chk-ifunc.c: Likewise.
23895         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23896         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23897         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23898         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23899         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23900         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23901         * Rules [$(multi-arch) = no] (tests): Do not filter out
23902         $(tests-ifunc).
23903         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
23904         * debug/Makefile (tests-ifunc): Remove variable.
23905         (tests): Do not add $(tests-ifunc).
23906         * wcsmbs/Makefile (tests-ifunc): Remove variable.
23907         (tests): Do not add $(tests-ifunc).
23908         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
23909         [TEST_IFUNC]: Remove conditionals.
23910         * string/test-string.h (TEST_IFUNC): Remove macro.
23911         [TEST_IFUNC]: Remove conditionals.
23912
23913         * string/test-strchr.c [!WIDE] (L): New macro.
23914         [WIDE] (L): Likewise.
23915         (check1): Use CHAR instead of char.  Use L on string and character
23916         constants.
23917
23918 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
23919
23920         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
23921         tests.
23922         * sysdeps/powerpc/bits/atomic.h
23923         (__arch_atomic_exchange_and_add_32_acq): Add definition.
23924         (__arch_atomic_exchange_and_add_32_rel): Likewise.
23925         (atomic_exchange_and_add_acq): Likewise.
23926         (atomic_exchange_and_add_rel): Likewise.
23927         * sysdeps/powerpc/powerpc32/bits/atomic.h
23928         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23929         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23930         * sysdeps/powerpc/powerpc64/bits/atomic.h
23931         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23932         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23933
23934 2014-11-26  Torvald Riegel  <triegel@redhat.com>
23935
23936         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
23937         Change synchronization of __sched_fifo_min_prio and
23938         __sched_fifo_max_prio.
23939         * nptl/pthread_mutexattr_getprioceiling.c
23940         (pthread_mutexattr_getprioceiling): Likewise.
23941         * nptl/pthread_mutexattr_setprioceiling.c
23942         (pthread_mutexattr_setprioceiling): Likewise.
23943         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23944         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
23945         Likewise.
23946
23947 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23948
23949         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
23950         void.
23951
23952 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23953
23954         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
23955         third argument const.
23956
23957 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23958
23959         fnmatch: work around GCC compiler warning bug with uninit var
23960         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
23961         This works around a bug with x86-64 GCC 4.9.2 and earlier
23962         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
23963         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
23964         used uninitialized in this function [-Wmaybe-uninitialized]".
23965
23966 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23967
23968         * posix/bug-regex31.c (main): Return RES not 0.
23969
23970 2014-11-25  Anton Blanchard <anton@samba.org>
23971
23972         * sysdeps/powerpc/bits/atomic.h
23973         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
23974
23975 2014-11-24  Sterling Augustine  <saugustine@google.com>
23976
23977         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
23978
23979 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
23980
23981         [BZ #17608]
23982         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
23983
23984 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
23985
23986         [BZ #17633]
23987         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
23988         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
23989         variable.
23990         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
23991         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
23992
23993 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23994
23995         * string/strncpy.c (strncpy): Improve performance by using memset.
23996
23997 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
23998
23999         * string/strcpy.c (strcpy):
24000         Improve performance by using strlen and memcpy.
24001
24002 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
24003
24004         * string/strcoll_l.c (get_next_seq): __always_inline.
24005         * string/strcoll_l.c (do_compare): __always_inline.
24006
24007 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
24008
24009         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
24010         defined.
24011         * include/mqueue.h: Likewise.
24012         * include/stdlib.h: Likewise.
24013
24014         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
24015         (get_null_defines): Adjust.
24016         * sunrpc/Makefile: Adjust comment.
24017         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
24018         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
24019         (CFLAGS-interp.c): Likewise.
24020         (CFLAGS-ldconfig.c): Likewise.
24021         (CPPFLAGS-.os): Likewise.
24022         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24023         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24024         * extra-modules.mk (extra-modules.mk): Likewise.
24025         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
24026         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
24027         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
24028         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
24029         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
24030         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
24031         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
24032         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
24033         * iconvdata/Makefile (CPPFLAGS): Likewise.
24034         (cpp-srcs-left): Add libof for all iconvdata routines.
24035         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
24036         * include/assert.h: Likewise.
24037         * include/ctype.h: Likewise.
24038         * include/errno.h: Likewise.
24039         * include/libc-symbols.h: Likewise.
24040         * include/math.h: Likewise.
24041         * include/netdb.h: Likewise.
24042         * include/resolv.h: Likewise.
24043         * include/stdio.h: Likewise.
24044         * include/stdlib.h: Likewise.
24045         * include/string.h: Likewise.
24046         * include/sys/stat.h: Likewise.
24047         * include/wctype.h: Likewise.
24048         * intl/l10nflist.c: Likewise.
24049         * libidn/idn-stub.c: Likewise.
24050         * libio/libioP.h: Likewise.
24051         * nptl/libc_multiple_threads.c: Likewise.
24052         * nptl/pthreadP.h: Likewise.
24053         * posix/regex_internal.h: Likewise.
24054         * resolv/res_hconf.c: Likewise.
24055         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
24056         * sysdeps/arm/memmove.S: Likewise.
24057         * sysdeps/arm/sysdep.h: Likewise.
24058         * sysdeps/generic/_itoa.h: Likewise.
24059         * sysdeps/generic/symbol-hacks.h: Likewise.
24060         * sysdeps/gnu/errlist.awk: Likewise.
24061         * sysdeps/gnu/errlist.c: Likewise.
24062         * sysdeps/i386/i586/memcpy.S: Likewise.
24063         * sysdeps/i386/i586/memset.S: Likewise.
24064         * sysdeps/i386/i686/memcpy.S: Likewise.
24065         * sysdeps/i386/i686/memmove.S: Likewise.
24066         * sysdeps/i386/i686/mempcpy.S: Likewise.
24067         * sysdeps/i386/i686/memset.S: Likewise.
24068         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
24069         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24070         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
24071         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
24072         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24073         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
24074         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
24075         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24076         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
24077         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24078         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24079         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24080         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24081         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24082         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24083         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24084         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
24085         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
24086         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
24087         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24088         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
24089         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
24090         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24091         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24092         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24093         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
24094         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
24095         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24096         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
24097         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24098         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
24099         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
24100         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
24101         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24102         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
24103         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
24104         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24105         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24106         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24107         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24108         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24109         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24110         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24111         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24112         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24113         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24114         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
24115         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
24116         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
24117         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
24118         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
24119         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
24120         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
24121         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
24122         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
24123         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
24124         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
24125         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
24126         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
24127         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
24128         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
24129         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
24130         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
24131         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24132         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24133         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
24134         * sysdeps/posix/closedir.c: Likewise.
24135         * sysdeps/posix/opendir.c: Likewise.
24136         * sysdeps/posix/readdir.c: Likewise.
24137         * sysdeps/posix/rewinddir.c: Likewise.
24138         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
24139         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
24140         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
24141         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
24142         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
24143         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
24144         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
24145         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
24146         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
24147         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
24148         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
24149         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
24150         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
24151         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
24152         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
24153         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
24154         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
24155         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
24156         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
24157         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
24158         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
24159         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
24160         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
24161         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
24162         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
24163         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
24164         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
24165         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
24166         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
24167         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
24168         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
24169         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
24170         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
24171         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
24172         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
24173         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
24174         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
24175         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
24176         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
24177         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
24178         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
24179         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
24180         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
24181         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24182         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24183         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
24184         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
24185         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
24186         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
24187         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
24188         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
24189         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
24190         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
24191         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
24192         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
24193         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
24194         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
24195         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
24196         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
24197         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
24198         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24199         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
24200         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
24201         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
24202         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
24203         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24204         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
24205         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
24206         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
24207         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
24208         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24209         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
24210         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
24211         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
24212         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
24213         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
24214         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
24215         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
24216         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
24217         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
24218         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
24219         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
24220         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
24221         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
24222         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
24223         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
24224         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
24225         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
24226         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
24227         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
24228         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
24229         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
24230         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
24231         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
24232         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
24233         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
24234         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
24235         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
24236         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
24237         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
24238         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24239         * sysdeps/unix/alpha/sysdep.S: Likewise.
24240         * sysdeps/unix/alpha/sysdep.h: Likewise.
24241         * sysdeps/unix/make-syscalls.sh: Likewise.
24242         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24243         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24244         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24245         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
24246         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24247         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
24248         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
24249         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24250         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24251         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
24252         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24253         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24254         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24255         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24256         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24257         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24258         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24259         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24260         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24261         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24262         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
24263         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24264         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24265         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24266         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24267         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24268         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24271         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
24272         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24273         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24274         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24275         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24276         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
24277         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24278         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24279         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24280         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
24281         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
24282         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24283         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24284         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24285         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
24286         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24287         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24288         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24289         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24290         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24291         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24292         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24293         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24294         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24295         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24296         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
24297         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24298         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24299         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24300         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
24301         * sysdeps/x86_64/memcpy.S: Likewise.
24302         * sysdeps/x86_64/memmove.c: Likewise.
24303         * sysdeps/x86_64/memset.S: Likewise.
24304         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
24305         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24306         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
24307         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
24308         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
24309         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24310         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24311         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24312         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24313         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24314         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24315         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24316         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
24317         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24318         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24319         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
24320         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
24321         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24322         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24323         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24324         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
24325         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24326         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24327         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24328         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24329         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24330         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24331         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
24332         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
24333         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24334         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
24335         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24336         * sysdeps/x86_64/strcmp.S: Likewise.
24337
24338         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
24339
24340         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
24341         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
24342         * elf/rtld-Rules: Likewise.
24343         * elf/setup-vdso.h: Likewise.
24344         * include/assert.h: Likewise.
24345         * include/bits/stdlib-float.h: Likewise.
24346         * include/errno.h: Likewise.
24347         * include/sys/stat.h: Likewise.
24348         * include/unistd.h: Likewise.
24349         * sysdeps/aarch64/setjmp.S: Likewise.
24350         * sysdeps/alpha/setjmp.S: Likewise.
24351         * sysdeps/arm/__longjmp.S: Likewise.
24352         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
24353         * sysdeps/arm/setjmp.S: Likewise.
24354         * sysdeps/arm/sysdep.h: Likewise.
24355         * sysdeps/generic/_itoa.h: Likewise.
24356         * sysdeps/generic/dl-sysdep.h: Likewise.
24357         * sysdeps/generic/ldsodefs.h: Likewise.
24358         * sysdeps/i386/dl-tls.h: Likewise.
24359         * sysdeps/i386/setjmp.S: Likewise.
24360         * sysdeps/m68k/setjmp.c: Likewise.
24361         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
24362         * sysdeps/mach/hurd/opendir.c: Likewise.
24363         * sysdeps/posix/getcwd.c: Likewise.
24364         * sysdeps/posix/opendir.c: Likewise.
24365         * sysdeps/posix/profil.c: Likewise.
24366         * sysdeps/powerpc/dl-procinfo.h: Likewise.
24367         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
24368         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
24369         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
24370         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
24371         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
24372         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
24373         * sysdeps/s390/dl-tls.h: Likewise.
24374         * sysdeps/s390/s390-32/setjmp.S: Likewise.
24375         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24376         * sysdeps/sh/sh3/setjmp.S: Likewise.
24377         * sysdeps/sh/sh4/setjmp.S: Likewise.
24378         * sysdeps/unix/alpha/sysdep.h: Likewise.
24379         * sysdeps/unix/arm/sysdep.S: Likewise.
24380         * sysdeps/unix/i386/sysdep.S: Likewise.
24381         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24382         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
24383         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24384         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24385         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24386         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24387         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
24388         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24389         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24390         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24391         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
24392         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24393         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24396         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24397         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24398         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24399         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24400         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24401         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24402         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24403         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24404         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24405         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24406         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24407         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24408         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24409         * sysdeps/x86_64/setjmp.S: Likewise.
24410
24411         * include/math.h: Use IS_IN instead of IS_IN_libm.
24412         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
24413         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24414         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24415         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
24416         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24417         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24418         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24419         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24420         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24421         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24422         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
24423         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
24424         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
24425         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
24426         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
24427         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
24428         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24429         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
24430         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24431         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
24432         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
24433         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
24434         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
24435         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
24436         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
24437         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
24438         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
24439         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24440         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24441         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24442         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24443         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24444         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24445         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24446         Likewise.
24447         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24448         Likewise.
24449         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24450         Likewise.
24451         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24452         Likewise.
24453         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24454         Likewise.
24455         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24456         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24457         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24458         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24459         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24460         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24461         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24462         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24463         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24464         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24465         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24466         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24467         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24468         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24469         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24470         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24471         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24472         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24473         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24474         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24475         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24476         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24477         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24478         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24479         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24480         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24481         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24482
24483         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24484         * nptl/pthreadP.h: Likewise.
24485         * nptl_db/structs.def: Likewise.
24486         * sysdeps/arm/sysdep.h: Likewise.
24487         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24488         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24489         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24490         * sysdeps/unix/alpha/sysdep.h: Likewise.
24491         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24492         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24493         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24494         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24495         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24496         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24497         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24498         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24499         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24500         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24501         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24502         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24503         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24504         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24507         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24508         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24509         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24510         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24511         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24512         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24513         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24514         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24515         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24516         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24517
24518         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24519         * nptl/pthreadP.h: Likewise.
24520         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24521         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24522         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24523         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24524         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24525         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24526         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24527         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24528         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24529         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24530         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24531         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24533         Likewise.
24534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24535         Likewise.
24536         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24537         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24538         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24539         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24540         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24541         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24542         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24543         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24544
24545         * dlfcn/dladdr.c: Use IS_IN.
24546         * dlfcn/dladdr1.c: Likewise.
24547         * dlfcn/dlclose.c: Likewise.
24548         * dlfcn/dlerror.c: Likewise.
24549         * dlfcn/dlinfo.c: Likewise.
24550         * dlfcn/dlmopen.c: Likewise.
24551         * dlfcn/dlopen.c: Likewise.
24552         * dlfcn/dlsym.c: Likewise.
24553         * dlfcn/dlvsym.c: Likewise.
24554
24555         * include/ifaddrs.h: Use IS_IN.
24556         * inet/check_pf.c: Likewise.
24557         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24558         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24559
24560         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24561         IS_IN_ldconfig.
24562         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24563         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24564
24565         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24566         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24567         IS_IN (libc).
24568
24569         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24570
24571         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24572         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24573         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24574         * include/libc-symbols.h (IS_IN_LIB): New macro.
24575         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24576         * include/netdb.h: Likewise.
24577         * include/stap-probe.h: Remove all uses of IN_LIB.
24578
24579         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24580         instead of IN_MODULE.
24581         * include/libc-symbols.h (IN_MODULE): Define using
24582         MODULE_NAME.
24583         (PASTE_NAME, PASTE_NAME1): New macros.
24584         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24585         of IN_LIB.
24586         (STAP_PROBE_ASM): Likewise.
24587
24588 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24589
24590         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24591         __mach_init in dlopened libc.
24592
24593 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24594
24595         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24596         * sysdeps/arm/preconfigure: Regenerate.
24597
24598 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24599
24600         * nptl/pthread_create.c (__pthread_create_2_1): Set
24601         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24602         when copying values from IATTR into PD.
24603
24604 2014-11-21  Will Newton  <will.newton@linaro.org>
24605             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24606
24607         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24608         Refactor inline-asm.  Also add comment.
24609
24610         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24611         ElfW macro instead of hardcoded Elf64 types.
24612         (la_aarch64_gnu_pltenter): Likewise.
24613         * sysdeps/aarch64/dl-machine.h
24614         (elf_machine_runtime_setup): Use ElfW(Addr).
24615
24616         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24617         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24618         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24619         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24620         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24621         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24622         (R_AARCH64_TLS_DTPMOD): This.
24623         (R_AARCH64_TLS_DTPREL64): Rename to ...
24624         (R_AARCH64_TLS_DTPREL): This.
24625         (R_AARCH64_TLS_TPREL64): Rename to ...
24626         (R_AARCH64_TLS_TPREL): This.
24627         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24628         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24629         R_AARCH64_TLS_TPREL64.
24630         (elf_machine_rela): Likewise.
24631
24632 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24633
24634         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24635         by setting it to 0.  64b atomics are not supported currently.
24636
24637 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24638
24639         [BZ #16469]
24640         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24641         search domain names.
24642
24643 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24644
24645         [BZ #16469]
24646         * NEWS: Update.
24647         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24648         trailing dot.
24649         * posix/tst-getaddrinfo5.c: New.
24650         * posix/Makefile (tests): Add it.
24651
24652 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24653
24654         [BZ #14498]
24655         * NEWS: Fixed.
24656         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24657         after parsing line but before break_if_match.
24658         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24659         if there is a protocol mismatch.
24660
24661 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24662
24663         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24664         because the potential race is on the user-supplied stream.
24665
24666 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24667
24668         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24669         string literal if not passed a buffer.
24670         * manual/job.texi (ctermid): Update reasoning, note deviation
24671         from posix, suggest mtasurace when not passed a buffer, for
24672         future non-preliminary safety notes.
24673
24674 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24675
24676         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24677         of not passing it a buffer.
24678         Reported by Peng Haitao.
24679
24680 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24681
24682         * manual/Makefile ($(objpfx)stamp-summary): Require
24683         check-safety.sh to pass.
24684         * manual/check-safety.sh: Wish for verification that every
24685         @deftypefn and @deftypefun is followed by a @safety remark.
24686
24687 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24688
24689         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24690
24691         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24692         PTHREAD_CANCEL_ASYNCHRONOUS.
24693         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24694         send SIGCANCEL.
24695
24696         * nptl/default-sched.h: New file.
24697         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24698         * nptl/pthread_create.c: Include it.
24699         (__pthread_create_2_1): Use collect_default_sched instead of making
24700         Linux syscalls here directly.
24701
24702 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24703
24704         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24705         __pthread_once): Use C11 atomics.
24706
24707 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24708
24709         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24710
24711 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24712
24713         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24714         atomic_thread_fence_acquire, atomic_thread_fence_release,
24715         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24716         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24717         atomic_compare_exchange_weak_relaxed,
24718         atomic_compare_exchange_weak_acquire,
24719         atomic_compare_exchange_weak_release,
24720         atomic_exchange_acquire, atomic_exchange_release,
24721         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24722         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24723         atomic_fetch_and_acquire,
24724         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24725
24726 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24727
24728         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24729         USE_ATOMIC_COMPILER_BUILTINS): Define.
24730         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24731         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24732         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24733         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24734         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24735         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24736         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24737         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24738         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24739         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24740         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24741         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24742         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24743         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24744         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24745         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24746         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24747         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24748         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24749         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24750         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24751         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24752         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24753         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24754         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24755         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24756         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24757         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24758         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24759         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24760         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24761         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24762         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24763         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24764         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24765         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24766         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24767         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24768         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24769         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24770
24771 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24772
24773         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24774         the sched_priority value here.  It was already checked when the user
24775         called pthread_attr_setschedparam.
24776
24777         * nptl/tst-bad-schedattr.c: New file.
24778         * nptl/Makefile (tests): Add it.
24779
24780 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24781             Florian Weimer  <fweimer@redhat.com>
24782             Joseph Myers  <joseph@codesourcery.com>
24783             Adam Conrad  <adconrad@0c3.net>
24784             Andreas Schwab  <schwab@suse.de>
24785             Brooks  <bmoses@google.com>
24786
24787         [BZ #17625]
24788         * wordexp-test.c (__dso_handle): Add prototype.
24789         (__register_atfork): Likewise.
24790         (__app_register_atfork): New function.
24791         (registered_forks): New global.
24792         (register_fork): New function.
24793         (test_case): Add 3 new tests for WRDE_CMDSUB.
24794         (main): Call __app_register_atfork.
24795         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24796         fork count is non-zero fail the test.
24797         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24798         is set.
24799         (parse_dollars): Remove check for WRDE_NOCMD.
24800         (parse_dquote): Likewise.
24801
24802 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24803
24804         * Makeconfig (built-modules): List non-library modules to be
24805         built.
24806         (module-cppflags): Include libc-modules.h for
24807         everything except shlib-versions.v.i.
24808         (CPPFLAGS): Use it.
24809         (before-compile): Add libc-modules.h.
24810         ($(common-objpfx)libc-modules.h,
24811         $(common-objpfx)libc-modules.stmp): New targets.
24812         (common-generated): Add libc-modules.h and libc-modules.stmp.
24813         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24814         * include/libc-symbols.h: Don't include libc-modules.h.
24815         * include/libc-modules.h: Remove file.
24816         * scripts/gen-libc-modules.awk: New script to generate
24817         libc-modules.h.
24818         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24819         Depend on libc-modules.stmp.
24820
24821         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24822
24823         * Makeconfig (in-module): Get value of libof set for the
24824         translation unit.
24825         (CPPFLAGS): Use $(in-module).
24826         * Makerules: Don't suffix routine names for nonlib.
24827         * include/libc-modules.h: New file.
24828         * include/libc-symbols.h: Include libc-modules.h
24829         (IS_IN): New macro to replace IS_IN_* macros.
24830         * elf/Makefile: Set libof-* for each routine.
24831         * elf/rtld-Rules: Likewise.
24832         * extra-modules.mk: Likewise.
24833         * iconv/Makefile: Likewise.
24834         * iconvdata/Makefile: Likewise.
24835         * locale/Makefile: Likewise.
24836         * malloc/Makefile: Likewise.
24837         * nss/Makefile: Likewise.
24838         * sysdeps/gnu/Makefile: Likewise.
24839         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24840         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24841         * sysdeps/s390/s390-64/Makefile: Likewise.
24842         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24843         CPPFLAGS for nscd instead of nonlib.
24844
24845 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24846
24847         * nptl/createthread.c: New file.
24848
24849         * nptl/createthread.c: Moved ...
24850         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24851
24852         * nptl/createthread.c: Add proper top-line comment.
24853         (do_clone): Folded into ...
24854         (create_thread): ... here.  Take new arguments STOPPED_START and
24855         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24856         increment __nptl_threads, do event-reporting logic, do
24857         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24858         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24859         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24860         just send SIGCANCEL.
24861         * nptl/pthread_create.c: Forward-declare create_thread before
24862         including createthread.c.
24863         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24864         declaration, and new macro START_THREAD_SELF to replace argument.
24865         Remove return statement.
24866         (report_thread_creation): New function.
24867         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24868         synchronization logic, and __nptl_nthreads increment here, around
24869         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24870         PD->parent_cancelhandling here, before create_thread.  When
24871         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24872         __deallocate_stack, and ENOMEM translation here.
24873
24874 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24875
24876         [BZ #17616]
24877         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24878         (mptwo): Rename to __mptwo.
24879         (__inv): Use __mptwo instead of mptwo.
24880         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24881         (mptwo): Rename to __mptwo.
24882         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24883         of mpone and __mptwo instead of mptwo.
24884         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24885         instead of mpone.
24886         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24887         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24888         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24889         of mpone and __mptwo instead of mptwo.
24890         (__mpranred): Use __mpone instead of mpone.
24891         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24892         variable.
24893         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24894         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24895         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24896         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24897         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24898         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24899         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24900         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24901         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24902         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24903         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24904         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24905         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24906         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24907         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24908         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24909         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24910         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24911         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24912
24913 2014-11-18  Tom de Vries  <tom@codesoucery.com>
24914
24915         * manual/signal.texi (Primitives Interrupted by Signals): In section,
24916         replace BSD Handler xref with BSD Signal Handling.
24917
24918 2014-11-17  Richard Henderson  <rth@redhat.com>
24919
24920         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
24921         (_FP_PACK_RAW_2): Remove.
24922         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
24923         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
24924         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
24925         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
24926         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
24927         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
24928         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
24929         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
24930         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
24931         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
24932         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
24933         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
24934         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
24935         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
24936         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
24937         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
24938
24939 2014-11-14  Roland McGrath  <roland@hack.frob.com>
24940
24941         * signal/signal.h [__USE_MISC]
24942         (struct sigvec): Remove type.
24943         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
24944         (sigvec): Remove declaration.
24945         * sysdeps/posix/sigvec.c: Moved ...
24946         * signal/sigvec.c: ... here, replacing old file.
24947         (struct sigvec): New type, copied from old signal.h definition.
24948         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
24949         (__sigvec): Convert definition to prototype.
24950         (sigvec): Replace weak_alias with compat_symbol.
24951         * signal/Versions (libc: GLIBC_2.21): New version set.
24952         * include/signal.h: Remove __sigvec declaration.
24953         * sysdeps/unix/bsd/sigvec.c: Remove file.
24954         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
24955         * manual/signal.texi (BSD Handler): Remove subsection.
24956         Move siginterrupt up to ...
24957         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
24958         (Blocking in BSD): Fold subsection into its parent.
24959         * NEWS: Mention sigvec removal.
24960
24961 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24962
24963         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
24964         (DLA_FMS): Make definition conditional only on [__FMA4__].
24965         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
24966         definition.
24967
24968         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
24969         Make definition conditional only on [PROF].
24970         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
24971         definition.
24972         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
24973         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
24974
24975         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
24976         !__GNUC__].
24977         * include/signal.h (__sigpause): Move declaration above call to
24978         libc_hidden_proto.
24979         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
24980         variable.
24981         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
24982         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
24983
24984 2014-11-14  David S. Miller  <davem@davemloft.net>
24985
24986         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
24987         Define before including <string/memcpy.c> and <string/mempcpy.c>.
24988
24989 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24990
24991         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
24992         * configure: Regenerated.
24993         * manual/install.texi (Tools for Compilation): Document a
24994         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
24995         compiler verified to work.
24996         * INSTALL: Regenerated.
24997
24998         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
24999         redeclare with asm name.
25000         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
25001         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
25002         including <string.h>.
25003         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25004         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
25005         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25006         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
25007         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25008         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
25009         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25010
25011 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
25012
25013         * stdlib/strtol.c (__strtol): Use prototype definition.
25014
25015         [BZ #17594]
25016         * stdlib/strtol.c (SYM__): New macro.
25017         (SYM__1): Likewise.
25018         (__strtol): Likewise.
25019         (strtol): Rename to __strtol and define as weak alias of
25020         __strtol.  Use libc_hidden_weak.
25021
25022 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25023
25024         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
25025         Use numbered labels in inline assembly.
25026
25027 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25028
25029         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
25030         Add setjmp LIBC_PROBE.
25031         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
25032         Likewise.
25033         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
25034         Add longjmp, longjmp_target LIBC_PROBE.
25035         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
25036         Likewise.
25037
25038 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25039
25040         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
25041         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
25042         to get rid of unused variable warning.
25043
25044 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25045
25046         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
25047         Check for unwind_backtrace ==  NULL only in SHARED case.
25048         (__backchain_backtrace): Compile only in SHARED case.
25049         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
25050         Likewise.
25051         (__backchain_backtrace): Declare as static.
25052
25053 2014-11-12  Roland McGrath  <roland@hack.frob.com>
25054
25055         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
25056         (__libc_multiple_threads_ptr): Variable moved ...
25057         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
25058
25059 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
25060
25061         * conform/GlibcConform.pm: New file.
25062         * conform/conformtest.pl: Use GlibcConform module.
25063         * conform/linknamespace.pl: New file.
25064         * conform/list-header-symbols.pl: Likewise.
25065         * conform/Makefile (linknamespace-symlists-base): New variable.
25066         (linknamespace-symlists-tests): Likewise.
25067         (linknamespace-header-base): Likewise.
25068         (linknamespace-header-tests): Likewise.
25069         (tests-special): Add new tests.
25070         ($(linknamespace-symlists-tests)): New rule.
25071         (linknamespace-libs): New variable.
25072         ($(objpfx)symlist-stdlibs): New rule.
25073         ($(linknamespace-header-tests)): Likewise.
25074         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
25075         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
25076         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
25077         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
25078         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
25079         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
25080         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
25081         (test-xfail-ISO/math.h/linknamespace): Likewise.
25082         (test-xfail-ISO/signal.h/linknamespace): Likewise.
25083         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
25084         (test-xfail-ISO/time.h/linknamespace): Likewise.
25085         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25086         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
25087         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25088         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25089         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
25090         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25091         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25092         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
25093         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25094         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25095         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
25096         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25097         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
25098         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
25099         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
25100         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25101         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
25102         (test-xfail-XPG3/search.h/linknamespace): Likewise.
25103         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
25104         (test-xfail-XPG3/time.h/linknamespace): Likewise.
25105         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
25106         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
25107         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
25108         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
25109         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
25110         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
25111         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
25112         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
25113         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25114         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
25115         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
25116         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
25117         (test-xfail-XPG4/search.h/linknamespace): Likewise.
25118         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
25119         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
25120         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
25121         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
25122         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
25123         (test-xfail-XPG4/time.h/linknamespace): Likewise.
25124         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
25125         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
25126         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
25127         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
25128         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
25129         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25130         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
25131         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
25132         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
25133         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
25134         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
25135         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
25136         (test-xfail-POSIX/time.h/linknamespace): Likewise.
25137         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
25138         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
25139         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
25140         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
25141         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
25142         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
25143         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
25144         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
25145         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
25146         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25147         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
25148         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
25149         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
25150         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
25151         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
25152         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
25153         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
25154         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
25155         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
25156         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
25157         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
25158         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
25159         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
25160         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
25161         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
25162         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
25163         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
25164         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
25165         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25166         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
25167         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
25168         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
25169         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
25170         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
25171         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
25172         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25173         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
25174         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
25175         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
25176         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
25177         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
25178         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
25179         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
25180         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
25181         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
25182         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
25183         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
25184         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
25185         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
25186         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
25187         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
25188         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25189         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
25190         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
25191         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
25192         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
25193         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
25194         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25195         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
25196         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
25197         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
25198         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
25199         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25200         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
25201         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
25202         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
25203         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
25204         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
25205         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
25206         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
25207         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
25208         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
25209         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25210         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
25211         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
25212         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
25213         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25214         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
25215         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
25216         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
25217         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
25218         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
25219         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25220         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
25221         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
25222         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
25223         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
25224         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
25225         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
25226         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
25227         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
25228         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
25229         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
25230         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
25231         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
25232         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25233         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
25234         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
25235
25236         [BZ #17589]
25237         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
25238         of fgets_unlocked.
25239
25240         [BZ #17585]
25241         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
25242         (memmem): Rename to __memmem and define as weak alias of
25243         __memmem.  Use libc_hidden_weak.
25244         (__memmem): Use libc_hidden_def.
25245         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
25246         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
25247         memmem.
25248
25249         [BZ #17582]
25250         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
25251         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
25252         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
25253         and define as weak alias of __fgets_unlocked.  Use
25254         libc_hidden_weak.
25255         (__fgets_unlocked): Use libc_hidden_def.
25256         * include/stdio.h (__fgets_unlocked): Declare.  Use
25257         libc_hidden_proto.
25258         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
25259         __fgets_unlocked instead of fgets_unlocked.
25260         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
25261         (GET_NPROCS_CONF_PARSER): Likewise.
25262         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
25263         (GET_NPROCS_CONF_PARSER): Likewise.
25264
25265         [BZ #17574]
25266         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
25267         weak alias of __wmemset.  Use libc_hidden_weak.
25268         (__wmemset): Use libc_hidden_def.
25269         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
25270         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
25271         of wmemset.
25272
25273         [BZ #17573]
25274         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
25275         with asm name __mempcpy.
25276         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
25277
25278         [BZ #17572]
25279         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
25280         and define as weak alias of __rawmemchr.
25281         (__rawmemchr): Do not define as strong alias of rawmemchr.
25282
25283         [BZ #17571]
25284         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
25285         alias of __qsort_r.
25286         (qsort): Call __qsort_r instead of qsort_r.
25287         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
25288         (__qsort_r): Declare.  Call libc_hidden_proto.
25289         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
25290         instead of qsort_r.
25291         * nscd/gai.c (__qsort_r): Define to qsort_r.
25292         * posix/tst-rfc3484.c (__qsort_r): Likewise.
25293         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
25294         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
25295
25296         [BZ #17570]
25297         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
25298         define as weak alias of __malloc_info.
25299
25300         [BZ #17584]
25301         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
25302         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25303         (__rewinddir): Use libc_hidden_def.
25304         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
25305         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25306         (__rewinddir): Use libc_hidden_def.
25307         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
25308         weak alias of __rewinddir.  Don't use libc_hidden_def.
25309         (__rewinddir): Use libc_hidden_def.
25310         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
25311         (__rewinddir): Use libc_hidden_proto.
25312         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
25313         rewinddir.
25314         (__getcwd): Use __rewinddir instead of rewinddir.
25315
25316         [BZ #17583]
25317         * libio/fileno.c (fileno): Rename to __fileno and define as weak
25318         alias of __fileno.  Use libc_hidden_weak.
25319         (__fileno): Use libc_hidden_def.
25320         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
25321         * libio/ftello.c (ftello): Rename to __ftello and define as weak
25322         alias of __ftello.
25323         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
25324         __ftello.
25325         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
25326         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
25327         libc_hidden_def.
25328         (fread_unlocked): Don't use libc_hidden_ver.
25329         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
25330         and define as weak alias of __fread_unlocked.  Don't use
25331         libc_hidden_def.
25332         (__fread_unlocked): Use libc_hidden_def.
25333         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
25334         (ftello): Don't use libc_hidden_proto.
25335         (__ftello): Declare.  Use libc_hidden_proto.
25336         (fread_unlocked): Don't use libc_hidden_proto.
25337         (__fread_unlocked): Declare.  Use libc_hidden_proto.
25338         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
25339         and __ftello instead of fileno, fread_unlocked and ftello.
25340
25341 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
25342
25343         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
25344         GOT12.
25345         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
25346         Likewise.
25347         (_dl_start_user): Likewise.
25348         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
25349
25350 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
25351             Siddhesh Poyarekar  <siddhesh@redhat.com>
25352
25353         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
25354         Move argv and envp down instead of moving argc up.
25355         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
25356
25357 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
25358
25359         [BZ #17506]
25360         * test-skeleton.c (main): Return successful if one of
25361         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
25362         * string/tst-strcoll-overflow.c: Define expected status.
25363
25364 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
25365
25366         [BZ #17475]
25367         * locale/iso-639.def: Define Bhili and Tulu language codes.
25368
25369 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
25370
25371         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
25372
25373 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
25374
25375         [BZ #17555]
25376         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
25377
25378 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25379
25380         * configure.ac: Updated check of minimal required version to
25381         2.22.
25382         * manual/install.texi (Tools for Compilation): Updated version
25383         number.
25384         * configure: Regenerated.
25385         * INSTALL: Likewise.
25386
25387 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
25388
25389         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
25390         __tls_get_addr.
25391
25392 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
25393
25394         * include/sys/wait.h (__libc_waitpid): Remove declaration.
25395         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
25396         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25397         libc_hidden_weak.
25398         (waitpid): Define as alias of __waitpid.
25399         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
25400         __waitpid.
25401         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25402         libc_hidden_weak.
25403         (waitpid): Define as alias of __waitpid.
25404         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
25405         __libc_waitpid alias.
25406         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
25407         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
25408         Likewise.
25409         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
25410         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
25411         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
25412         alias.
25413         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
25414         __waitpid.
25415         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25416         libc_hidden_weak.
25417         (waitpid): Define as alias of __waitpid.
25418
25419 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
25420
25421         * manual/llio.texi: Add comment that write safety has been
25422         fixed in Linux.
25423
25424         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
25425         (localplt-build-dso): Add elf/ld.so.
25426         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
25427         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
25428         and free for ld.so.
25429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
25430         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
25431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
25432         Likewise.
25433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
25434         Likewise.
25435         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
25436         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
25437         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
25438         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
25439         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
25440         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25441         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25442         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25443         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25444         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25445         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25446
25447 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25448
25449         [BZ #14132]
25450         * include/libc-symbols.h (INTUSE): Remove macro.
25451         (INTDEF): Likewise.
25452         (INTVARDEF): Likewise.
25453         (_INTVARDEF): Likewise.
25454         (INTDEF2): Likewise.
25455         (INTVARDEF2): Likewise.
25456         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25457         rtld_hidden_def instead of INTVARDEF.
25458         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25459         (_dl_starting_up_internal): Remove declaration.
25460         (_dl_starting_up): Use rtld_hidden_proto.
25461         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25462         declaration.
25463         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25464         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25465         _dl_starting_up.
25466         * elf/dl-writev.h (_dl_writev): Likewise.
25467         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25468         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25469         _dl_starting_up_internal.
25470
25471 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25472
25473         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25474         test-skeleton.c.
25475
25476 2014-11-05  Will Newton  <will.newton@linaro.org>
25477
25478         * benchtests/Makefile: (bench-malloc): Add malloc thread
25479         scalability benchmark.
25480         * benchtests/bench-malloc-threads.c: New file.
25481
25482 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25483
25484         * sysdeps/aarch64/strchrnul.S: New file.
25485
25486 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25487
25488         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25489         definition.
25490         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25491         Likwise.
25492         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25493         Likewise.
25494         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25495         Likewise.
25496         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25497         Likewise.
25498         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25499         Likewise.
25500
25501 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25502
25503         * catgets/test-gencat.c: Use test-skeleton.c.
25504         * catgets/tst-catgets.c: Likewise.
25505         * csu/tst-empty.c: Likewise.
25506         * elf/tst-audit2.c: Likewise.
25507         * elf/tst-global1.c: Likewise.
25508         * elf/tst-pathopt.c: Likewise.
25509         * elf/tst-piemod1.c: Likewise.
25510         * elf/tst-tls10.c: Likewise.
25511         * elf/tst-tls11.c: Likewise.
25512         * elf/tst-tls12.c: Likewise.
25513         * gnulib/tst-gcc.c: Likewise.
25514         * iconvdata/tst-e2big.c: Likewise.
25515         * iconvdata/tst-loading.c: Likewise.
25516         * iconv/tst-iconv1.c: Likewise.
25517         * iconv/tst-iconv2.c: Likewise.
25518         * inet/test-inet6_opt.c: Likewise.
25519         * inet/tst-gethnm.c: Likewise.
25520         * inet/tst-network.c: Likewise.
25521         * inet/tst-ntoa.c: Likewise.
25522         * intl/tst-codeset.c: Likewise.
25523         * intl/tst-gettext2.c: Likewise.
25524         * intl/tst-gettext3.c: Likewise.
25525         * intl/tst-ngettext.c: Likewise.
25526         * intl/tst-translit.c: Likewise.
25527         * io/test-stat.c: Likewise.
25528         * libio/test-fmemopen.c: Likewise.
25529         * libio/tst-freopen.c: Likewise.
25530         * libio/tst-sscanf.c: Likewise.
25531         * libio/tst-ungetwc1.c: Likewise.
25532         * libio/tst-ungetwc2.c: Likewise.
25533         * libio/tst-widetext.c: Likewise.
25534         * localedata/tst-ctype.c: Likewise.
25535         * localedata/tst-digits.c: Likewise.
25536         * localedata/tst-leaks.c: Likewise.
25537         * localedata/tst-mbswcs1.c: Likewise.
25538         * localedata/tst-mbswcs2.c: Likewise.
25539         * localedata/tst-mbswcs3.c: Likewise.
25540         * localedata/tst-mbswcs4.c: Likewise.
25541         * localedata/tst-mbswcs5.c: Likewise.
25542         * localedata/tst-setlocale.c: Likewise.
25543         * localedata/tst-trans.c: Likewise.
25544         * localedata/tst-wctype.c: Likewise.
25545         * localedata/tst-xlocale1.c: Likewise.
25546         * login/tst-grantpt.c: Likewise.
25547         * malloc/tst-calloc.c: Likewise.
25548         * malloc/tst-malloc.c: Likewise.
25549         * malloc/tst-mallocstate.c: Likewise.
25550         * malloc/tst-mcheck.c: Likewise.
25551         * malloc/tst-mtrace.c: Likewise.
25552         * malloc/tst-obstack.c: Likewise.
25553         * math/atest-exp2.c: Likewise.
25554         * math/atest-exp.c: Likewise.
25555         * math/atest-sincos.c: Likewise.
25556         * math/test-matherr.c: Likewise.
25557         * math/test-misc.c: Likewise.
25558         * math/test-powl.c: Likewise.
25559         * math/tst-definitions.c: Likewise.
25560         * misc/tst-dirname.c: Likewise.
25561         * misc/tst-efgcvt.c: Likewise.
25562         * misc/tst-fdset.c: Likewise.
25563         * misc/tst-hsearch.c: Likewise.
25564         * misc/tst-mntent2.c: Likewise.
25565         * nptl/tst-sem7.c: Likewise.
25566         * nptl/tst-sem8.c: Likewise.
25567         * nptl/tst-sem9.c: Likewise.
25568         * nss/test-netdb.c: Likewise.
25569         * posix/tst-fnmatch.c: Likewise.
25570         * posix/tst-getlogin.c: Likewise.
25571         * posix/tst-gnuglob.c: Likewise.
25572         * posix/tst-mmap.c: Likewise.
25573         * pwd/tst-getpw.c: Likewise.
25574         * resolv/tst-inet_ntop.c: Likewise.
25575         * rt/tst-timer.c: Likewise.
25576         * stdio-common/test-fseek.c: Likewise.
25577         * stdio-common/test-popen.c: Likewise.
25578         * stdio-common/test-vfprintf.c: Likewise.
25579         * stdio-common/tst-cookie.c: Likewise.
25580         * stdio-common/tst-fileno.c: Likewise.
25581         * stdio-common/tst-gets.c: Likewise.
25582         * stdio-common/tst-obprintf.c: Likewise.
25583         * stdio-common/tst-perror.c: Likewise.
25584         * stdio-common/tst-sprintf2.c: Likewise.
25585         * stdio-common/tst-sprintf3.c: Likewise.
25586         * stdio-common/tst-sprintf.c: Likewise.
25587         * stdio-common/tst-swprintf.c: Likewise.
25588         * stdio-common/tst-tmpnam.c: Likewise.
25589         * stdio-common/tst-unbputc.c: Likewise.
25590         * stdio-common/tst-wc-printf.c: Likewise.
25591         * stdlib/tst-environ.c: Likewise.
25592         * stdlib/tst-fmtmsg.c: Likewise.
25593         * stdlib/tst-limits.c: Likewise.
25594         * stdlib/tst-rand48-2.c: Likewise.
25595         * stdlib/tst-rand48.c: Likewise.
25596         * stdlib/tst-random2.c: Likewise.
25597         * stdlib/tst-random.c: Likewise.
25598         * stdlib/tst-strtol.c: Likewise.
25599         * stdlib/tst-strtoll.c: Likewise.
25600         * stdlib/tst-tls-atexit.c: Likewise.
25601         * stdlib/tst-xpg-basename.c: Likewise.
25602         * string/test-ffs.c: Likewise.
25603         * string/tst-bswap.c: Likewise.
25604         * string/tst-inlcall.c: Likewise.
25605         * string/tst-strtok.c: Likewise.
25606         * string/tst-strxfrm.c: Likewise.
25607         * sysdeps/x86_64/tst-audit10.c: Likewise.
25608         * sysdeps/x86_64/tst-audit3.c: Likewise.
25609         * sysdeps/x86_64/tst-audit4.c: Likewise.
25610         * sysdeps/x86_64/tst-audit5.c: Likewise.
25611         * time/tst-ftime_l.c: Likewise.
25612         * time/tst-getdate.c: Likewise.
25613         * time/tst-mktime3.c: Likewise.
25614         * time/tst-mktime.c: Likewise.
25615         * time/tst-posixtz.c: Likewise.
25616         * time/tst-strptime2.c: Likewise.
25617         * time/tst-strptime3.c: Likewise.
25618         * wcsmbs/tst-btowc.c: Likewise.
25619         * wcsmbs/tst-mbrtowc.c: Likewise.
25620         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25621         * wcsmbs/tst-wchar-h.c: Likewise.
25622         * wcsmbs/tst-wcpncpy.c: Likewise.
25623         * wcsmbs/tst-wcrtomb.c: Likewise.
25624         * wcsmbs/tst-wcsnlen.c: Likewise.
25625         * wcsmbs/tst-wcstof.c: Likewise.
25626
25627 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25628
25629         [BZ #14132]
25630         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25631         INTDEF.
25632         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25633         declaration.
25634         (_dl_mcount): Use rtld_hidden_proto.
25635         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25636         _dl_mcount.
25637         * elf/rtld.c (_rtld_global_ro): Likewise.
25638
25639         [BZ #14132]
25640         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25641         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25642         of _dl_init_internal.
25643         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25644         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25645         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25646         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25647         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25648         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25649         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25650         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25651         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25652         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25653         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25654         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25655         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25656         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25657         * sysdeps/tile/dl-start.S (_start): Likewise.
25658         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25659         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25660
25661         [BZ #14132]
25662         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25663         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25664         (rtld_progname): Make macro definition unconditional.
25665         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25666         INTDEF.
25667         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25668         (dl_main): Likewise.
25669         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25670         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25671         instead of _dl_argv_internal.
25672         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25673         __GI__dl_argv instead of INTUSE(_dl_argv).
25674         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25675         __GI__dl_argv instead of _dl_argv_internal.
25676
25677         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25678         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25679         macro.
25680         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25681         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25682         New macro.
25683         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25684         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25685         macro.
25686         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25687         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25688
25689 2014-11-04  Andreas Schwab  <schwab@suse.de>
25690
25691         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25692
25693 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25694
25695         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25696         mtvsrd instruction in binary form.
25697
25698 2014-11-03  Andreas Schwab  <schwab@suse.de>
25699
25700         [BZ #17522]
25701         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25702         for less than MB_LEN_MAX use a local buffer of that size.
25703         * libio/tst-fputws.c: New file.
25704         * libio/Makefile (tests): Add tst-fputws.
25705
25706 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25707
25708         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25709         the size of the fpu_fr.fpu_dregs[] array.
25710
25711 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25712
25713         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25714         (__nanosleep): Do not define as alias.
25715         (nanosleep): Define as alias of __nanosleep.
25716         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25717         __libc_nanosleep name.
25718
25719 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25720
25721         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25722         install.texi in comment.
25723
25724 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25725
25726         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25727         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25728         ... add here and use lwsync or sync ...
25729         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25730         ... and add here using lwsync.
25731
25732 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25733
25734         * elf/dl-machine-reject-phdr.h: New file.
25735         * elf/dl-load.c: #include that.
25736         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25737         if that returned true.
25738
25739 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25740
25741         [BZ #17496]
25742         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25743         gen-as-const-headers chunk.  Add a big scare comment after the last
25744         safe place to touch before-compile.
25745
25746 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25747
25748         * manual/install.texi (Tools for Compilation): Update autoconf
25749         version requirements.
25750         * INSTALL: Regenerated.
25751
25752         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25753         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25754         (__libc_pselect): Likewise.
25755
25756         [BZ #14138]
25757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25761
25762 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25763
25764         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25765         correct barrier instruction.
25766         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25767         Likewise.
25768         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25769         Likewise.
25770
25771 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25772
25773         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25774         after defining inlines.  Instead, just use parens to defeat macro
25775         expansion of __isctype in its declaration.
25776
25777 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25778
25779         * include/sys/uio.h (__libc_readv): Remove declaration.
25780         (__libc_writev): Likewise.
25781         * misc/readv.c (__libc_readv): Rename to __readv.
25782         (__readv): Do not define as alias.
25783         (readv): Define as alias of __readv.
25784         * misc/writev.c (__libc_writev): Rename to __writev.
25785         (__writev): Do not define as alias.
25786         (writev): Define as alias of __writev.
25787         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25788         (__readv): Do not define as alias.
25789         (readv): Define unconditionally as alias of __readv.
25790         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25791         (__writev): Do not define as alias.
25792         (writev): Define unconditionally as alias of __writev.
25793         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25794         name.
25795         (writev): Do not define __libc_writev name.
25796
25797 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25798
25799         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25800         (convert_charseq): New function, broken out of ...
25801         (use_from_charmap): ... here.  Call it.
25802         (use_to_charmap): Use convert_charseq and free instead of duplicating
25803         its code with a variable-length stack struct.
25804
25805 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25806
25807         * include/fcntl.h (__libc_creat): Remove declaration.
25808         * io/creat.c (__libc_creat): Rename to creat.
25809         (creat): Do not define as alias.
25810         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25811         of creat instead of __libc_creat.
25812         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25813         to creat.
25814         (creat): Do not define as alias.
25815         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25816         __libc_creat.
25817         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25818         __libc_creat name.
25819         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25820         Likewise.
25821
25822 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25823
25824         * manual/llio.texi: Add comments discussing why write() may be
25825         considered MT-unsafe on Linux.
25826
25827 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25828
25829         * dl-load.c (local_strdup): Remove.
25830         (expand_dynamic_string_token): Use __strdup.
25831         (decompose_rpath): Likewise.
25832         (_dl_map_object): Likewise.
25833
25834 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25835
25836         [BZ #14132]
25837         * sysdeps/generic/unwind-dw2-fde.c
25838         (__register_frame_info_bases_internal): Do not declare.
25839         (__register_frame_info_table_bases_internal): Likewise.
25840         (__deregister_frame_info_bases_internal): Likewise.
25841         (__register_frame_info_bases): Declare and use hidden_proto before
25842         definition.  Use hidden_def instead of INTDEF.
25843         (__register_frame_info_table_bases): Likewise.
25844         (__deregister_frame_info_bases): Likewise.
25845         (__register_frame_info): Do not use INTUSE.
25846         (__register_frame): Likewise.
25847         (__register_frame_info_table): Likewise.
25848         (__register_frame_table): Likewise.
25849         (__deregister_frame_info): Likewise.
25850         (__deregister_frame): Likewise.
25851
25852 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25853
25854         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25855         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25856         not undefine.
25857         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25858         Likewise.
25859         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25860         Likewise.
25861
25862 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25863
25864         [BZ #14138]
25865         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25866         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25867         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25868         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25869         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25870         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25871         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25872         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25873         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25874         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25875         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25876         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25877         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25878         syscall.
25879         (setfsuid): Likewise.
25880         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25881         (setfsuid): Likewise.
25882         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25883         (setfsuid): Likewise.
25884         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25885         Likewise.
25886         (setfsuid): Likewise.
25887         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25888         (setfsuid): Likewise.
25889         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25890         Likewise.
25891         (setfsuid): Likewise.
25892
25893 2014-10-27  Andreas Schwab  <schwab@suse.de>
25894
25895         [BZ #17501]
25896         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25897         check for Slow_SSE4_2 feature bit.
25898         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25899         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25900         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25901         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25902
25903 2014-10-24  Roland McGrath  <roland@hack.frob.com>
25904
25905         * configure.ac: Validate compiler version with a empirical test of
25906         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
25907         $CC -v output.
25908         * configure: Regenerated.
25909
25910         * inet/htons.c (htons): Prototypify.
25911         * inet/htonl.c (htonl): Likewise.
25912
25913 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25914
25915         * string/strncat.c (strncat): Improve performance by using strlen.
25916
25917 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25918
25919         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
25920
25921 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25922
25923         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
25924         Call libc_fetestexcept_aarch64.
25925
25926 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25927
25928         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
25929         Call libc_feholdexcept_aarch64.
25930
25931 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25932
25933         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
25934         Call get_rounding_mode.
25935
25936 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25937
25938         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25939         Simplify logic.
25940
25941 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25942
25943         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
25944         Simplify logic.
25945
25946 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
25947
25948         [BZ #14138]
25949         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
25950         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
25951         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
25952         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
25953         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
25954         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
25955         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
25956         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
25957         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
25958         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
25959         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
25960         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
25961         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
25962         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
25963         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
25964         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
25965         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
25966         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
25967         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
25968         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
25969         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
25970         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
25971         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
25972         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
25973         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
25974         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
25975         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
25976         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
25977         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
25978         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
25979         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
25980         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
25981         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
25982         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
25983         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
25984         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
25985         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
25986         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
25987         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
25988         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
25989         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
25990         syscall.
25991         (geteuid): Likewise.
25992         (getgid): Likewise.
25993         (getuid): Likewise.
25994         (getresgid): Likewise.
25995         (getresuid): Likewise.
25996         (getgroups): Likewise.
25997         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
25998         (geteuid): Likewise.
25999         (getgid): Likewise.
26000         (getuid): Likewise.
26001         (getresgid): Likewise.
26002         (getresuid): Likewise.
26003         (getgroups): Likewise.
26004         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
26005         (geteuid): Likewise.
26006         (getgid): Likewise.
26007         (getuid): Likewise.
26008         (getresgid): Likewise.
26009         (getresuid): Likewise.
26010         (getgroups): Likewise.
26011         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
26012         Likewise.
26013         (geteuid): Likewise.
26014         (getgid): Likewise.
26015         (getuid): Likewise.
26016         (getresgid): Likewise.
26017         (getresuid): Likewise.
26018         (getgroups): Likewise.
26019         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
26020         (geteuid): Likewise.
26021         (getgid): Likewise.
26022         (getuid): Likewise.
26023         (getresgid): Likewise.
26024         (getresuid): Likewise.
26025         (getgroups): Likewise.
26026         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
26027         Likewise.
26028         (geteuid): Likewise.
26029         (getgid): Likewise.
26030         (getuid): Likewise.
26031         (getgroups): Likewise.
26032
26033         [BZ #14138]
26034         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
26035         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
26036         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
26037         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
26038         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
26039         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
26040         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
26041         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
26042         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
26043         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
26044         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
26045         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
26046         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
26047         __chown.
26048         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
26049         (lchown): Likewise.
26050         (fchown): Likewise.
26051         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
26052         Likewise.
26053         (lchown): Likewise.
26054         (fchown): Likewise.
26055         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
26056         (lchown): Likewise.
26057         (fchown): Likewise.
26058         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
26059         Likewise.
26060         (lchown): Likewise.
26061         (fchown): Likewise.
26062
26063 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26064
26065         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
26066         Simplify logic.
26067
26068 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26069
26070         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26071         Cleanup logic.
26072
26073 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26074
26075         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26076         Remove unused include.
26077
26078 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26079
26080         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
26081         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
26082         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
26083         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
26084
26085 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
26086             Helge Deller <deller@gmx.de>
26087
26088         [BZ #17508]
26089         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
26090         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
26091         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
26092
26093 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
26094
26095         [BZ #14132]
26096         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
26097         Remove macro definition.
26098         (__ashrdi3_v_glibc20): Likewise.
26099         (__lshrdi3_v_glibc20): Likewise.
26100         (__cmpdi2_v_glibc20): Likewise.
26101         (__ucmpdi2_v_glibc20): Likewise.
26102         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
26103         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
26104         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
26105         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
26106         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
26107         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
26108
26109 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26110
26111         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
26112         old GNU extension [0] syntax.
26113         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
26114         alloca rather than an array member with variable length.
26115         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
26116         * nscd/nscd.c (invalidate_db): New function, broken out of ...
26117         (parse_opt): ... here.  Likewise use alloca there.
26118         Validate the -i argument before checking for rootness.
26119         (send_shutdown): New function, broken out of ...
26120         (parse_opt): ... here.
26121
26122 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26123
26124         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
26125         macro to get at the _rt_local_ro field.
26126         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
26127         ([PIC] case) or _dl_hwcap ([!PIC] case).
26128         * sysdeps/arm/setjmp.S: Likewise.
26129
26130         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
26131         * sysdeps/arm/configure.ac: New check to define it.
26132         * sysdeps/arm/configure: Regenerated.
26133         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
26134         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
26135         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
26136         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
26137         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
26138         Use move/movt pair instead of a load.
26139         (LDST_GLOBAL): Macro removed.
26140         (LDR_GLOBAL): New macro replaces it.
26141         (LDR_HIDDEN): New macro.
26142         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
26143         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
26144
26145         * setjmp/tst-setjmp-static.c: New file.
26146         * setjmp/Makefile (tests): Add it.
26147         (tests-static): New variable.
26148
26149 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
26150
26151         [BZ #17485]
26152         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
26153
26154 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
26155
26156         [BZ #14132]
26157         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
26158
26159 2014-10-21  Roland McGrath  <roland@hack.frob.com>
26160
26161         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
26162
26163 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26164
26165         * io/fts.c (dirent_not_directory): New function.
26166         (fts_build): Call it.
26167
26168 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26169
26170         * nptl/version.c (__nptl_main): Use normal __write rather than
26171         INTERNAL_SYSCALL.
26172         (banner): Update copyright years.
26173
26174         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
26175         gettimeofday.
26176         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
26177         * nptl/pthread_cond_timedwait.c: Likewise.
26178         * nptl/pthread_mutex_timedlock.c: Likewise.
26179         * nptl/sem_timedwait.c: Likewise.
26180
26181         * sysdeps/nptl/bits/libc-lock.h
26182         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
26183         (__libc_lock_init_recursive): Return void, not 0.
26184         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
26185         (__libc_rwlock_init): Likewise.
26186         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
26187
26188 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26189
26190         [BZ #15215]
26191         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
26192         (__pthread_once_slow): ... here.
26193         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
26194         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
26195
26196 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26197
26198         [BZ #15215]
26199         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
26200         __PTHREAD_ONCE_FORK_GEN_INCR): New.
26201         * sysdeps/nptl/fork.c (__libc_fork): Use them.
26202         * nptl/pthread_once.c (__pthread_once): Likewise.
26203         Update comments.
26204
26205 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
26206
26207         [BZ #14138]
26208         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
26209         name.
26210         (writev): Use __libc_writev as strong name.
26211         * sysdeps/unix/sysv/linux/readv.c: Remove file.
26212         * sysdeps/unix/sysv/linux/writev.c: Likewise.
26213
26214 2014-10-17  Roland McGrath  <roland@hack.frob.com>
26215
26216         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
26217
26218         * sysdeps/i386/nptl/tls.h
26219         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
26220         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
26221         New macros.
26222         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
26223         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
26224         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
26225         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
26226         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
26227         Call CHECK_THREAD_SYSINFO instead of doing an assert.
26228
26229         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
26230         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
26231         on [__NR_futex].
26232         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
26233         broken out of ...
26234         (__pthread_mutex_init): ... here.  Call it.
26235         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
26236         Conditionalize PI cases on [__NR_futex].
26237         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
26238         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
26239         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
26240
26241         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
26242         conditional on [SIGSETXID].
26243         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
26244         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
26245         is defined.  Likewise for SIGSETXID.
26246         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
26247         Conditionalize definitions on [SIGSETXID].
26248         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
26249         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
26250         unblocking on [SIGCANCEL].
26251
26252         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
26253         [__NR_set_robust_list].
26254
26255 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
26256
26257         * string/strcoll_l.c (get_next_seq): Fix up formatting.
26258         (do_compare): Likewise.
26259
26260 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
26261
26262         [BZ #15884]
26263         * string/strcoll_l.c: Don't include stdio.h.
26264         (coll_seq): Remove members idxarr and rulearr.
26265         (get_next_seq_cached): Remove function.
26266         (get_next_seq): Likewise.
26267         (get_next_seq_nocache): Rename to get_next_seq.
26268         (do_compare): Remove function.
26269         (do_compare_nocache): Rename to do_compare.
26270         (STRCOLL): Remove weight and rules cache.
26271
26272 2014-10-16  Roland McGrath  <roland@hack.frob.com>
26273
26274         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
26275         * sysdeps/arm/sfp-machine.h: ... to here.
26276         * sysdeps/arm/Implies: Remove arm/soft-fp.
26277
26278 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
26279
26280         * conform/data/sys/utsname.h-data (*_t): Allow.
26281         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
26282         [POSIX] (WEXITED): Do not expect constant.
26283         [POSIX] (WSTOPPED): Likewise.
26284         [POSIX] (WNOHANG): Likewise.
26285         [POSIX] (WNOWAIT): Likewise.
26286         [POSIX] (siginfo_t): Do not expect type or elements.
26287         [POSIX] (pid_t): Do not expect type.
26288         [POSIX] (signal.h): Do not allow header.
26289         [POSIX] (sys/resource.h): Likewise.
26290         [POSIX] (si_*): Do not allow pattern.
26291         [POSIX] (W*): Likewise.
26292         [POSIX] (P_*): Likewise.
26293         [POSIX] (BUS_*): Likewise.
26294         [POSIX] (CLD_*): Likewise.
26295         [POSIX] (FPE_*): Likewise.
26296         [POSIX] (ILL_*): Likewise.
26297         [POSIX] (POLL_*): Likewise.
26298         [POSIX] (SEGV_*): Likewise.
26299         [POSIX] (SI_*): Likewise.
26300         [POSIX] (TRAP_*): Likewise.
26301         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
26302         variable.
26303
26304 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26305
26306         [BZ #12926]
26307         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
26308         infinite loop when __recvmsg returns 0.
26309
26310 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
26311
26312         * CANCEL-FCT-WAIVE: Remove file.
26313         * CANCEL-FILE-WAIVE: Likewise.
26314
26315         [BZ #14132]
26316         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
26317         instead of INTVARDEF.
26318         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26319         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
26320         rtld_hidden_data_def instead of INTVARDEF.
26321         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26322         * elf/dl-deps.c (expand_dst): Likewise.
26323         * elf/dl-load.c (_dl_dst_count): Likewise.
26324         (_dl_dst_substitute): Likewise.
26325         (decompose_rpath): Likewise.
26326         (_dl_init_paths): Likewise.
26327         (open_path): Likewise.
26328         (_dl_map_object): Likewise.
26329         * elf/rtld.c (dl_main): Likewise.
26330         (process_dl_audit): Likewise.
26331         (process_envvars): Likewise.
26332         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
26333         Remove declaration.
26334         (__libc_enable_secure): Use rtld_hidden_proto.
26335
26336 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26337
26338         * elf/dl-load.c
26339         (add_path): New function broken out of _dl_rtld_di_serinfo.
26340         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
26341
26342 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26343
26344         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
26345         parentheses around macro arguments.
26346         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
26347         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
26348         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
26349         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
26350         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
26351         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26352         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26353         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
26354         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
26355         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
26356         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
26357         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
26358         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
26359         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
26360         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
26361         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
26362         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
26363         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
26364         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
26365         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
26366         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
26367         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
26368         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
26369         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26370         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26371         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
26372         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
26373         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
26374         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
26375         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
26376         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
26377         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
26378         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
26379         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
26380         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
26381         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
26382         Likewise.
26383         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
26384         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26385         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26386         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
26387         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
26388         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
26389         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
26390         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
26391         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
26392         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
26393         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
26394         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
26395         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
26396         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
26397         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
26398         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26399         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26400         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
26401         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
26402         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
26403         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
26404         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
26405         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
26406         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
26407         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
26408         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
26409         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
26410         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
26411         (_FP_FRAC_SRS_1): Likewise.
26412         (_FP_FRAC_CLZ_1): Likewise.
26413         (_FP_MUL_MEAT_1_imm): Likewise.
26414         (_FP_MUL_MEAT_1_wide): Likewise.
26415         (_FP_MUL_MEAT_1_hard): Likewise.
26416         (_FP_SQRT_MEAT_1): Likewise.
26417         (_FP_FRAC_ASSEMBLE_1): Likewise.
26418         (_FP_FRAC_DISASSEMBLE_1): Likewise.
26419         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
26420         (__FP_CLZ_2): Likewise.
26421         (_FP_MUL_MEAT_2_wide): Likewise.
26422         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
26423         (_FP_MUL_MEAT_2_gmp): Likewise.
26424         (_FP_MUL_MEAT_2_120_240_double): Likewise.
26425         (_FP_SQRT_MEAT_2): Likewise.
26426         (_FP_FRAC_ASSEMBLE_2): Likewise.
26427         (_FP_FRAC_DISASSEMBLE_2): Likewise.
26428         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
26429         (_FP_FRAC_CLZ_4): Likewise.
26430         (_FP_MUL_MEAT_4_wide): Likewise.
26431         (_FP_MUL_MEAT_4_gmp): Likewise.
26432         (_FP_SQRT_MEAT_4): Likewise.
26433         (_FP_FRAC_ASSEMBLE_4): Likewise.
26434         (_FP_FRAC_DISASSEMBLE_4): Likewise.
26435         * soft-fp/op-common.h (_FP_CMP): Likewise.
26436         (_FP_CMP_EQ): Likewise.
26437         (_FP_CMP_UNORD): Likewise.
26438         (_FP_TO_INT): Likewise.
26439         (_FP_FROM_INT): Likewise.
26440         [!__FP_CLZ] (__FP_CLZ): Likewise.
26441         (_FP_DIV_HELP_imm): Likewise.
26442         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26443         Likewise.
26444         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26445         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26446         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26447         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26448         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26449         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26450         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26451         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26452         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26453         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26454         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26455         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26456         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26457         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26458         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26459         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26460         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26461         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26462         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26463         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26464         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26465         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26466         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26467         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26468         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26469         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26470         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26471         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26472         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26473         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26474         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26475         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26476         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26477         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26478         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26479         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26480         (FP_UNPACK_RAW_SP): Likewise.
26481         (FP_PACK_RAW_S): Likewise.
26482         (FP_PACK_RAW_SP): Likewise.
26483         (FP_UNPACK_S): Likewise.
26484         (FP_UNPACK_SP): Likewise.
26485         (FP_UNPACK_SEMIRAW_S): Likewise.
26486         (FP_UNPACK_SEMIRAW_SP): Likewise.
26487         (FP_PACK_S): Likewise.
26488         (FP_PACK_SP): Likewise.
26489         (FP_PACK_SEMIRAW_S): Likewise.
26490         (FP_PACK_SEMIRAW_SP): Likewise.
26491         (_FP_SQRT_MEAT_S): Likewise.
26492         (FP_CMP_S): Likewise.
26493         (FP_CMP_EQ_S): Likewise.
26494         (FP_CMP_UNORD_S): Likewise.
26495         (FP_TO_INT_S): Likewise.
26496         (FP_FROM_INT_S): Likewise.
26497
26498         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26499
26500         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26501         (FP_EX_INVALID_IMZ): Likewise.
26502         (FP_EX_INVALID_IMZ_FMA): Likewise.
26503         (FP_EX_INVALID_ISI): Likewise.
26504         (FP_EX_INVALID_ZDZ): Likewise.
26505         (FP_EX_INVALID_IDI): Likewise.
26506         (FP_EX_INVALID_SQRT): Likewise.
26507         (FP_EX_INVALID_CVI): Likewise.
26508         (FP_EX_INVALID_VC): Likewise.
26509         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26510         "invalid" exceptions.
26511         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26512         (_FP_ADD_INTERNAL): Likewise.
26513         (_FP_MUL): Likewise.
26514         (_FP_FMA): Likewise.
26515         (_FP_DIV): Likewise.
26516         (_FP_CMP_CHECK_NAN): Likewise.
26517         (_FP_SQRT): Likewise.
26518         (_FP_TO_INT): Likewise.
26519         (FP_EXTEND): Likewise.
26520
26521 2014-10-09  Allan McRae  <allan@archlinux.org>
26522
26523         * po/fr.po: Update French translation from translation project.
26524
26525 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26526
26527         [BZ #14132]
26528         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26529         of INTDEF.
26530         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26531         (__cxa_atexit): Use libc_hidden_proto.
26532         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26533
26534         [BZ #14132]
26535         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26536         declaration.
26537         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26538         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26539         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26540         [!_ISOMAC] (__iswctype_internal): Likewise.
26541         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26542         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26543         alias.
26544         (fcntl): Remove __fcntl_internal alias.
26545         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26546         __connect_internal alias.
26547         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26548         Likewise.
26549
26550         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26551         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26552         FP_DENORM_ZERO.
26553         (_FP_CHECK_FLUSH_ZERO): New macro.
26554         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26555         (_FP_CMP): Likewise.
26556         (_FP_CMP_EQ): Likewise.
26557         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26558         FP_DENORM_ZERO.
26559         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26560         (FP_TRUNC): Likewise.
26561
26562         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26563         treated as invalid conversion, not as normal exponent.
26564
26565         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26566         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26567         (_FP_CMP_EQ): Likewise.
26568         (_FP_CMP_UNORD): Likewise.
26569         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26570         (FP_CMP_EQ_D): Likewise.
26571         (FP_CMP_UNORD_D): Likewise.
26572         * soft-fp/extended.h (FP_CMP_E): Likewise.
26573         (FP_CMP_EQ_E): Likewise.
26574         (FP_CMP_UNORD_E): Likewise.
26575         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26576         (FP_CMP_EQ_Q): Likewise.
26577         (FP_CMP_UNORD_Q): Likewise.
26578         * soft-fp/single.h (FP_CMP_S): Likewise.
26579         (FP_CMP_EQ_S): Likewise.
26580         (FP_CMP_UNORD_S): Likewise.
26581         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26582         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26583         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26584         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26585         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26586         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26587         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26588         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26589         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26590         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26591         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26592         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26593         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26594         to FP_CMP_Q.
26595         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26596         FP_CMP_Q.
26597         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26598         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26599         FP_CMP_EQ_Q.
26600         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26601         FP_CMP_Q.
26602         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26603         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26604         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26605         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26606         FP_CMP_EQ_Q.
26607         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26608         FP_CMP_Q.
26609         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26610         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26611         FP_CMP_EQ_Q.
26612         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26613         FP_CMP_Q.
26614         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26615         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26616         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26617         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26618         FP_CMP_EQ_Q.
26619
26620         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26621         a subnormal result, set the underflow exception if trapping on
26622         underflow is enabled.
26623         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26624         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26625         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26626         redefine to 0.
26627         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26628         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26629         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26630         * soft-fp/extendxftf2.c (__extendxftf2): Use
26631         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26632
26633         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26634         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26635         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26636         FP_HANDLE_EXCEPTIONS.
26637         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26638         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26639         FP_HANDLE_EXCEPTIONS.
26640         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26641         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26642         FP_HANDLE_EXCEPTIONS.
26643         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26644         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26645         FP_HANDLE_EXCEPTIONS.
26646
26647 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26648
26649         [BZ #14132]
26650         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26651         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26652         use INTUSE.
26653         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26654         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26655         Remove alias.
26656         (__adjtimex): Define using libc_hidden_ver.
26657         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26658         Remove declaration.
26659         (ntp_gettime): Call __adjtimex directly.
26660         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26661         Remove declaration.
26662         (ntp_gettimex): Call __adjtimex directly.
26663         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26664         __adjtimex_internal alias.
26665
26666 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26667
26668         [BZ #17460]
26669         * nscd/nscd.c (more_help): Rewrite list of tables collection
26670         using xstrdup and asprintf.
26671
26672         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26673
26674 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26675             Roland McGrath  <roland@hack.frob.com>
26676
26677         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26678         (do_lookup_unique): ... local function 'enter' here; update callers.
26679
26680 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26681
26682         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26683         compat_symbol calls on [SHARED].
26684         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26685         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26686         Remove.
26687         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26688         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26689         (oldsetrlimit): Remove.
26690         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26692         (lchown): New syscall entry.
26693         (oldsetrlimit): Remove.
26694         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26695         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26696         (oldsetrlimit): Remove.
26697         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26698
26699         [BZ #14138]
26700         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26701         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26702         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26703         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26704         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26705         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26706         (fchown): Likewise.
26707         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26708         (fchown): Likewise.
26709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26710         Likewise.
26711
26712 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26713
26714         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26715         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26716         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26717         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26718         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26719         Likewise.
26720         (__old_sem_post): Likewise.
26721
26722 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26723
26724         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26725         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26726         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26727         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26728         Use INLINE_VSYSCALL macro.
26729         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26730         __vdso_clock_gettime.
26731         * sysdeps/unix/sysv/linux/tile/init-first.c
26732         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26733         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26734         __vdso_clock_gettime.
26735
26736         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26737         to set up frame more cleanly.
26738
26739         * sysdeps/tile/memcmp.c: New file.
26740
26741         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26742
26743         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26744         * sysdeps/tile/tilegx/strcasestr.c: New file.
26745         * sysdeps/tile/tilegx/strnlen.c: New file.
26746         * sysdeps/tile/tilegx/strstr.c: New file.
26747
26748         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26749
26750 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26751
26752         * nptl/tst-setuid3.c: Write errors to stdout.
26753
26754 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26755
26756         * elf/dl-deps.c
26757         (preload): New functions broken out of _dl_map_object_deps.
26758         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26759
26760 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26761
26762         [BZ #14138]
26763         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26764         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26765
26766 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26767
26768         * sysdeps/mips/strcmp.S: New.
26769
26770 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26771
26772         [BZ #14138]
26773         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26774         (linkat): Likewise.
26775         (mkdirat): Likewise.
26776         (readlinkat): Likewise.
26777         (renameat): Likewise.
26778         (symlinkat): Likewise.
26779         (unlinkat): Likewise.
26780         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26781         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26782         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26783         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26784         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26785         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26786         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26787
26788 2014-09-30  Will Newton  <will.newton@linaro.org>
26789
26790         * math/math.h: Define long double math functions if
26791         _LIBC_TEST is defined.
26792         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26793
26794         * localedata/Makefile: Move assignment to tests-special
26795         into an ifdef testing run-built-tests.
26796         * timezone/Makefile: Likewise.
26797
26798 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26799
26800         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26801         with $(BASH) not $(SHELL).
26802
26803 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26804             Matthew LeGendre  <legendre1@llnl.gov>
26805
26806         [BZ #17411]
26807         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26808         l_reloc_result.
26809
26810 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26811
26812         * stdio-common/printf_fp.c
26813         (hack_digit): New function, broken out of ...
26814         (__printf_fp): ... local function here.  Update call sites.
26815         hack_digit now takes an additional parameter that is a pointer
26816         to a struct of the referenced locals.  Those locals moved inside
26817         the struct and references updated.
26818
26819 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26820
26821         * aclocal.m4: Require autoconf 2.69.
26822         * configure: Regenerated.
26823         * sysdeps/aarch64/configure: Likewise.
26824         * sysdeps/alpha/configure: Likewise.
26825         * sysdeps/arm/armv7/configure: Likewise.
26826         * sysdeps/arm/configure: Likewise.
26827         * sysdeps/ia64/configure: Likewise.
26828         * sysdeps/mach/configure: Likewise.
26829         * sysdeps/mips/configure: Likewise.
26830         * sysdeps/s390/configure: Likewise.
26831         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26833
26834         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26835         file.
26836         * sysdeps/ia64/configure.ac: Likewise.
26837
26838 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26839
26840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26841         specify symbol version for ld.so.  Do not include entry for
26842         libpthread.
26843         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26844         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26845         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26846
26847         [BZ #14171]
26848         * Makeconfig [$(build-shared) = yes]
26849         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26850         makefiles.
26851         [$(build-shared) = yes && $(soversions.mk-done) = t]
26852         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26853         [$(build-shared) = yes && $(soversions.mk-done) = t]
26854         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26855         to Makerules.
26856         [$(build-shared) = yes && $(soversions.mk-done) = t]
26857         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26858         here.
26859         [$(build-shared) = yes && $(soversions.mk-done) = t]
26860         (common-generated): Don't append gnu/lib-names.h and
26861         gnu/lib-names.stmp here.
26862         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26863         (lib-names-h-abi): New variable.
26864         [$(build-shared) = yes && $(soversions.mk-done) = t]
26865         (lib-names-stmp-abi): Likewise.
26866         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26867         abi-variants] (before-compile): Append
26868         $(common-objpfx)$(lib-names-h-abi).
26869         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26870         abi-variants] (common-generated): Append gnu/lib-names.h.
26871         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26872         abi-variants] (install-others-nosubdir): Depend on
26873         $(inst_includedir)/$(lib-names-h-abi).
26874         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26875         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26876         [$(build-shared) = yes && $(soversions.mk-done) = t]
26877         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26878         [$(build-shared) = yes && $(soversions.mk-done) = t]
26879         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26880         [$(build-shared) = yes && $(soversions.mk-done) = t]
26881         (common-generated): Append $(lib-names-h-abi) and
26882         $(lib-names-stmp-abi).
26883         * scripts/lib-names.awk: Do not handle multi being set.
26884         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26885         Remove variable.
26886         (abi-lp64_be-ld-soname): Likewise.
26887         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26888         Likewise.
26889         (abi-hard-ld-soname): Likewise.
26890         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26891         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26892         Remove variable.
26893         (abi-o32_hard-ld-soname): Likewise.
26894         (abi-o32_soft_2008-ld-soname): Likewise.
26895         (abi-o32_hard_2008-ld-soname): Likewise.
26896         (abi-n32_soft-ld-soname): Likewise.
26897         (abi-n32_hard-ld-soname): Likewise.
26898         (abi-n32_soft_2008-ld-soname): Likewise.
26899         (abi-n32_hard_2008-ld-soname): Likewise.
26900         (abi-n64_soft-ld-soname): Likewise.
26901         (abi-n64_hard-ld-soname): Likewise.
26902         (abi-n64_soft_2008-ld-soname): Likewise.
26903         (abi-n64_hard_2008-ld-soname): Likewise.
26904         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
26905         Likewise.
26906         (abi-64-v2-ld-soname): Likewise.
26907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
26908         ld.so entries.
26909         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
26910         variable.
26911         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
26912         entry.
26913         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
26914         variable.
26915         (abi-64-ld-soname): Likewise.
26916         (abi-x32-ld-soname): Likewise.
26917         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
26918         entry.
26919         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26920
26921 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
26922
26923         [BZ #14138]
26924         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
26925         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
26926         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
26927         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
26928         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
26929         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
26930         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
26931         syscall entry for GLIBC_2.2 symbol version.
26932         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
26933         Likewise.
26934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26935         (setrlimit): Likewise.
26936         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
26937         Likewise.
26938
26939 2014-09-23  Will Newton  <will.newton@linaro.org>
26940
26941         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
26942         _LINUX_ARM_SYSDEP_H include guard too.
26943         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
26944         define.
26945
26946 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26947
26948         * sysdeps/unix/sysv/linux/eventfd.c:
26949         Make first argument unsigned.
26950         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
26951         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
26952
26953 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
26954
26955         [BZ #16852]
26956         * socket/recvmmsg.c (recvmmsg): Drop const argument.
26957         * socket/sys/socket.h: Likewise.
26958         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
26959
26960 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26961
26962         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
26963
26964 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
26965
26966         * time/tst-ftime.c: New test.
26967         * time/Makefile (tests): Add tst-ftime.
26968
26969 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
26970
26971         * soft-fp/extended.h: Fix comment formatting.
26972         * soft-fp/op-1.h: Likewise.
26973         * soft-fp/op-2.h: Likewise.
26974         * soft-fp/op-4.h: Likewise.
26975         * soft-fp/op-8.h: Likewise.
26976         * soft-fp/op-common.h: Likewise.
26977         * soft-fp/soft-fp.h: Likewise.
26978
26979         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
26980
26981 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
26982
26983         [BZ #6652]
26984         * Makeconfig (soversions-default-setname): Remove variable.
26985         ($(common-objpfx)soversions.i): Don't pass default_setname to
26986         soversions.awk.
26987         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
26988         oldest_abi to abi-versions.awk.
26989         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
26990         * config.make.in (oldest-abi): Remove variable.
26991         * configure.ac (--enable-oldest-abi): Remove configure option.
26992         * configure: Regenerated.
26993         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
26994         text.
26995         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
26996         * scripts/soversions.awk: Do not handle default_setname variable.
26997         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
26998         variable.
26999         * sysdeps/mach/hurd/configure: Regenerated.
27000         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
27001         variable.
27002         * sysdeps/unix/sysv/linux/configure: Regenerated.
27003
27004 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27005
27006         * elf/Makefile (CFLAGS-interp.c): Remove.
27007         ($(elf-objpfx)runtime-linker.h): Generate header with linker
27008         path string.
27009         * elf/interp.c: Include generated runtime-linker.h
27010
27011         * Makerules (lib%.so): Don't include $(+interp) in
27012         prerequisites.
27013         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
27014         * dlfcn/eval.c: Remove file.
27015
27016         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
27017         macros.
27018
27019         [BZ #17266]
27020         * misc/sys/cdefs.h: Define __extern_always_inline for clang
27021         4.2 and newer.
27022
27023         [BZ #17370]
27024         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
27025
27026 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27027             Jakub Jelinek  <jakub@redhat.com>
27028
27029         [BZ #17266]
27030         * libio/stdio.h: Check definition of __fortify_function
27031         instead of __extern_always_inline to include bits/stdio2.h.
27032         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
27033         check if __extern_always_inline is defined.
27034         [__USE_MISC || __USE_XOPEN]: Likewise.
27035         [__USE_ISOC99] Likewise.
27036         * misc/sys/cdefs.h (__fortify_function): Define only if
27037         __extern_always_inline is defined.
27038         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
27039         __extern_always_inline and __extern_inline only for g++-4.3
27040         and newer or a compatible gcc.
27041
27042 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
27043
27044         [BZ #17371]
27045         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
27046         last change to handle zero prefix length.
27047
27048 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
27049
27050         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
27051         _SC_REGEX_VERSION.
27052
27053         * posix/getconf.c (vars): Add _POSIX_IPV6 and
27054         _POSIX_RAW_SOCKETS.
27055
27056 2014-09-13  Allan McRae  <allan@archlinux.org>
27057
27058         * po/ru.po: Update Russian translation from translation project.
27059
27060 2014-09-12  Roland McGrath  <roland@hack.frob.com>
27061
27062         * locale/programs/locale.c (show_locale_vars): Inline local function
27063         into its sole call site.  Clean up some style nits.
27064         (print_item): New function, broken out of ...
27065         (show_info): ... local function here.  Clean up style nits.
27066
27067         * locale/programs/ld-ctype.c (set_one_default): New function, broken
27068         out of ...
27069         (set_class_defaults): ... local function set_default here.
27070         Define set_default as a macro locally to pass constant parameters.
27071         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
27072         rather than a shared local.
27073
27074         * stdlib/rpmatch.c (try): New function, broken out of ...
27075         (rpmatch): ... local function here.  Also, prototypify definition.
27076
27077 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
27078
27079         * scripts/soversions.awk: Do not handle configuration names.
27080         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
27081         vendor and os variables to soversions.awk.
27082         * configure.ac: Do not modify gnu-* host_os.
27083         * configure: Regenerated
27084         * shlib-versions: Remove first column with configuration names.
27085         * nptl/shlib-versions: Likewise.
27086         * nptl_db/shlib-versions: Likewise.
27087         * sysdeps/hppa/shlib-versions: Likewise.
27088         * sysdeps/m68k/shlib-versions: Likewise.
27089         * sysdeps/mach/hurd/shlib-versions: Likewise.
27090         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
27091         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
27092         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
27093         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
27094         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
27095         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
27096         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
27097         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
27098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27099         Likewise.
27100         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27101         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27102         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27103         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27104         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27105         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
27106         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27107         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27108
27109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
27110         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
27111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27112         Regenerated.
27113         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
27114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27115         Condition symbol version definitions on [HAVE_ELFV2_ABI].
27116
27117         * shlib-versions: Remove OS-specific entries.  Moved to files in
27118         sysdeps.
27119         * sysdeps/mach/hurd/shlib-versions: New file.
27120         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27121
27122         * nptl/shlib-versions: Remove architecture-specific entries.
27123         Moved to files in sysdeps.
27124         * shlib-versions: Likewise.
27125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
27126         file.
27127         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27128         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27129         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27130         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27131
27132         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
27133         (UDP_NO_CHECK6_RX): Likewise.
27134
27135 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27136
27137         * sysdeps/posix/sysconf.c (__sysconf): Spell
27138         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
27139
27140 2014-08-12  Florian Weimer  <fweimer@redhat.com>
27141
27142         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
27143         loading.
27144         * iconv/Versions (__gconv_transliterate): Export for use from
27145         gconv modules.
27146         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
27147         (struct __gconv_trans_data, __gconv_trans_fct,
27148         __gconv_trans_context_fct, __gconv_trans_query_fct,
27149         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
27150         definitions.
27151         (struct __gconv_step_data): Remove __trans member.
27152         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
27153         longer hidden.  Remove unused trans_data argument.
27154         * iconv/gconv_int.h (struct trans_struct): Remove definition.
27155         (__gconv_translit_find): Remove declaration.
27156         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
27157         prototype.
27158         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
27159         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
27160         trans_data argument.  Add hidden definition.
27161         (__gconv_translit_find): Remove.
27162         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
27163         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
27164         * iconv/skeleton.c: Remove transliteration initialization.
27165         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
27166         __gconv_step_data initialization.
27167         * libio/iofwide.c (__libio_translit_): Remove.
27168         (_IO_fwide): Adjust struct __gconv_step_data initialization.
27169         * wcsmbs/btowc.c (__btowc): Likewise.
27170         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
27171         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
27172         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
27173         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
27174         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
27175         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
27176         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
27177         * wcsmbs/wctob.c (wctob): Likewise.
27178
27179 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27180
27181         [BZ #16194]
27182         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
27183         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
27184         register usage.
27185         * sysdeps/x86/Makefile: Adjust.
27186
27187 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27188             Roland McGrath  <roland@hack.frob.com>
27189
27190         * locale/weight.h: Add include guard.
27191         (findidx): Make static rather than auto; take new parameters
27192         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
27193         * locale/weightwc.h: Likewise.
27194         * posix/fnmatch_loop.c
27195         (FCT): Change type of EXTRA from int32_t to wint_t.
27196         Don't include either header inside the function.
27197         Call FINDIDX rather than findidx, and pass new arguments.
27198         #undef FINDIDX at the end of the file.
27199         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
27200         FINDIDX before including fnmatch_loop.c for the non-wide version.
27201         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
27202         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
27203         for the wide version.
27204         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
27205         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
27206         Pass new arguments to findidx.
27207         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
27208         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
27209         Don't #include it inside the function.  Pass new arguments to findidx.
27210         * posix/regex_internal.h
27211         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
27212         (re_string_elem_size_at): Don't #include it inside the function.
27213         Pass new arguments to findidx.
27214         * string/strcoll_l.c: #include WEIGHT_H at top level.
27215         (get_next_seq): Don't #include it inside the function.
27216         Pass new arguments to findidx.
27217         (get_next_seq_nocache): Likewise.
27218         * string/strxfrm_l.c: #include WEIGHT_H at top level.
27219         (STRXFRM): Don't #include it inside the function.
27220         Pass new arguments to findidx.
27221
27222 2014-09-11  Florian Weimer  <fweimer@redhat.com>
27223
27224         [BZ #17344]
27225         * malloc/malloc.c (unlink): Turn asserts into a call to
27226         malloc_printerr.
27227
27228 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
27229
27230         [BZ #17370]
27231         * libio/wfileops (do_ftell_wide): Free OUT.
27232
27233 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
27234
27235         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
27236
27237 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27238
27239         [BZ #17363]
27240         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
27241         group if the current group is empty.
27242
27243 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27244
27245         * benchtests/bench-memset.c (test_main): Add more test from size
27246         from 32 to 512 bytes.
27247         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27248         Add POWER8 memset object.
27249         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27250         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
27251         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
27252         implementation.
27253         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
27254         Likewise.
27255         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
27256         multiarch POWER8 memset optimization.
27257         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
27258         POWER8 memset optimization.
27259
27260         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27261         Remove bzero multiarch objects.
27262         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
27263         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
27264         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
27265         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
27266         Remove define.
27267         [__bzero]: Redefine to specific name.
27268         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
27269         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
27270         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
27271         define.
27272         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
27273         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
27274
27275 2014-09-10  Florian Weimer  <fweimer@redhat.com>
27276
27277         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
27278         warnings into errors.
27279
27280         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
27281         __cxa_thread_atexit_impl prototype.
27282
27283 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27284
27285         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
27286         Fix capitalization of error message.
27287
27288 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27289
27290         * sysdeps/mips/preconfigure: Modify ABI tests.
27291
27292 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
27293
27294         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
27295
27296 2014-09-07  Roland McGrath  <roland@hack.frob.com>
27297             Carlos O'Donell  <carlos@systemhalted.org>
27298
27299         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
27300         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
27301         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
27302         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
27303         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
27304         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
27305         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
27306         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
27307         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
27308         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
27309         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
27310         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
27311         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
27312         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
27313         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
27314         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
27315         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
27316         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
27317         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
27318         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
27319         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
27320         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
27321         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
27322         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
27323         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
27324         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
27325         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
27326         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
27327         Deconditionalize the code that was previously under [RESET_PID].
27328         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
27329         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
27330         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
27331         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
27332         include sysdep.h.
27333
27334 2014-09-08  Allan McRae  <allan@archlinux.org>
27335
27336         * version.h (RELEASE): Set to "development".
27337         (VERSION): Set to "2.20.90"
27338
27339 2014-09-07  Allan McRae  <allan@archlinux.org
27340
27341         * version.h (RELEASE): Set to "stable".
27342         (VERSION): Set to "2.20"
27343         * include/features.h (__GLIBC_MINOR__): Set to 20.
27344
27345         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
27346         Liebler.
27347
27348         * po/ko.po: Update Korean translation from translation project.
27349
27350 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
27351
27352         [BZ #17354]
27353         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
27354         macro for handling signed relocations.
27355
27356 2014-09-03  Florian Weimer  <fweimer@redhat.com>
27357
27358         [BZ #17325]
27359         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
27360         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
27361         assert.
27362         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
27363         * iconvdata/ibm935.c (BODY): Likewise.
27364         * iconvdata/ibm937.c (BODY): Likewise.
27365         * iconvdata/ibm939.c (BODY): Likewise.
27366         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
27367         assert.
27368         * iconvdata/Makefile (iconv-test.out): Pass module list to test
27369         script.
27370         * iconvdata/run-iconv-test.sh: New test loop for checking for
27371         decoder crashers.
27372
27373 2014-09-02  Khem Raj  <raj.khem@gmail.com>
27374
27375         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
27376         libm_hidden_ver.
27377
27378 2014-09-01  Allan McRae  <allan@archlinux.org>
27379
27380         * po/eo.po: Update Esperanto translation from translation project.
27381
27382         * po/ca.po: Update Catalan translation from translation project.
27383
27384 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27385
27386         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
27387         __proc_dostop call.
27388
27389 2014-08-27  Mark Wielaard  <mjw@redhat.com>
27390
27391         [BZ #17319]
27392         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
27393         to call set_thread_area instead of hand written asm.
27394         (__NR_set_thread_area): Removed define.
27395         (TLS_FLAG_WRITABLE): Likewise.
27396         (__ASSUME_SET_THREAD_AREA): Remove check.
27397         (TLS_EBX_ARG): Remove define.
27398         (TLS_LOAD_EBX): Likewise.
27399
27400 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27401
27402         Simplify atomicity of socket creation in bind.
27403
27404         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
27405         looking up the name after linking the file.
27406
27407 2014-08-27  Allan McRae  <allan@archlinux.org>
27408
27409         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27410
27411 2014-08-26  Florian Weimer  <fweimer@redhat.com>
27412
27413         [BZ #17187]
27414         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
27415         trans_compare, open_translit, __gconv_translit_find):
27416         Remove module loading code.
27417
27418 2014-08-26  Allan McRae  <allan@archlinux.org>
27419
27420         * po/vi.po: Update Vietnamese translation from translation project.
27421
27422         * po/uk.po: Update Ukrainian translation from translation project.
27423
27424         * po/fr.po: Update French translation from translation project.
27425
27426         * po/ru.po: Update Russian translation from translation project.
27427
27428         * po/pl.po: Update Polish translation from translation project.
27429
27430         * po/cs.po: Update Czech translation from translation project.
27431
27432         * po/de.po: Update German translation from translation project.
27433
27434         * po/bg.po: Update Bulgarian translation from translation project.
27435
27436         * po/sv.po: Update Sweedish translation from translation project.
27437
27438         * po/nl.po: Update Dutch translation from translation project.
27439
27440         * po/es.po: Update Spanish translation from translation project.
27441
27442 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27443
27444         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27445
27446         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27447         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27448         (CPPFLAGS-iconvconfig): Likewise.
27449         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27450
27451         * include/libc-symbols.h: Remove unnecessary check for
27452         NOT_IN_libc.
27453         * nptl/pthreadP.h: Likewise.
27454         * sysdeps/aarch64/setjmp.S: Likewise.
27455         * sysdeps/alpha/setjmp.S: Likewise.
27456         * sysdeps/arm/sysdep.h: Likewise.
27457         * sysdeps/i386/setjmp.S: Likewise.
27458         * sysdeps/m68k/setjmp.c: Likewise.
27459         * sysdeps/posix/getcwd.c: Likewise.
27460         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27461         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27462         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27463         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27464         * sysdeps/sh/sh3/setjmp.S: Likewise.
27465         * sysdeps/sh/sh4/setjmp.S: Likewise.
27466         * sysdeps/unix/alpha/sysdep.h: Likewise.
27467         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27468         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27469         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27470         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27473         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27474         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27475         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27476         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27477         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27478         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27479         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27480         * sysdeps/x86_64/setjmp.S: Likewise.
27481
27482 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27483
27484         [BZ #17263]
27485         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27486         <stdint.h>.
27487         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27488         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27489
27490 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27491
27492         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27493
27494         [BZ #17262]
27495         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27496         and __x86_64__ when disabling x87 inline functions.
27497
27498 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27499
27500         [BZ #17259]
27501         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27502         asm statement with __cpuid_count.
27503
27504 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27505
27506         * configure.ac: Change __ehdr_start code to dereference the struct.
27507         Run readelf on the output to look for relocations.
27508         * configure: Regenerated.
27509
27510 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27511
27512         [BZ #17261]
27513         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27514         value to 0.
27515         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27516
27517 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27518
27519         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27520
27521 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27522
27523         [BZ #16892]
27524         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27525         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27526
27527 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27528
27529         * malloc/malloc.c: Fix typo in comment.
27530
27531 2014-08-09  Allan McRae  <allan@archlinux.org>
27532
27533         * Regenerate libc.po.
27534
27535 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27536
27537         * intl/tst-gettext2.sh: Check every lang file for creation.
27538
27539 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27540
27541         * sysdeps/aarch64/fpu/math_private.h
27542         (libc_feholdsetround_noex_aarch64_ctx): New function.
27543
27544 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27545
27546         * sysdeps/arm/armv6/strcpy.S (strcpy):
27547         Fix performance issue in misaligned cases.
27548
27549 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27550
27551         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27552         Move definition from termios.h.
27553         (struct termio): Likewise.
27554         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27555         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27556         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27557         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27558         Likewise.
27559         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27560         Move definition to ioctl-types.h
27561         (struct termio): Likewise.
27562         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27563         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27564         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27565         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27566         Likewise.
27567
27568 2014-08-05  Richard Henderson  <rth@redhat.com>
27569
27570         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27571         exceptions.
27572         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27573         Add fraiseexcpt.
27574         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27575         Use __feraiseexcept.
27576         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27577         Protect libm symbols with IS_IN_libm.
27578
27579         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27580
27581 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27582
27583         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27584
27585 2014-08-04  Will Newton  <will.newton@linaro.org>
27586
27587         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27588         file.
27589
27590 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27591
27592         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27593         variants for each function.
27594
27595 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27596
27597         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27598         appended ...
27599         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27600         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27601         appended ...
27602         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27603         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27604         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27605         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27606         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27607         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27608         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27609         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27610         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27611         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27612         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27613         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27614         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27615         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27616         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27617         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27618         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27619         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27620         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27621         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27622         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27623         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27624         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27625         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27626         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27627         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27628         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27629         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27630         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27631         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27632         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27633         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27634         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27635         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27636         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27637         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27638         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27639         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27640         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27641         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27642         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27643         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27644         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27645         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27646         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27647         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27648         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27649         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27650         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27651         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27652         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27653         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27654         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27655         Update #include.
27656         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27657         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27658
27659 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27660
27661         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27662         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27663         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27664         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27665         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27666         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27667
27668 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27669
27670         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27671         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27672         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27673         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27674
27675 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27676
27677         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27678         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27679         (__libc_vfork): Define function under this name.
27680         (__vfork): Define as an alias.
27681         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27682         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27683
27684 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27685
27686         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27687         that was previously under [RESET_PID].
27688         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27689
27690 2014-08-04  Andreas Schwab  <schwab@suse.de>
27691
27692         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27693
27694 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27695
27696         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27697         (main): Likewise.
27698
27699 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27700
27701         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27702
27703 2014-08-01  Richard Henderon  <rth@redhat.com>
27704
27705         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27706         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27707         typo in exact zero test.
27708         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27709         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27710         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27711
27712 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27713
27714         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27715         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27716         * sysdeps/arm/sysdep.h: ... here.
27717         [!__ASSEMBLER__]: Include <stdint.h>.
27718
27719 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27720
27721         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27722         (HAVE_WCTYPE_H): Likewise.
27723         (HAVE_ISWCTYPE): Likewise.
27724         (ENABLE_NLS): Likewise.
27725         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27726         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27727
27728         * posix/regex_internal.c: Check if DEBUG is defined and is
27729         set.
27730
27731         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27732         (HAVE_MBSRTOWCS): Likewise.
27733         * posix/fnmatch.c: Include string.h unconditionally.
27734
27735 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27736
27737         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27738         reversal.
27739
27740 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27741
27742         * sysdeps/generic/safe-fatal.h: New file.
27743         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27744         * nptl/forward.c: Include it.
27745         (__pthread_unwind): Use __safe_fatal as default action, rather
27746         than a bogus use of INTERNAL_SYSCALL that could never work.
27747
27748         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27749         * configure.ac (libc_cv_builtin_trap): New test.
27750         * configure: Regenerated.
27751         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27752         (ABORT_INSTRUCTION): Define using __builtin_trap.
27753
27754         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27755         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27756         * sysdeps/nptl/nptl-signals.h: New file.
27757         * nptl/pthreadP.h: Include <nptl-signals.h>.
27758
27759 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27760
27761         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27762         (ONE_DIRECTION): Define.
27763         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27764         (ONE_DIRECTION): Define.
27765         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27766         (ONE_DIRECTION): Define.
27767
27768 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27769
27770         * sysdeps/s390/Makefile: Delete file.
27771         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27772         * sysdeps/s390/__longjmp.c: Delete file.
27773         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27774         Remove fields __flags and __reserved.
27775         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27776         and add versioning.
27777         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27778         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27779         * sysdeps/s390/rtld-setjmp.S: Likewise.
27780         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27781         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27782         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27783         * sysdeps/s390/s390-32/setjmp.S: ... here.
27784         Add versioning.
27785         (__sigsetjmp): Remove setting __flags field.
27786         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27787         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27788         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27789         * sysdeps/s390/s390-64/setjmp.S: ... here.
27790         Add versioning.
27791         (__sigsetjmp): Remove setting __flags field.
27792         * sysdeps/s390/setjmp.S: Delete file.
27793         * sysdeps/s390/sigjmp.c: Likewise.
27794         * sysdeps/s390/v1-longjmp.c: Likewise.
27795         * sysdeps/s390/v1-setjmp.h: Likewise.
27796         * sysdeps/s390/v1-sigjmp.c: Likewise.
27797         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27798         Remove v1-longjmp_chk.
27799         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27800         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27801         Include debug/longjmp_chk.c and add versioning.
27802         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27803         Include nptl/pt-longjmp.c and add versioning.
27804         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27805         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27806         Include __longjmp.c.
27807         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27808         Move to ...
27809         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27810         (__getcontext): Remove setting __flags field.
27811         Add versioning.
27812         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27813         Don't restore upper high grps.
27814         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27815         Likewise.
27816         (__swapcontext): Remove setting uc_flags field.
27817         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27818         Delete file.
27819         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27820         Include __longjmp.c.
27821         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27822         Move to ...
27823         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27824         (__getcontext): Remove setting __flags field.
27825         Add versioning.
27826         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27827         (__swapcontext): Remove setting uc_flags field.
27828         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27829         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27830         Remove fields uc_high_gprs and __reserved.
27831         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27832         New file with reverted content.
27833         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27834         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27835         Regenerated.
27836         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27837         Regenerated.
27838
27839 2014-07-31  Andreas Schwab  <schwab@suse.de>
27840
27841         * config.h.in (HAVE_IFUNC): Define to 0.
27842         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27843         definedness.
27844
27845 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27846
27847         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27848         memmove-avx-unaligned, memcpy-avx-unaligned and
27849         mempcpy-avx-unaligned.
27850         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27851         Add tests for AVX memcpy functions.
27852         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27853         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27854         memcpy_chk.
27855         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27856         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27857         memmove_chk.
27858         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27859         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27860         mempcpy_chk.
27861         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27862         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27863         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27864
27865 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27866
27867         [BZ #17213]
27868         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27869         powerpc64le.
27870
27871 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27872
27873         [BZ #16839]
27874         * manual/llio.texi: Add section about open file description locks.
27875         * manual/examples/ofdlocks.c: Example of open file description
27876         lock usage.
27877         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27878         F_OFD_SETLK, and F_OFD_SETLKW.
27879
27880 2014-07-23  Allan McRae  <allan@archlinux.org>
27881
27882         * po/es.po: Update Spanish translation from translation project.
27883
27884 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27885
27886         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27887
27888 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27889
27890         [BZ #17078]
27891         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27892         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27893         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27894
27895 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27896
27897         [BZ #17088]
27898         * math/fesetenv.c (__fesetenv)
27899         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27900         * math/feupdateenv.c (__feupdateenv)
27901         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27902
27903         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
27904         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
27905         (__ASSUME_SOCKETCALL): Do not define.
27906
27907         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
27908         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
27909         (__ASSUME_SOCKETCALL): Do not define.
27910         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
27911         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27912         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27913         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27914         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27915         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
27916         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27917         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27918
27919         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
27920         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
27921         (__ASSUME_SOCKETCALL): Do not define.
27922         (__ASSUME_IPC64): Define unconditionally.
27923         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27924         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27925         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27926         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27927         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
27928         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27929         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
27930         Likewise.
27931
27932         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
27933         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
27934         (__ASSUME_SOCKETCALL): Do not define.
27935         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
27936         (__ASSUME_FUTEX_LOCK_PI): Likewise.
27937         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27938         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
27939         (__ASSUME_REQUEUE_PI): Define unconditionally.
27940         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
27941         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
27942         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27943         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
27944         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27945         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27946
27947         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
27948         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
27949         (__ASSUME_SOCKETCALL): Do not define.
27950         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
27951         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27952         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27953         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
27954         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27955         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27956
27957         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
27958         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
27959         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27960         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
27961         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27962         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
27963         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27964         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
27965         (__ASSUME_GETCPU_SYSCALL): Likewise.
27966
27967         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
27968         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
27969         cases for individual architectures.
27970         * sysdeps/gnu/configure: Regenerated.
27971         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
27972         LIBC_SLIBDIR_RTLDDIR.
27973         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
27974         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
27975         LIBC_SLIBDIR_RTLDDIR.
27976         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
27977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
27978         LIBC_SLIBDIR_RTLDDIR.
27979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27980         Regenerated.
27981         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
27982         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
27983         file.
27984         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
27985         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
27986         file.
27987         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
27988         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
27989         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
27990         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
27991
27992         * sysdeps/aarch64/shlib-versions: Move to ...
27993         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
27994         * sysdeps/alpha/shlib-versions: Move to ...
27995         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
27996         * sysdeps/arm/shlib-versions: Move to ...
27997         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
27998         * sysdeps/hppa/shlib-versions: Move all contents except for
27999         libgcc_s entry to ...
28000         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
28001         entry from ...
28002         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
28003         * sysdeps/ia64/shlib-versions: Move to ...
28004         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
28005         entry from ...
28006         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
28007         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
28008         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
28009         * sysdeps/microblaze/shlib-versions: Move to ...
28010         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
28011         * sysdeps/mips/shlib-versions: Move to ...
28012         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
28013         entry from ...
28014         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
28015         * sysdeps/tile/shlib-versions: Move to ...
28016         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
28017         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
28018         from ...
28019         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
28020         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
28021         entry from ...
28022         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
28023
28024 2014-07-17  Will Newton  <will.newton@linaro.org>
28025
28026         * sysdeps/arm/bits/atomic.h
28027         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
28028         (__arch_compare_and_exchange_bool_16_int): Likewise.
28029         (__arch_compare_and_exchange_bool_64_int): Likewise.
28030
28031         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
28032         into an #else block.
28033
28034 2014-07-16  Roland McGrath  <roland@hack.frob.com>
28035
28036         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
28037         just Linux configurations.  Test empirically that the compiler sets
28038         __ARM_EABI__, rather than using the tuple to decide.
28039         * sysdeps/arm/preconfigure: Regenerated.
28040         * sysdeps/unix/sysv/linux/arm/configure: File removed.
28041         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
28042         contents appended ...
28043         * sysdeps/arm/configure.ac: ... here.
28044         * sysdeps/arm/configure: Regenerated.
28045
28046 2014-07-15  Roland McGrath  <roland@hack.frob.com>
28047
28048         * nptl/pthread_kill.c: New file.
28049         * nptl/pthread_sigmask.c: New file.
28050         * nptl/pthread_sigqueue.c: New file.
28051
28052         * sysdeps/nptl/lowlevellock.h: New file.
28053         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
28054         * sysdeps/nptl/lowlevellock-futex.h: New file.
28055
28056         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
28057         Remove dead declarations.
28058
28059 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
28060
28061         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
28062         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
28063         config-cflags-avx2.
28064         * sysdeps/x86_64/configure.ac: Likewise.
28065         * sysdeps/i386/configure: Regenerated.
28066         * sysdeps/x86_64/configure: Likewise.
28067         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28068         memset-avx2 only if config-cflags-avx2 is yes.
28069         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28070         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
28071         defined.
28072         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
28073         only if HAVE_AVX2_SUPPORT is defined.
28074         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
28075
28076 2014-07-14  Alan Modra  <amodra@gmail.com>
28077
28078         [BZ #17153]
28079         * elf/elf.h (DT_PPC64_NUM): Correct value.
28080         * NEWS: Add to fixed bug list.
28081
28082 2014-07-13  Jim Meyering  <meyering@fb.com>
28083
28084         [BZ 17150]
28085         regex: don't deref NULL upon heap allocation failure
28086         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
28087         failure in one more place.
28088         To trigger the segfault, configure grep -with-included-regex,
28089         build it, and run these commands:
28090         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28091
28092 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
28093
28094         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28095
28096 2014-07-11  Richard Henderson  <rth@redhat.com>
28097
28098         * sysdeps/aarch64/libm-test-ulps: Update.
28099
28100 2014-07-10  Florian Weimer  <fweimer@redhat.com>
28101
28102         [BZ #17135]
28103         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
28104         * nptl/allocatestack.c (__nptl_setxid_error): New function.
28105         (__nptl_setxid): Initialize error member.  Call
28106         __nptl_setxid_error.
28107         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
28108         * nptl/descr.h (struct xid_command): Add error member.
28109         * nptl/tst-setuid3.c: New file.
28110         * nptl/Makefile (tests): Add it.
28111
28112 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28113
28114         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
28115         New define.
28116         (__lll_trylock): Use __lll_base_trylock.
28117         (__lll_cond_trylock): Likewise.
28118
28119 2014-07-10  Roland McGrath  <roland@hack.frob.com>
28120
28121         * nptl/pthread_create.c (start_thread): Use atomic_or and
28122         lll_futex_wake directly rather than lll_robust_dead.
28123         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28124         (lll_robust_dead): Macro removed.
28125         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
28126         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28127         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28128         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28129         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28130         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28131         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28132         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28133         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28134         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28135         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28136         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28137         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28138         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28139         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28140
28141         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
28142         Use atomic_compare_and_exchange_val_acq directly rather than
28143         lll_robust_trylock.
28144         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28145         (__lll_robust_trylock, lll_robust_trylock): Removed.
28146         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28147         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28148         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28149         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28150         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28151         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28152         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28153         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28154         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28155         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28156         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28157         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28158         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28159         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28160
28161 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28162
28163         * manual/locale.texi (Locale Names): New section documenting
28164         locale name syntax.  Adjust menu and node chaining accordingly.
28165         (Choosing Locale): Reference Locale Names, Locale Categories.
28166         Mention setting LC_ALL=C.  Reflect that name syntax is now
28167         documented.
28168         (Locale Categories): New section title.  Reference Locale Names.
28169         LC_ALL is an environment variable, but not a category.
28170         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
28171         description, now in Locale Name.  Reference that section.  Locale
28172         name syntax is now documented.
28173
28174 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28175
28176         [BZ #17137]
28177         * locale/findlocale.c (name_present, valid_locale_name): New
28178         functions.
28179         (_nl_find_locale): Use the loc_name variable to store name
28180         candidates.  Call name_present and valid_locale_name to check and
28181         validate locale names.  Return an error if the locale is invalid.
28182
28183 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28184
28185         * locale/setlocale.c (setlocale): Use strdup for allocating
28186         composite name copy.
28187
28188 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28189
28190         Sync up with gnulib.
28191         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
28192         [!_LIBC && ENABLE_NLS]: Include gettext.h.
28193         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
28194         and _GL_ARG_NONNULL.
28195         [USE_UNLOCKED_IO]: Include unlocked-io.h.
28196         [!_LIBC]: Include code for Windows and Cygwin.
28197         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
28198         Include prototype for int strerror_r.
28199         [!_LIBC] (is_open): New function.
28200         (flush_stdout): New function.
28201         (print_errno_message): Use it.
28202         (error): Likewise.
28203         (error_at_line): Likewise.
28204         (error_tail) Add function attribute macros.  Use
28205         __builtin_expect.
28206
28207         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
28208
28209         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
28210
28211         * io/ftw.c: Include sys/param.h unconditionally.
28212
28213         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
28214
28215         [BZ #17125]
28216         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
28217         libc_freeres_ptr.
28218         (freecache): New function to free CACHE on exit.
28219
28220         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
28221         initialization.
28222
28223 2014-07-09  David S. Miller  <davem@davemloft.net>
28224
28225         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28226
28227         * sysdeps/sparc/nptl/internaltypes.h: Delete.
28228         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
28229         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
28230         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
28231         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
28232         * sysdeps/sparc/nptl/sem_init.c: Likewise.
28233         * sysdeps/sparc/nptl/sem_post.c: Likewise.
28234         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
28235         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
28236         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
28237         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
28238         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
28239         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
28240
28241 2014-07-09  Andreas Schwab  <schwab@suse.de>
28242
28243         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
28244         output.
28245         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
28246         (do_test): Likewise.
28247
28248         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28249
28250 2014-07-09  Will Newton  <will.newton@linaro.org>
28251
28252         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
28253         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
28254         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28255         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28256         * sysdeps/hppa/start.S (_start): Likewise.
28257
28258 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
28259
28260         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
28261
28262         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
28263         defined.
28264
28265 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28266
28267         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
28268         after checking that it is non-NULL.
28269
28270         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
28271
28272 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28273
28274         * sysdeps/powerpc/memmove.c: Remove file.
28275         * sysdeps/powerpc/powerpc32/power4/memcopy.h
28276         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
28277         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
28278         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
28279         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
28280         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
28281         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
28282         string memmove instead of removed powerpc one.
28283
28284         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
28285         [weak_alias]: Fix compiler warning due trailing data.
28286         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
28287         [weak_alias]: Likewise.
28288         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
28289         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
28290
28291         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
28292         (__libc_ifunc_impl_list): Add memmove functions.
28293
28294 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28295
28296         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
28297         Remove code.
28298         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
28299         Likewise.
28300         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
28301         Likewise.
28302         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
28303         Likewise.
28304         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
28305         Likewise.
28306         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
28307         Likewise.
28308         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
28309         Likewise.
28310         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
28311         Likewise.
28312         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
28313         Likewise.
28314         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
28315         Likewise.
28316         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
28317         Likewise.
28318         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
28319         Likewise.
28320         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
28321         Likewise.
28322         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
28323         Likewise.
28324         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
28325         Likewise.
28326         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
28327         Likewise.
28328         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
28329         Likewise.
28330
28331 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28332
28333         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
28334         to avoid alignment traps in non-cacheable memory.
28335         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
28336
28337         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
28338         multiarch objects.
28339         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
28340         file: multiarch power7 memmove.
28341         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
28342         multiarch default memmove.
28343         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
28344         multiarch memove for powerpc32/power4.
28345
28346         * string/bcopy.c: Use full path to include memmove.c.
28347         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
28348         multiarch objects.
28349         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
28350         bcopy for powerpc64.
28351         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
28352         bcopy for powerpc64.
28353         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
28354         and memmove implementations.
28355         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
28356         optimized multiarch memmove for POWER7/powerpc64.
28357         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
28358         default multiarch memmove for powerpc64.
28359         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
28360         multiarch for powerpc64.
28361         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
28362         for POWER7/powerpc64.
28363         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
28364         memmove for POWER7/powerpc64.
28365
28366         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
28367         glibc default one.
28368
28369         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
28370         __ELF_NATIVE_CLASS equal to 64.
28371
28372 2014-07-07  Roland McGrath  <roland@hack.frob.com>
28373
28374         * sysdeps/nptl/lowlevellock.h: File removed.
28375
28376         * NEWS: NPTL is no longer an add-on!
28377         * nptl/internaltypes.h: Moved ...
28378         * sysdeps/nptl/internaltypes.h: ... here.
28379         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
28380         * sysdeps/nptl/fork.c: Likewise.
28381         * sysdeps/nptl/gai_misc.h: Likewise.
28382         * sysdeps/nptl/librt-cancellation.c: Likewise.
28383         * sysdeps/nptl/jmp-unwind.c: Likewise.
28384         * sysdeps/nptl/setxid.h: Likewise.
28385         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
28386         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
28387         * sysdeps/unix/sysv/linux/arm/Implies: New file.
28388         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
28389         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
28390         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
28391         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
28392         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
28393         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
28394         * sysdeps/unix/sysv/linux/mips/Implies: New file.
28395         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
28396         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
28397         * sysdeps/unix/sysv/linux/sh/Implies: New file.
28398         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
28399         * sysdeps/unix/sysv/linux/tile/Implies: New file.
28400         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
28401         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
28402         * nptl/Makeconfig: Moved ...
28403         * sysdeps/nptl/Makeconfig: ... here.
28404         * nptl/configure: File removed.
28405         * nptl/ANNOUNCE: File removed.
28406         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
28407         * sysdeps/unix/sysv/linux/configure: Regenerated.
28408
28409         * nptl/Makefile (routines): Add libc_pthread_init,
28410         libc_multiple_threads, register-atfork and unregister-atfork.
28411         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
28412         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
28413         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
28414         pthread-pi-defines.sym, structsem.sym.
28415         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
28416         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
28417         [$(subdir) = nptl] (tests): Add tst-setgetname.
28418         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
28419         * sysdeps/unix/sysv/linux/sigaction.c: Just include
28420         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
28421         [!LIBC_SIGACTION]: Remove aliases.
28422         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28423         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28424         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28425         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
28426         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28427         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
28428         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28429         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28430         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28431         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
28432         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
28433         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
28434         __libc_allocate_rtsig_private.
28435         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
28436         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
28437         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28438         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28439         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
28440         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28441         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28442         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28443         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28444         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28445         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28446         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28447         * nptl/internaltypes.h: ... here.
28448         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28449         * sysdeps/nptl/jmp-unwind.c: ... here.
28450         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28451         * nptl/libc-lowlevellock.c: ... here.
28452         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28453         * nptl/libc_multiple_threads.c: ... here.
28454         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28455         * nptl/libc_pthread_init.c: ... here.
28456         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28457         * nptl/lowlevelbarrier.sym: ... here.
28458         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28459         * nptl/lowlevelcond.sym: ... here.
28460         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28461         * nptl/lowlevellock.c: ... here.
28462         * nptl/lowlevellock.h: Moved ...
28463         * sysdeps/nptl/lowlevellock.h: ... here.
28464         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28465         * nptl/lowlevelrobustlock.c: ... here.
28466         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28467         * nptl/lowlevelrobustlock.sym: ... here.
28468         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28469         * nptl/lowlevelrwlock.sym: ... here.
28470         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28471         * nptl/pt-fork.c: ... here.
28472         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28473         * nptl/pthread-pi-defines.sym: ... here.
28474         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28475         * nptl/pthread_attr_getaffinity.c: ... here.
28476         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28477         * nptl/pthread_attr_setaffinity.c: ... here.
28478         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28479         * nptl/pthread_mutex_cond_lock.c: ... here.
28480         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28481         Update #include.
28482         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28483         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28484         * nptl/pthread_once.c: ... here, replacing old file.
28485         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28486         * nptl/pthread_yield.c: ... here.
28487         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28488         * nptl/register-atfork.c: ... here.
28489         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28490         * nptl/sem_post.c: ... here.
28491         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28492         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28493         * nptl/sem_timedwait.c: ... here.
28494         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28495         * nptl/sem_trywait.c: ... here.
28496         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28497         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28498         * nptl/sem_wait.c: ... here.
28499         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28500         * nptl/structsem.sym: ... here.
28501         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28502         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28503         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28504         * nptl/unregister-atfork.c: ... here.
28505         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28506         * nptl/unwindbuf.sym: ... here.
28507         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28508         * sysdeps/nptl/fork.c: ... here.
28509         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28510         * sysdeps/nptl/fork.h: ... here.
28511         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28512         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28513         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28514         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28515         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28516         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28517         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28518         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28519         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28520         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28521         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28522         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28523         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28524         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28525         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28526         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28527         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28528         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28529         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28530         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28531         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28532         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28533         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28534         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28535         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28536         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28537         * sysdeps/unix/sysv/linux/raise.c: ... here.
28538         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28539         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28540         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28541         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28542         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28543         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28544         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28545         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28546         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28547         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28548         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28549         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28550         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28551         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28552         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28553
28554 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28555
28556         * sysdeps/generic/memcopy.h: Add comment for
28557         MEMCPY_OK_FOR_FWD_MEMMOVE.
28558
28559 2014-07-04  Will Newton  <will.newton@linaro.org>
28560
28561         * string/memchr.c: Merge from gnulib.
28562         [_LIBC]: Remove conditionals.
28563         (__ptr_t): Remove define.
28564         (LONG_MAX_32_BITS): Likewise.
28565         (LONG_MAX): Likewise.
28566         (MEMCHR): Use ANSI prototype and optimize algorithm.
28567
28568         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28569
28570 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28571
28572         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28573         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28574
28575         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28576         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28577         in a bare environment with no <stdlib.h> installed.
28578         * sysdeps/nptl/configure: Regenerated.
28579
28580         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28581
28582         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28583         AC_EGREP_CPP for kernel header checks, so they only succeed if
28584         including <linux/version.h> actually works right.
28585         * sysdeps/unix/sysv/linux/configure: Regenerated.
28586
28587         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28588         value so it's not diagnosed as unused.
28589
28590         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28591         thing) with "ifeq ($(subdir),rt)".
28592
28593 2014-07-03  Richard Henderson  <rth@redhat.com>
28594
28595         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28596         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28597         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28598
28599         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28600         (math_force_eval): New.
28601
28602         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28603         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28604
28605         * sysdeps/alpha/fpu/s_round.c: Remove file.
28606         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28607
28608         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28609         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28610         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28611         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28612         (_dl_start, print_statistics): Likewise.
28613         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28614         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28615
28616         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28617         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28618         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28619         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28620         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28621         (HP_SMALL_TIMING_AVAIL): Define.
28622         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28623         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28624         (HP_SMALL_TIMING_AVAIL): Define.
28625         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28626         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28627
28628         * sysdeps/aarch64/hp-timing.h: New file.
28629
28630         * sysdeps/generic/hp-timing.h: Remove dead comment.
28631         * sysdeps/generic/hp-timing-common.h: New file.
28632         * sysdeps/alpha/hp-timing.h: Include it.
28633         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28634         * sysdeps/i386/i686/hp-timing.h: Likewise.
28635         * sysdeps/ia64/hp-timing.h: Likewise.
28636         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28637         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28638         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28639         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28640         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28641         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28642         (hp_timing_t): New.
28643
28644         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28645         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28646         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28647         * elf/rtld.c (_dl_start_final): Likewise.
28648         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28649         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28650         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28651         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28652         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28653         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28654         (HP_TIMING_DIFF_INIT): Remove.
28655         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28656         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28657         (HP_TIMING_DIFF_INIT): Remove.
28658         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28659         * sysdeps/i386/i686/hp-timing.c: Remove file.
28660         * sysdeps/x86_64/hp-timing.c: Remove file.
28661         * sysdeps/ia64/hp-timing.c: Remove file.
28662         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28663         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28664         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28665         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28666
28667         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28668         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28669         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28670         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28671         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28672         (HP_TIMING_ACCUM): Remove.
28673         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28674         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28675         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28676
28677         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28678         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28679         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28680         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28681         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28682         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28683         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28684         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28685
28686         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28687
28688 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28689
28690         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28691
28692 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28693
28694         Sync up with gettext.
28695         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28696         [_MSC_VER]: Include malloc.h
28697         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28698         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28699         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28700         TEMP_FAILURE_RETRY.  Cast return of alloca.
28701         [!_LIBC] Call gl_rwlock_init.
28702         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28703
28704 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28705
28706         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28707         before checking its value.
28708
28709 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28710
28711         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28712
28713         * debug/memcpy_chk.c: Don't include pagecopy.h.
28714         * debug/mempcpy_chk.c: Likewise.
28715         * string/memcpy.c: Likewise.
28716         * string/memmove.c: Likewise.
28717         * sysdeps/powerpc/memmove.c: Likewise.
28718         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28719         definition of PAGE_COPY_FWD_MAYBE here...
28720         * sysdeps/generic/pagecopy.h: ... from here.
28721         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28722
28723 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28724             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28725
28726         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28727         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28728         optimizations.
28729         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28730         (__libc_ifunc_impl_list): Likewise.
28731         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28732         multiarch strcat for PPC64.
28733         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28734         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28735
28736 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28737
28738         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28739
28740 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28741
28742         * intl/loadmsgcat.c: Remove declaration of
28743         get_sysdep_segment_value.
28744         (get_sysdep_segment_value): Use ISO C style.
28745         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28746         semicolon.  Fix typo and formatting in comment.
28747         (_nl_unload_domain): Use ISO C style.
28748
28749         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28750
28751 2014-07-02  Will Newton  <will.newton@linaro.org>
28752
28753         * malloc/obstack.c: Merge from gnulib master.
28754         [HAVE_CONFIG_H]: Remove conditional code.
28755         [!_LIBC]: Include config.h.
28756         [!ELIDE_CODE]: Don't include inttypes.h, include
28757         stdint.h unconditionally.
28758         (print_and_abort): Mark as _Noreturn.
28759         (_obstack_allocated_p): Mark as __attribute_pure__.
28760         (obstack_free): Rename to __obstack_free.
28761         [!__attribute__]: Remove conditional code.
28762         * malloc/obstack.h: Merge from gnulib master.
28763         [__cplusplus]: Move conditional down.
28764         [!__attribute_pure__]: Define __attribute_pure__ here
28765         if it is not already defined.
28766         (_obstack_memory_used): Mark as __attribute_pure__.
28767         [!__obstack_free]: Define as obstack_free.
28768         [__GNUC__]: Remove check for ancient NeXT gcc.
28769
28770 2014-07-02  Will Newton  <will.newton@linaro.org>
28771             Paul Eggert  <eggert@cs.ucla.edu>
28772
28773         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28774
28775 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28776
28777         * resolv/gethnamaddr.c: Add comment warning that the file is
28778         not maintained.
28779
28780 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28781
28782         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28783         entries.
28784
28785         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28786         entry for aio_cancel and aio_cancel64.
28787         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28788         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28789         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28790         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28791         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28792         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28793         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28794         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28795         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28796         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28797         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28798         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28799         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28800
28801 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28802
28803         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28804         * nptl/pthread_mutex_lock.c: Likewise.
28805         * nptl/pthread_mutex_timedlock.c: Likewise.
28806         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28807
28808 2014-07-01  Richard henderson  <rth@redhat.com>
28809
28810         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28811         (__isnan, __isnanl): Remove.
28812         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28813
28814         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28815
28816 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28817
28818         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28819
28820 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28821
28822         * resolv/nss_dns/dns-host.c (getanswer_r)
28823         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28824
28825 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28826
28827         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28828         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28829         undefine.
28830         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28831         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28832
28833 2014-07-01  Roland McGrath <roland@hack.frob.com>
28834
28835         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28836         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28837
28838         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28839         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28840
28841         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28842         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28843         ... here.
28844         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28845         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28846
28847         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28848         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28849         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28850         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28851
28852         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28853         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28854         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28855         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28856         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28857         Moved ...
28858         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28859         ... here.
28860         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28861         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28862         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28863         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28864         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28865         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28866         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28867         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28868         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28869         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28870         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28871         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28872         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28873         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28874         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28875         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28876         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28877         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28878         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28879         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28880         ... here.
28881         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28882         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28883         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28884         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28885         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28886         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28887         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28888         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28889
28890 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28891
28892         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28893         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28894         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28895         Add sysdep.
28896
28897 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28898
28899         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28900
28901 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28902
28903         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28904         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28905
28906         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28907
28908         * sysdeps/arm/libm-test-ulps: Regenerated.
28909
28910 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28911             Roland McGrath <roland@hack.frob.com>
28912
28913         * test-skeleton.c (signal_handler): Kill the whole process group
28914         before killing the child individually.
28915         (main): Report any failure on `setpgid'.
28916
28917 2014-06-30  Roland McGrath  <roland@hack.frob.com>
28918
28919         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
28920         from _TLS_H to _ARM_NPTL_TLS_H.
28921         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
28922         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
28923
28924 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28925
28926         [BZ #16539]
28927         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
28928         (__expm1l): Return argument unchanged when small but not
28929         subnormal.
28930
28931         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
28932         include macro name.
28933         (_FP_UNPACK_RAW_1_P): Likewise.
28934         (_FP_PACK_RAW_1): Likewise.
28935         (_FP_PACK_RAW_1_P): Likewise.
28936         (_FP_MUL_MEAT_1_wide): Likewise.
28937         (_FP_MUL_MEAT_DW_1_hard): Likewise.
28938         (_FP_MUL_MEAT_1_hard): Likewise.
28939         (_FP_DIV_MEAT_1_imm): Likewise.
28940         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
28941         (_FP_DIV_MEAT_1_udiv): Likewise.
28942         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
28943         (_FP_UNPACK_RAW_2): Likewise.
28944         (_FP_UNPACK_RAW_2_P): Likewise.
28945         (_FP_PACK_RAW_2): Likewise.
28946         (_FP_PACK_RAW_2_P): Likewise.
28947         (_FP_MUL_MEAT_DW_2_wide): Likewise.
28948         (_FP_MUL_MEAT_2_wide): Likewise.
28949         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
28950         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
28951         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
28952         (_FP_MUL_MEAT_2_gmp): Likewise.
28953         (_FP_DIV_MEAT_2_udiv): Likewise.
28954         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
28955         (_FP_FRAC_SRL_4): Likewise.
28956         (_FP_FRAC_SRST_4): Likewise.
28957         (_FP_FRAC_SRS_4): Likewise.
28958         (_FP_UNPACK_RAW_4): Likewise.
28959         (_FP_UNPACK_RAW_4_P): Likewise.
28960         (_FP_PACK_RAW_4): Likewise.
28961         (_FP_PACK_RAW_4_P): Likewise.
28962         (_FP_MUL_MEAT_DW_4_wide): Likewise.
28963         (_FP_MUL_MEAT_4_wide): Likewise.
28964         (_FP_MUL_MEAT_4_gmp): Likewise.
28965         (umul_ppppmnnn): Likewise.
28966         (_FP_DIV_MEAT_4_udiv): Likewise.
28967         (__FP_FRAC_ADD_4): Likewise.
28968         (__FP_FRAC_SUB_3): Likewise.
28969         (__FP_FRAC_SUB_4): Likewise.
28970         (__FP_FRAC_DEC_3): Likewise.
28971         (__FP_FRAC_DEC_4): Likewise.
28972         (__FP_FRAC_ADDI_4): Likewise.
28973         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
28974         (_FP_FRAC_SRL_8): Likewise.
28975         (_FP_FRAC_SRS_8): Likewise.
28976
28977         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
28978         include macro name.
28979         (FP_UNPACK_RAW_EP): Likewise.
28980         (FP_PACK_RAW_E): Likewise.
28981         (FP_PACK_RAW_EP): Likewise.
28982         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
28983         (_FP_ISSIGNAN): Likewise.
28984         (_FP_ADD_INTERNAL): Likewise.
28985         (_FP_FMA): Likewise.
28986         (_FP_CMP): Likewise.
28987         (_FP_SQRT): Likewise.
28988         (_FP_TO_INT): Likewise.
28989         (_FP_FROM_INT): Likewise.
28990         (FP_EXTEND): Likewise.
28991         (_FP_DIV_MEAT_N_loop): Likewise.
28992
28993 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28994
28995         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
28996         throughout.
28997
28998 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
28999
29000         [BZ #17097]
29001         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
29002         result with correct sign in case of exponents that produce
29003         overflow except for X very close to 1.
29004
29005 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
29006
29007         mktime: merge #if/#ifdef usage from glibc
29008         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29009         as that works with both Glibc's and Gnulib's style.
29010         See thread starting at Siddhesh Poyarekar's bug report at:
29011         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
29012
29013 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
29014
29015         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
29016         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
29017         * sysdeps/tile/tilegx/memmove.c: Remove file.
29018
29019 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29020
29021         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
29022         abi-name definition.
29023         * scripts/soversions.awk: Do not handle or generate ABI lines.
29024         * shlib-versions: Remove ABI entries.
29025         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
29026         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
29027
29028 2014-06-27  Roland McGrath  <roland@hack.frob.com>
29029
29030         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
29031         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
29032         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
29033         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
29034         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
29035         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
29036         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
29037         Moved ...
29038         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
29039         ... here.
29040         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
29041         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
29042         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
29043         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
29044         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
29045         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
29046         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
29047         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
29048         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
29049         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
29050         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
29051         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
29052         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
29053         Moved ...
29054         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
29055         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
29056         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
29057         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
29058         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
29059         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
29060         Moved ...
29061         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
29062         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
29063         Moved ...
29064         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
29065         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
29066         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
29067         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
29068         Moved ...
29069         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
29070         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
29071         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
29072         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
29073         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
29074         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
29075         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
29076         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
29077         Moved ...
29078         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
29079         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
29080         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
29081         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
29082         Moved ...
29083         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
29084         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
29085         Moved ...
29086         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
29087         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
29088         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
29089         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
29090         Moved ...
29091         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
29092         ... here.
29093         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
29094         Identical file removed.
29095         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
29096         Moved ...
29097         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
29098         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
29099         Identical file removed.
29100         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
29101         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
29102         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
29103         Moved ...
29104         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
29105         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
29106         Identical file removed.
29107         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
29108         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
29109         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
29110         Identical file removed.
29111         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
29112         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
29113         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
29114         Identical file removed.
29115         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
29116         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
29117         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
29118         Identical file removed.
29119         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
29120         Moved ...
29121         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
29122         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
29123         Identical file removed.
29124         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
29125         Moved ...
29126         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
29127         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
29128         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
29129         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
29130         Identical file removed.
29131         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
29132         Moved ...
29133         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
29134         ... here.
29135         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
29136         Identical file removed.
29137         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
29138         Moved ...
29139         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
29140         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
29141         Identical file removed.
29142         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
29143         Moved ...
29144         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
29145         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
29146         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
29147         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
29148         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
29149         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
29150         Moved ...
29151         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
29152         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
29153         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
29154
29155         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
29156         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
29157         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
29158         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
29159         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
29160
29161 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
29162
29163         [BZ #17092]
29164         * nscd/nscd.c (monitor_child): Return exit status of child
29165         instead of return value from wait syscall.
29166
29167 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29168
29169         * configure.ac (libc_commonpagesize): Remove variable.
29170         (libc_relro_required): Likewise.
29171         (libc_cv_z_relro): Remove configure test.
29172         * configure: Regenerated.
29173         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
29174         variable.
29175         (libc_relro_required): Likewise.
29176         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
29177         (libc_relro_required): Likewise.
29178         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
29179         (libc_relro_required): Likewise.
29180         * sysdeps/arm/preconfigure: Regenerated.
29181         * sysdeps/ia64/preconfigure: Remove file.
29182         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
29183         variable.
29184         (libc_relro_required): Likewise.
29185
29186         [BZ #16561]
29187         [BZ #16562]
29188         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
29189         (__ieee754_yn): Set FE_TONEAREST mode internally and then
29190         recompute overflowing results in original rounding mode.
29191         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
29192         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
29193         recompute overflowing results in original rounding mode.
29194         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
29195         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29196         recompute overflowing results in original rounding mode.
29197         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
29198         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29199         recompute overflowing results in original rounding mode.
29200         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
29201         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29202         recompute overflowing results in original rounding mode.
29203         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
29204         (libc_feholdsetround_ctx): New macro.
29205         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
29206         * sysdeps/i386/fpu/libm-test-ulps: Update.
29207         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
29208
29209 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29210
29211         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
29212         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
29213         corresponding .cpsetup call.
29214
29215 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29216
29217         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
29218         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
29219         * sysdeps/arm/Makefile [$(subdir) = csu]
29220         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
29221         (static-only-routines): Add aeabi_read_tp here.
29222         (shared-only-routines): Add libc-aeabi_read_tp here.
29223         (CFLAGS-libc-start.c): Add -fexceptions here.
29224         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
29225         (sysdep_routines, static-only-routines, shared-only-routines):
29226         Don't add to these here.
29227         (CFLAGS-libc-start.c): Likewise.
29228
29229         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
29230         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
29231         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
29232         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
29233         * sysdeps/arm/Makefile [$(subdir) = rt]
29234         (librt-sysdep_routines, librt-shared-only-routines):
29235         Append rt-aeabi_unwind_cpp_pr1 here.
29236         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
29237         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
29238         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
29239         (libpthread-sysdep_routines, libpthread-shared-only-routines):
29240         Append nptl-aeabi_unwind_cpp_pr1 here.
29241         (tests): Filter out tst-cleanupx4 here.
29242         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
29243         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
29244         Don't do those here.
29245
29246 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29247
29248         * scripts/list-sources.sh: Do not handle ports specially.
29249
29250 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29251
29252         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
29253         * sysdeps/arm/feupdateenv.c: Likewise.
29254
29255         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
29256
29257 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29258
29259         * manual/texinfo.tex: Update to version 2014-05-05.10 with
29260         trailing whitespace removed.
29261         * scripts/config.guess: Update to version 2014-03-23.
29262         * scripts/config.sub: Update to version 2014-05-01
29263         * scripts/install-sh: Update to version 2013-12-25.23.
29264         * scripts/move-if-change: Update from gnulib.
29265
29266 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29267
29268         * debug/memmove_chk.c: Remove pagecopy.h include.
29269
29270 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
29271
29272         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
29273         identical to gnulib mktime.
29274
29275 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29276
29277         * configure.ac: Do not test for machine being rs6000.  Do not test
29278         for powerpc*-*soft.
29279         * configure: Regenerated.
29280
29281         [BZ #11505]
29282         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
29283         test.
29284         * configure: Regenerated.
29285         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
29286         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
29287         Remove configure test.
29288         * sysdeps/arm/configure: Regenerated.
29289         * sysdeps/nptl/configure.ac: Do not check
29290         libc_cv_asm_cfi_directives.
29291         * sysdeps/nptl/configure: Regenerated.
29292         * sysdeps/x86_64/nptl/configure.ac: Remove file.
29293         * sysdeps/x86_64/nptl/configure: Remove generated file.
29294         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
29295         unconditional.
29296         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
29297
29298 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29299
29300         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
29301         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
29302         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
29303         it is defined.
29304
29305         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
29306         instead of whether it is defined.
29307         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
29308         * sysdeps/hppa/dl-machine.h: Likewise.
29309         * sysdeps/ia64/dl-machine.h: Likewise.
29310         * sysdeps/m68k/dl-machine.h: Likewise.
29311         * sysdeps/microblaze/dl-machine.h: Likewise.
29312         * sysdeps/mips/dl-machine.: Likewise.
29313         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29314         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29315         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29316         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29317         * sysdeps/sh/dl-machine.h: Likewise.
29318         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29319         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29320         * sysdeps/tile/dl-machine.h: Likewise.
29321         * sysdeps/x86_64/dl-machine.h: Likewise.
29322
29323         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
29324         code.
29325         (verify_persistent_db): Likewise.
29326
29327 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29328
29329         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
29330         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
29331         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
29332         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
29333         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
29334         Moved ...
29335         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
29336         ... here.
29337         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
29338         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
29339         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
29340         Identical file removed.
29341         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
29342         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
29343         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
29344         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
29345         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
29346         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
29347         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
29348         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29349         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
29350         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
29351         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29352         Moved ...
29353         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
29354         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
29355         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
29356         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
29357         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
29358         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
29359         Moved ...
29360         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
29361         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
29362         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
29363         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
29364         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
29365         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29366         Identical file removed.
29367         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
29368         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
29369         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
29370         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
29371         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
29372         Moved ...
29373         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
29374         ... here.
29375         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
29376         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
29377         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
29378         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
29379         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
29380         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
29381         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
29382         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
29383         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
29384         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
29385         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29386         Moved ...
29387         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
29388         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
29389         Moved ...
29390         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
29391         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
29392         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
29393         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
29394         Moved ...
29395         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
29396         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
29397         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
29398
29399         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
29400         folded into ...
29401         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
29402         * sysdeps/unix/sysv/linux/s390/Versions
29403         (libpthread: GLIBC_2.19): New version set.
29404         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
29405         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
29406         (librt: GLIBC_2.3.3): New version set.
29407         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
29408         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
29409         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
29410         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
29411         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
29412         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
29413         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
29414         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
29415         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
29416         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
29417         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
29418         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
29419         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
29420         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
29421         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
29422         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
29423         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
29424         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29425         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
29426         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
29427         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
29428         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
29429         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
29430         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
29431         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
29432         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
29433         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
29434         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
29435         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
29436         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
29437         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
29438         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
29439         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
29440         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29441         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29442         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29443         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29444         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29445         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29446         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29447         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29448         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29449         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29450         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29451         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29452
29453         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29454         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29455         (__libc_vfork): Define the function under this name.
29456         [!NOT_IN_libc] (__vfork): Make this an alias.
29457         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29458         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29459         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29460         (__libc_vfork): Define the function under this name.
29461         [!NOT_IN_libc] (__vfork): Make this an alias.
29462         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29463         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29464         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29465         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29466         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29467         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29468
29469         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29470         code that was previously under [RESET_PID].
29471         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29472         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29473         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29474
29475         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29476         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29477         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29478         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29479         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29480         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29481         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29482         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29483         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29484         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29485         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29486         Moved ...
29487         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29488         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29489         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29490         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29491         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29492         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29493         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29494         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29495         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29496         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29497         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29498         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29499         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29500         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29501         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29502         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29503         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29504         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29505         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29506         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29507         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29508         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29509         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29510         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29511         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29512         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29513         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29514         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29515         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29516
29517 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29518
29519         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29520         that was previously under [RESET_PID].
29521         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29522
29523 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29524
29525         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29526         not undefine and redefine.
29527         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29528         [O_CLOEXEC]: Make code unconditional.
29529         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29530         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29531         <kernel-features.h>.
29532         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29533         conditional variable definition.
29534         (shm_open) [O_CLOEXEC]: Make code unconditional.
29535         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29536         code.
29537
29538         * configure.ac (USE_REGPARMS): Don't define here.
29539         * configure: Regenerated.
29540         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29541         * sysdeps/i386/configure: Regenerated.
29542
29543         * nptl/createthread.c: Don't include kernel-features.h.
29544         * nptl/pthread_cancel.c: Likewise.
29545         * nptl/pthread_condattr_setclock.c: Likewise.
29546         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29547         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29548         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29549         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29550         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29551         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29552         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29553         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29554         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29555         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29556         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29557         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29558         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29559         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29560         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29561         * nscd/gai.c: Likewise.
29562         * nss/nss_db/db-open.c: Likewise.
29563         * sysdeps/generic/ldsodefs.h: Likewise.
29564         * sysdeps/sh/nptl/tls.h: Likewise.
29565         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29566         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29567         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29568         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29569         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29570         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29571         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29572         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29573         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29574         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29575         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29576         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29577         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29578         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29579         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29580         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29581         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29582         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29583         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29584         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29585         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29586         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29587         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29588         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29589         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29590         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29591         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29592         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29593         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29594         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29595         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29596         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29597         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29598         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29599         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29600         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29601         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29602         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29603         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29604         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29605         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29606         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29607         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29608         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29609         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29610         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29611         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29612         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29613         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29614         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29615         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29616         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29617         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29618         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29619         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29620         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29621         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29622         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29645         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29646         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29647         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29648         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29649         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29650         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29651         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29652         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29653         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29654         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29655         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29656         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29657         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29658         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29659         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29660         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29661         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29662         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29663         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29664         * sysdeps/unix/sysv/linux/system.c: Likewise.
29665         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29666         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29667         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29668         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29669         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29670         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29671         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29672
29673         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29674         * configure: Regenerated.
29675         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29676
29677         * configure.ac (base_machine): Do not set specially for particular
29678         machines here.
29679         * configure: Regenerated.
29680         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29681         settings from configure.ac.
29682         * sysdeps/i386/preconfigure: New file.
29683         * sysdeps/s390/preconfigure: Likewise.
29684         * sysdeps/sh/preconfigure: Likewise.
29685         * sysdeps/sparc/preconfigure: Likewise.
29686
29687 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29688
29689         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29690         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29691         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29692         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29693         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29694         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29695         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29696         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29697         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29698         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29699         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29700         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29701         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29702         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29703         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29704         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29705         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29706         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29707         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29708
29709         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29710         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29711         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29712         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29713         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29714         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29715         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29716         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29717         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29718         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29719         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29720         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29721         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29722         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29723         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29724         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29725         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29726         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29727         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29728         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29729         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29730         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29731         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29732         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29733         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29734         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29735         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29736         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29737         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29738         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29739         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29740         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29741         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29742         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29743         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29744         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29745         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29746         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29747
29748         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29749         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29750         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29751         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29752         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29753         Moved ...
29754         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29755         ... here.
29756         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29757         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29758         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29759         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29760         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29761         Moved ...
29762         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29763         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29764         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29765         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29766         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29767         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29768         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29769         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29770         Moved ...
29771         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29772         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29773         Moved ...
29774         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29775         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29776         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29777         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29778         Moved ...
29779         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29780         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29781         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29782         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29783         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29784         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29785         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29786         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29787         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29788         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29789         Moved ...
29790         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29791         ... here.
29792         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29793         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29794         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29795         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29796         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29797         Moved ...
29798         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29799         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29800         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29801         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29802         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29803         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29804         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29805         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29806         Moved ...
29807         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29808         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29809         Moved ...
29810         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29811         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29812         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29813         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29814         Moved ...
29815         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29816         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29817         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29818         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29819         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29820
29821 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29822
29823         * timezone/checktab.awk: Update from tzcode 2014e.
29824         * timezone/private.h: Likewise.
29825         * timezone/tzfile.h: Likewise.
29826         * timezone/zdump.c: Likewise.
29827         * timezone/zic.c: Likewise.
29828
29829         * sysdeps/unix/sysv/linux/kernel-features.h
29830         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29831         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29832         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29833         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29834         Remove conditional code.
29835
29836 2014-06-25  Will Newton  <will.newton@linaro.org>
29837
29838         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29839         (_dl_arm_cap_flags): Add HWCAP2 values.
29840         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29841         (_DL_HWCAP_COUNT): Increase to 37.
29842         (_DL_HWCAP_LAST): New define.
29843         (_DL_HWCAP2_LAST): New define.
29844         (_dl_procinfo): Add support for printing
29845         AT_HWCAP2 entries.
29846         (_dl_string_hwcap): Use _dl_hwcap_string.
29847
29848 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29849
29850         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29851
29852 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29853
29854         * README: Do not mention ports directory.
29855
29856         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29857         Remove macro.
29858         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29859         <kernel-features.h>.
29860         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29861         conditional variable definition.
29862         (__futimes): Update comment.
29863         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29864         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29865
29866         [BZ #16560]
29867         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29868         arguments close to 0.
29869         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29870         Likewise.
29871         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29872         Likewise.
29873         * math/auto-libm-test-in: Add more tests of exp10.
29874         * math/auto-libm-test-out: Regenerated.
29875         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29876
29877         * sysdeps/unix/sysv/linux/kernel-features.h
29878         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29879         * sysdeps/unix/sysv/linux/readv.c: Do not include
29880         <kernel-features.h>.
29881         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29882         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29883         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29884         unconditional.
29885         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29886         conditional code.
29887         * sysdeps/unix/sysv/linux/writev.c: Do not include
29888         <kernel-features.h>.
29889         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29890         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29891         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29892         unconditional.
29893         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29894         conditional code.
29895
29896 2014-06-25  Will Newton  <will.newton@linaro.org>
29897
29898         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29899         comment changes throughout the file.  Remove checks
29900         for HAVE_*_H definitions that are not required.
29901         (__gen_tempname): Call abort if an unknown kind value is
29902         passed.
29903
29904 2014-06-25  Andreas Schwab  <schwab@suse.de>
29905
29906         [BZ #17086]
29907         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
29908         scalbln, scalblnf, scalblnl in libc.
29909
29910 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29911
29912         [BZ #17086]
29913         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
29914         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
29915         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
29916
29917 2014-06-24  Roland McGrath  <roland@hack.frob.com>
29918
29919         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
29920         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
29921         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
29922         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
29923         Update #include.
29924         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
29925         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
29926         Update #include.
29927         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
29928         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
29929         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
29930         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
29931         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
29932         * sysdeps/x86/bits/pthreadtypes.h: ... here.
29933         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
29934         * sysdeps/x86/bits/semaphore.h: ... here.
29935         * sysdeps/x86/nptl/elide.h: Moved ...
29936         * sysdeps/x86/elide.h: ... here.
29937         * sysdeps/x86_64/nptl/Implies: File removed.
29938         * sysdeps/i386/nptl/Implies: File removed.
29939
29940 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
29941
29942         [BZ #16539]
29943         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
29944         return the argument for normal arguments with exponent below -64.
29945         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29946         Likewise.
29947         * math/auto-libm-test-in: Add another test of expm1.
29948         * math/auto-libm-test-out: Regenerated.
29949
29950         [BZ #16287]
29951         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
29952         calling __erfcl for arguments at least 16.
29953         * math/auto-libm-test-in: Add more tests of erf.
29954         * math/auto-libm-test-out: Regenerated.
29955
29956         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
29957         individual architectures.
29958         * sysdeps/unix/sysv/linux/configure: Regenerated.
29959         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
29960         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
29961         * sysdeps/unix/sysv/linux/powerpc/configure.ac
29962         (ldd_rewrite_script): Define variable.
29963         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
29964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
29965         file.
29966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
29967         generated file.
29968         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
29969         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
29970         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
29971         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
29972         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
29973         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
29974         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
29975         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
29976
29977 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29978
29979         [BZ #17084]
29980         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
29981         Rename member __data.d to __data.__elision_data.
29982
29983 2014-06-24  Wilco  <wdijkstr@arm.com>
29984
29985         * NEWS: Add 16918 to fixed bug list.
29986
29987 2014-06-24  Wilco  <wdijkstr@arm.com>
29988
29989         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
29990
29991 2014-06-24  Wilco  <wdijkstr@arm.com>
29992
29993         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
29994         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
29995         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
29996         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
29997         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
29998         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
29999         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
30000         Use _FPU_MASK_RM.
30001
30002 2014-06-24  Wilco  <wdijkstr@arm.com>
30003
30004         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
30005
30006 2014-06-24  Wilco  <wdijkstr@arm.com>
30007
30008         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
30009         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
30010         * sysdeps/arm/fesetround.c (fesetround): Remove space.
30011         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
30012
30013 2014-06-24  Wilco  <wdijkstr@arm.com>
30014
30015         [BZ #16918]
30016         * sysdeps/arm/feupdateenv.c (feupdateenv):
30017         Rewrite to reduce FPSCR accesses and fix return value.
30018
30019 2014-06-24  Wilco  <wdijkstr@arm.com>
30020
30021         * sysdeps/arm/fclrexcpt.c (feclearexcept):
30022         Optimize to avoid unnecessary FPSCR writes.
30023         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
30024         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
30025         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
30026         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
30027
30028 2014-06-24  Wilco  <wdijkstr@arm.com>
30029
30030         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
30031         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
30032         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
30033         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
30034         Call libc_fetestexcept_vfp.
30035         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
30036         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
30037         __SOFTFP__ ifdef so that they can be built for softfp.
30038
30039 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30040
30041         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
30042         argument type signed char.
30043
30044         * Makerules (check-abi): Dump diff of symlist if the test
30045         fails.
30046
30047 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30048
30049         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
30050         using abort.
30051
30052         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
30053         Remove unused variable ST.
30054
30055 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30056
30057         [BZ #16354]
30058         [BZ #17061]
30059         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
30060         small arguments before calling __expm1.
30061         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
30062         small arguments before calling __expm1f.
30063         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
30064         small arguments before calling __expm1l.
30065         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
30066         Likewise.
30067         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
30068         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
30069         spurious underflow for some cosh tests.
30070         * math/auto-libm-test-out: Regenerated.
30071         * sysdeps/i386/fpu/libm-test-ulps: Update.
30072
30073         [BZ #17050]
30074         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
30075         (__ieee754_y1): Set errno if return value overflows.
30076         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
30077         (__ieee754_y1f): Set errno if return value overflows.
30078         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
30079         (__ieee754_y1l): Set errno if return value overflows.
30080         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
30081         (__ieee754_y1l): Set errno if return value overflows.
30082         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
30083         * math/auto-libm-test-out: Regenerated.
30084
30085         * math/gen-auto-libm-tests.c: Document use of
30086         ignore-zero-inf-sign.
30087         (input_flag_type): Add value flag_ignore_zero_inf_sign.
30088         (input_flags): Add ignore-zero-inf-sign.
30089         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
30090         * math/gen-libm-test.pl (generate_testfile): Handle
30091         ignore-zero-inf-sign.
30092         * math/auto-libm-test-in: Mark some cpow tests with
30093         ignore-zero-inf-sign and some with xfail-rounding.
30094         * math/auto-libm-test-out: Regenerated.
30095         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
30096         * sysdeps/i386/fpu/libm-test-ulps: Update.
30097         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30098
30099         [BZ #16315]
30100         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
30101         overflowing or underflowing operations take place with sign of
30102         result.
30103         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
30104         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
30105         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
30106         (__ieee754_pow): Recompute overflowing and underflowing results in
30107         original rounding mode.
30108         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
30109         (__powl_helper): Allow negative argument X and scale negated value
30110         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
30111         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
30112         overflowing or underflowing operations take place with sign of
30113         result.
30114         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
30115         Include <math.h>.
30116         * math/auto-libm-test-in: Add more tests of pow.
30117         * math/auto-libm-test-out: Regenerated.
30118         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
30119         (pow_tonearest_test_data): Remove.
30120         (pow_test_tonearest): Likewise.
30121         (pow_towardzero_test_data): Likewise.
30122         (pow_test_towardzero): Likewise.
30123         (pow_downward_test_data): Likewise.
30124         (pow_test_downward): Likewise.
30125         (pow_upward_test_data): Likewise.
30126         (pow_test_upward): Likewise.
30127         (main): Don't call removed functions.
30128         * sysdeps/i386/fpu/libm-test-ulps: Update.
30129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30130
30131 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30132
30133         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
30134         Moved ...
30135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
30136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30137         Moved ...
30138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
30139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
30140         Moved ...
30141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
30142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30143         Moved ...
30144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
30145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30146         File removed.
30147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
30148         File removed.
30149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
30150         File removed.
30151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
30152         File removed.
30153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
30154         File removed.
30155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
30156         File removed.
30157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
30158         File removed.
30159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
30160         File removed.
30161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
30162         File removed.
30163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
30164         File removed.
30165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
30166         File removed.
30167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
30168         File removed.
30169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
30170         Moved ...
30171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
30172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
30173         Moved ...
30174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
30175         ... here.
30176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
30177         Moved ...
30178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
30179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
30180         Moved ...
30181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
30182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
30183         Moved ...
30184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
30185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
30186         Moved ...
30187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
30188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
30189         Moved ...
30190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
30191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
30192         Moved ...
30193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
30194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
30195         Moved ...
30196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
30197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
30198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
30199         ... here.
30200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
30201         Moved ...
30202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
30203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
30204         Moved ...
30205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
30206         ... here.
30207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
30208         Moved ...
30209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30210         ... here.
30211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
30212         Moved ...
30213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
30214         ... here.
30215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30216         Moved ...
30217         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
30218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
30219         Moved ...
30220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
30221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
30222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
30223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
30224         Moved ...
30225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
30226         ... here.
30227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
30228         Moved ...
30229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
30230         ... here.
30231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
30232         Moved ...
30233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
30234         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
30235         Moved ...
30236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
30237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
30238         Moved ...
30239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
30240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30241         Moved ...
30242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
30243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
30244         Moved ...
30245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
30246         ... here.
30247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
30248         Moved ...
30249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
30250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
30251         Moved ...
30252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
30253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
30254         Moved ...
30255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
30256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
30257         Moved ...
30258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
30259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
30260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
30261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
30262         Moved ...
30263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
30264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
30265         Moved ...
30266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
30267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
30268         Moved ...
30269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
30270         ... here.
30271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
30272         Moved ...
30273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
30274         ... here.
30275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
30276         Moved ...
30277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
30278         ... here.
30279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
30280         Moved ...
30281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
30282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
30283         Moved ...
30284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
30285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
30286         Moved ...
30287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
30288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
30289         Moved ...
30290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
30291         ... here.
30292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
30293         Moved ...
30294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
30295         ... here.
30296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
30297         Moved ...
30298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
30299         ... here.
30300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
30301         Moved ...
30302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
30303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30304         Moved ...
30305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
30306
30307 2014-06-23  Will Newton  <will.newton@linaro.org>
30308             Wilco  <wdijkstr@arm.com>
30309
30310         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
30311         implementation.  Include get-rounding-mode.h.
30312         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
30313         [!libc_feholdsetround_noex_ctx]: Define
30314         libc_feholdsetround_noex_ctx.
30315         [!libc_feholdsetround_noexf_ctx]: Define
30316         libc_feholdsetround_noexf_ctx.
30317         [!libc_feholdsetround_noexl_ctx]: Define
30318         libc_feholdsetround_noexl_ctx.
30319         (libc_feholdsetround_ctx): New function.
30320         (libc_feresetround_ctx): New function.
30321         (libc_feholdsetround_noex_ctx): New function.
30322         (libc_feresetround_noex_ctx): New function.
30323
30324 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30325
30326         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
30327         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
30328         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
30329         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
30330         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
30331         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
30332
30333         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
30334         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
30335         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30336         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
30337         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
30338         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
30339         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
30340         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
30341         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
30342         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
30343         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
30344         Moved ...
30345         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
30346         ... here.
30347         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
30348         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
30349         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
30350         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
30351         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
30352         Moved ...
30353         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
30354         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
30355         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
30356         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
30357         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
30358         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
30359         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
30360         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
30361         Moved ...
30362         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
30363         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
30364         Moved ...
30365         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
30366         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
30367         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
30368         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
30369         Moved ...
30370         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
30371         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
30372         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
30373         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
30374         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
30375         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
30376         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
30377         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
30378         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
30379         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
30380         Moved ...
30381         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
30382         ... here.
30383         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
30384         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
30385         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
30386         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
30387         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
30388         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
30389         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
30390         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
30391         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
30392         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
30393         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
30394         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
30395         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
30396         Moved ...
30397         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
30398         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
30399         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
30400         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
30401         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
30402         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
30403         Moved ...
30404         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
30405         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
30406         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
30407         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
30408         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
30409
30410         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
30411         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
30412         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
30413         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
30414         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
30415         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
30416         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
30417         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
30418         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
30419         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
30420         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
30421         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
30422         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
30423         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
30424         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
30425         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
30426         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
30427         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
30428         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
30429         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
30430         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
30431         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
30432         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
30433         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
30434         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
30435         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
30436         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
30437         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
30438
30439 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30440
30441         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30442         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30443         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30444         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30445         (IPV6_PMTUDISC_INTERFACE): Likewise.
30446         (IPV6_PMTUDISC_OMIT): Likewise.
30447
30448 2014-06-23  Andreas Schwab  <schwab@suse.de>
30449
30450         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30451         Remove unused errout label.
30452
30453 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30454
30455         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30456         macro: hardware supports Vector Crypto instructions.
30457
30458 2014-06-23  Will Newton  <will.newton@linaro.org>
30459
30460         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30461         rather than __builtin_expect.
30462
30463         * elf/dl-lookup.c (undefined_msg): Remove variable.
30464         (_dl_lookup_symbol_x): Replace undefined_msg with string
30465         literal.
30466
30467         * elf/dl-lookup.c (do_lookup_unique): New function.
30468         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30469         to a separate function.
30470
30471 2014-06-23  Andreas Schwab  <schwab@suse.de>
30472
30473         [BZ #17079]
30474         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30475         before reading the next line.
30476
30477 2014-06-23  Will Newton  <will.newton@linaro.org>
30478
30479         * test-skeleton.c (signal_handler): Use printf and %m
30480         rather than perror.  Use printf rather than fprintf to
30481         stderr.  Use puts rather than fputs to stderr.
30482         (main): Likewise.
30483
30484 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30485
30486         * nscd/nscd.c (thread_info_t): Remove typedef.
30487         (thread_info): Remove variable.
30488
30489 2014-06-21  Allan McRae  <allan@archlinux.org>
30490
30491         * NEWS: Mention CVE-2014-4043.
30492
30493 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30494
30495         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30496         * nptl/smp.h: ... here.
30497
30498         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30499
30500         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30501         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30502         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30503         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30504
30505         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30506         * nptl/stack-aliasing.h: New file.
30507         * sysdeps/i386/i686/stack-aliasing.h: New file.
30508         * sysdeps/i386/i686/nptl/Makefile: File removed.
30509         * sysdeps/x86_64/stack-aliasing.h: New file.
30510         * sysdeps/x86_64/nptl/Makefile
30511         (CFLAGS-pthread_create.c): Variable removed.
30512
30513         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30514         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30515         old file.
30516         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30517         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30518         old file.
30519
30520 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30521
30522         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30523         (__ASSUME_SIGFRAME_V2): Remove macro.
30524         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30525         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30526         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30527         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30528         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30529         Declare as function.  Remove conditional macro definitions.
30530         (__default_rt_sa_restorer): Likewise.
30531         (__default_sa_restorer_v1): Remove declaration.
30532         (__default_sa_restorer_v2): Likewise.
30533         (__default_rt_sa_restorer_v1): Likewise.
30534         (__default_rt_sa_restorer_v2): Likewise.
30535         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30536         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30537         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30538
30539 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30540
30541         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30542         (libpthread-routines): Add sysdep.
30543         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30544         * sysdeps/unix/sysv/linux/sparc/Versions
30545         (libpthread: GLIBC_2.3.3): New version set.
30546         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30547         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30548         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30549         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30550         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30551         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30552         Moved ...
30553         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30554         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30555         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30556         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30557         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30558         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30559         * sysdeps/sparc/nptl/sem_init.c: ... here.
30560         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30561         * sysdeps/sparc/nptl/sem_post.c: ... here.
30562         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30563         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30564         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30565         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30566         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30567         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30568         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30569         (libpthread-routines): Add cpu_relax.
30570         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30571         File removed.
30572         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30573         (librt: GLIBC_2.3.3): New version set.
30574         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30575         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30576         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30577         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30578         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30579         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30580         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30581         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30582         Moved ...
30583         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30584         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30585         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30586         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30587         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30588         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30589         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30590         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30591         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30592         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30593         Moved ...
30594         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30595         Update #include.
30596         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30597         Moved ...
30598         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30599         Update #include.
30600         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30601         Moved ...
30602         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30603         Update #include.
30604         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30605         Moved ...
30606         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30607         Update #include.
30608         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30609         Moved ...
30610         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30611         Update #include.
30612         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30613         Moved ...
30614         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30615         Update #include.
30616         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30617         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30618         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30619         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30620         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30621         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30622         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30623         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30624         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30625         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30626         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30627         Moved ...
30628         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30629         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30630         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30631         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30632         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30633
30634 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30635
30636         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30637         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30638         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30639         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30640         * nscd/nscd.c: Likewise.
30641         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30642         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30643         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30644         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30645
30646         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30647         <kernel-features.h>.
30648         (init_mq_netlink): Remove conditional have_sock_cloexec
30649         definitions.  Remove code conditional on have_sock_cloexec < 0.
30650         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30651         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30652         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30653         <kernel-features.h>.
30654         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30655         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30656
30657 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30658
30659         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30660         Add tests for memset_chk and memset.
30661
30662         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30663         with AVX2_Usable.
30664
30665 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30666
30667         [BZ #16046]
30668         * elf/tst-dl-iter-static.c: New file.
30669         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30670
30671         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30672         error.
30673
30674 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30675
30676         * sysdeps/unix/sysv/linux/kernel-features.h
30677         (__ASSUME_F_GETOWN_EX): Remove macro.
30678         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30679         <kernel-features.h>.
30680         (miss_F_GETOWN_EX): Remove variable or macro.
30681         (do_fcntl): Do not check miss_F_GETOWN_EX.
30682         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30683
30684         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30685         Remove macro.
30686         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30687         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30688         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30689
30690         * sysdeps/unix/sysv/linux/kernel-features.h
30691         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30692         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30693         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30694         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30695
30696 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30697
30698         [BZ #17075]
30699         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30700         Fix calculation of the symbol's value.
30701         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30702         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30703         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30704         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30705         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30706         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30707         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30708         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30709         (modules-names): Add `tst-armtlsdescmod',
30710         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30711         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30712         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30713         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30714         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30715         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30716         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30717         ($(objpfx)tst-armtlsdescloc): New dependency.
30718         ($(objpfx)tst-armtlsdescextnow): Likewise.
30719         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30720         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30721         TLS scheme support.
30722         * sysdeps/arm/configure: Regenerate.
30723
30724 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30725
30726         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30727         (__atfct_seterrno_2): Likewise.
30728         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30729         <kernel-features.h>.
30730         (__ASSUME_ATFCTS): Do not undefine and redefine.
30731         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30732         (__have_atfcts): Remove conditional definition.
30733         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30734         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30735         unreachable if [__ASSUME_ATFCTS].
30736         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30737         not undefine and redefine.
30738         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30739         <kernel-features.h>.
30740         (faccessat) [__NR_faccessat]: Make code unconditional.
30741         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30742         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30743         <kernel-features.h>.
30744         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30745         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30746         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30747         <kernel-features.h>.
30748         (fchownat) [__NR_fchownat]: Make code unconditional.
30749         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30750         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30751         <kernel-features.h>.
30752         (futimesat) [__NR_futimesat]: Make code unconditional.
30753         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30754         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30755         <kernel-features.h>.
30756         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30757         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30758         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30759         <kernel-features.h>.
30760         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30761         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30762         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30763         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30764         <kernel-features.h>.
30765         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30766         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30767         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30768         <kernel-features.h>.
30769         (linkat) [__NR_linkat]: Make code unconditional.
30770         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30771         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30772         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30773         <kernel-features.h>.
30774         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30775         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30776         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30777         <kernel-features.h>.
30778         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30779         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30780         * sysdeps/unix/sysv/linux/openat.c: Do not include
30781         <kernel-features.h>.
30782         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30783         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30784         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30785         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30786         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30787         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30788         <kernel-features.h>.
30789         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30790         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30791         result of INLINE_SYSCALL directly, not via int variable.
30792         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30793         <kernel-features.h>.
30794         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30795         (renameat) [__NR_renameat]: Make code unconditional.
30796         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30797         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30798         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30799         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30800         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30801         (__ASSUME_ATFCTS): Do not undefine and redefine.
30802         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30803         <kernel-features.h>.
30804         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30805         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30806         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30807         <kernel-features.h>.
30808         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30809         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30810         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30811         (__ASSUME_ATFCTS): Do not undefine and redefine.
30812         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30813         <kernel-features.h>.
30814         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30815         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30816         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30817         <kernel-features.h>.
30818         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30819         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30820
30821 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30822
30823         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30824
30825 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30826
30827         [BZ #17069]
30828         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30829         constructed tree before returning error.
30830         * posix/bug-regexp36.c: Expand test case.
30831
30832 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30833
30834         [BZ #6803]
30835         * math/libm-test.inc (scalbln_test_date):
30836         Add errno expectations.
30837         * math/w_scalblnf.c: New File.
30838         Add wrapper which checks for setting errno to ERANGE.
30839         Add weak_alias for corresponding scalbln function.
30840         * math/w_scalbln.c: Likewise.
30841         * math/w_scalblnl.c: Likewise.
30842         * math/Makefile (libm-calls): Add w_scalbln.
30843         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30844         Remove weak_alias for corresponding scalbln function.
30845         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30846         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30847         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30848         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30849         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30850         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30851         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30852         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30853         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30854         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30855         Remove long_double_symbol for scalblnl function in libm, libc.
30856         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30857         Add wrapper which checks for setting errno to ERANGE.
30858         Add long_double_symbol for scalblnl function in libm, libc.
30859         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30860         Remove long_double_symbol for scalblnl in libm.
30861         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30862         Add wrapper which checks for setting errno to ERANGE.
30863         Add long_double_symbol for scalblnl function in libm.
30864         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30865         Do not use wrapper because of own implementation.
30866
30867 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30868
30869         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30870         3 bytes for __pad1 for x32.
30871         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30872
30873 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30874             H.J. Lu  <hongjiu.lu@intel.com>
30875
30876         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30877         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30878         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30879         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30880         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30881
30882 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30883
30884         [BZ #17069]
30885         * posix/regcomp.c (parse_expression): Deallocate partially
30886         constructed tree before returning error.
30887         * posix/Makefile.c (tests): Add bug-regex36.
30888         (generated): Add bug-regex36.mtrace.
30889         (tests-special): Add $(objpfx)bug-regex36-mem.out
30890         (bug-regex36-ENV): New variable.
30891         ($(objpfx)bug-regex36-mem.out): New rule.
30892         * posix/bug-regex36.c: New file.
30893
30894 2014-06-19  Will Newton  <will.newton@linaro.org>
30895
30896         * malloc/malloc.c (systrim): If extra is zero then return
30897         early.
30898
30899 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30900
30901         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30902
30903 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
30904
30905         * sysdeps/aarch64/strchr.S: New file.
30906
30907 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30908
30909         [BZ #17022]
30910         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
30911         from arguments -2 or below.
30912         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
30913         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
30914
30915 2014-06-18  Andreas Schwab  <schwab@suse.de>
30916
30917         [BZ #17062]
30918         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
30919         of a bracket expr not to run off the end of the string.
30920         * posix/Makefile (tests): Add tst-fnmatch3.
30921         * posix/tst-fnmatch3.c: New file.
30922
30923 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30924
30925         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
30926         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
30927         [$(cross-compiling) = no]: Likewise.
30928         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
30929         [$(cross-compiling) = no]: Likewise.
30930
30931 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30932
30933         [BZ #17031]
30934         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
30935         double, adjusted for any remainder from the high double.
30936         * math/libm-test.inc (nearbyint): Add tests.
30937         (rint): Likewise.
30938
30939 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30940
30941         * nptl/sysdeps/powerpc/Makefile: Moved ...
30942         * sysdeps/powerpc/nptl/Makefile: ... here.
30943         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
30944         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
30945         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
30946         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
30947         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
30948         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
30949         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
30950         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
30951         * nptl/sysdeps/powerpc/tls.h: Moved ...
30952         * sysdeps/powerpc/nptl/tls.h: ... here.
30953
30954 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
30955
30956         [BZ #16681]
30957         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
30958         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
30959         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
30960         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
30961         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
30962         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
30963         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
30964         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
30965         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
30966
30967 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
30968
30969         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
30970
30971 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
30972
30973         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
30974         defined operator.
30975
30976         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
30977         $TIMEOUTFACTOR.
30978
30979 2014-06-16  Florian Weimer  <fweimer@redhat.com>
30980
30981         [BZ #17058]
30982         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
30983         non-executed part of the test.
30984
30985 2014-06-16  Andreas Schwab  <schwab@suse.de>
30986
30987         * string/bits/string2.h (strdup, strndup): Update feature guard.
30988
30989 2014-06-14  David S. Miller  <davem@davemloft.net>
30990
30991         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30992
30993 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
30994
30995         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
30996         that was previously under [RESET_PID].
30997         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
30998
30999         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
31000         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
31001         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
31002         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31003         (__libc_vfork): New strong alias.
31004         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
31005
31006 2014-06-14 Andi Kleen  <ak@linux.intel.com>
31007
31008         * sysdeps/generic/elide.h: New file.
31009
31010 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31011
31012         * Makefile (installed-headers): Adjust path of pthread.h header.
31013
31014 2014-06-13  Roland McGrath  <roland@hack.frob.com>
31015
31016         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
31017         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
31018         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
31019         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
31020
31021         * nptl/sysdeps/s390/Makefile: Moved ...
31022         * sysdeps/s390/nptl/Makefile: ... here.
31023         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
31024         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
31025         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
31026         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
31027         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
31028         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
31029         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
31030         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
31031         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
31032         * sysdeps/s390/nptl/pthreaddef.h: ... here.
31033         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
31034         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
31035         * nptl/sysdeps/s390/tls.h: Moved ...
31036         * sysdeps/s390/nptl/tls.h: ... here.
31037
31038         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
31039         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
31040
31041 2014-06-13  David S. Miller  <davem@davemloft.net>
31042
31043         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
31044         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
31045         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
31046         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
31047         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
31048         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
31049         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
31050         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
31051         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
31052         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
31053         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
31054         Remove RESET_PID cpp guards.
31055         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
31056         Remove RESET_PID cpp guards.
31057         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
31058
31059 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
31060
31061         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
31062         __sp to uintptr_t.
31063
31064 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31065
31066         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
31067         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
31068         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
31069         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
31070         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
31071         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
31072         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
31073         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
31074         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
31075         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
31076         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
31077         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
31078         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
31079         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
31080         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
31081         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
31082         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
31083         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
31084         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
31085         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
31086
31087         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
31088         (pthread_rwlock_rdlock): Add elision.
31089         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
31090         (pthread_rwlock_wrlock): Add elision.
31091         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
31092         (pthread_rwlock_trywrlock): Add elision.
31093         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
31094         (pthread_rwlock_tryrdlock): Add elision.
31095         * nptl/pthread_rwlock_unlock.c: Include elide.h.
31096         (pthread_rwlock_tryrdlock): Add elision unlock.
31097         * nptl/sysdeps/pthread/pthread.h:
31098         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
31099         (PTHREAD_RWLOCK_INITIALIZER,
31100         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
31101         Handle new elision field.
31102         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
31103         * sysdeps/arm/nptl/bits/pthreadtypes.h
31104         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31105         * sysdeps/sh/nptl/bits/pthreadtypes.h
31106         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31107         * sysdeps/tile/nptl/bits/pthreadtypes.h
31108         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31109         * sysdeps/a/nptl/bits/pthreadtypes.h
31110         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31111         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
31112         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31113         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
31114         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31115         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
31116         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31117         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
31118         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31119         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
31120         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31121         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
31122         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31123         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
31124         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31125         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
31126         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31127         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
31128         (elision_init): Set try_xbegin to zero when no RTM.
31129         * sysdeps/x86/nptl/bits/pthreadtypes.h
31130         (pthread_rwlock_t): Change __pad1 to __rwelision.
31131         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31132
31133 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31134
31135         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
31136         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
31137         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
31138         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
31139
31140 2014-06-13  Meador Inge  <meadori@codesourcery.com>
31141
31142         [BZ #16996]
31143         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
31144         that the cached result has been set before returning it.
31145
31146 2014-06-12  Roland McGrath  <roland@hack.frob.com>
31147
31148         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
31149         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
31150         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
31151         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
31152         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
31153         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
31154
31155         * nptl/sysdeps/sparc/Makefile: Moved ...
31156         * sysdeps/sparc/nptl/Makefile: ... here.
31157         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
31158         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
31159         * nptl/sysdeps/sparc/tls.h: Moved ...
31160         * sysdeps/sparc/nptl/tls.h: ... here.
31161         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
31162         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
31163         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
31164         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
31165         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
31166         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
31167         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
31168         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
31169         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
31170         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
31171         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
31172         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
31173         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
31174         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
31175         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
31176         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
31177         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
31178         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
31179         Update #include.
31180         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
31181         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
31182         Update #include.
31183         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
31184         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
31185         Update #include.
31186         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
31187         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
31188         Update #include.
31189
31190         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31191
31192         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
31193         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
31194
31195         * sysdeps/pthread/posix-timer.h: Include <list.h>.
31196         (struct list_links): Type removed.
31197         (struct thread_node, struct timer_node): Replace struct list_links
31198         with struct list_head.
31199         (list_unlink_ip): Likewise.
31200         * sysdeps/pthread/timer_routines.c
31201         (timer_free_list, thread_free_list, thread_active_list): Likewise.
31202         (list_append, list_insbefore): Likewise.
31203         (list_init): Function removed.
31204         (thread_init, init_module): Use INIT_LIST_HEAD instead.
31205         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
31206         * sysdeps/pthread/Makefile: ... here, new file.
31207
31208         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
31209         * sysdeps/nptl/Implies: ... here.
31210         * sysdeps/unix/sysv/linux/Implies: Add nptl.
31211         * nptl/sysdeps/pthread/list.h: Moved ...
31212         * include/list.h: ... here.
31213         * nptl/sysdeps/pthread/createthread.c: Moved ...
31214         * nptl/createthread.c: ... here.
31215         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
31216         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
31217         * nptl/pt-longjmp.c: ... here.
31218         * nptl/sysdeps/pthread/Makefile: Moved ...
31219         * sysdeps/nptl/Makefile: ... here.
31220         * nptl/sysdeps/pthread/Subdirs: Moved ...
31221         * sysdeps/nptl/Subdirs: ... here.
31222         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
31223         * sysdeps/nptl/aio_misc.h: ... here.
31224         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
31225         * sysdeps/nptl/bits/libc-lock.h: ... here.
31226         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
31227         * sysdeps/nptl/bits/libc-lockP.h: ... here.
31228         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
31229         * sysdeps/nptl/bits/stdio-lock.h: ... here.
31230         * nptl/sysdeps/pthread/configure: Moved ...
31231         * sysdeps/nptl/configure: ... here.
31232         * nptl/sysdeps/pthread/configure.ac: Moved ...
31233         * sysdeps/nptl/configure.ac: ... here.
31234         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
31235         * sysdeps/nptl/gai_misc.h: ... here.
31236         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
31237         * sysdeps/nptl/librt-cancellation.c: ... here.
31238         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
31239         * sysdeps/nptl/malloc-machine.h: ... here.
31240         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
31241         * sysdeps/nptl/pthread-functions.h: ... here.
31242         * nptl/sysdeps/pthread/pthread.h: Moved ...
31243         * sysdeps/nptl/pthread.h: ... here.
31244         * nptl/sysdeps/pthread/setxid.h: Moved ...
31245         * sysdeps/nptl/setxid.h: ... here.
31246         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
31247         * sysdeps/nptl/sigfillset.c: ... here.
31248         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
31249         * sysdeps/nptl/tcb-offsets.h: ... here.
31250         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
31251         * sysdeps/nptl/tst-mqueue8x.c: ... here.
31252         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
31253         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
31254         * nptl/sysdeps/pthread/allocalim.h: Moved ...
31255         * sysdeps/pthread/allocalim.h: ... here.
31256         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
31257         * sysdeps/pthread/bits/sigthread.h: ... here.
31258         * nptl/sysdeps/pthread/flockfile.c: Moved ...
31259         * sysdeps/pthread/flockfile.c: ... here.
31260         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
31261         * sysdeps/pthread/ftrylockfile.c: ... here.
31262         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
31263         * sysdeps/pthread/funlockfile.c: ... here.
31264         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
31265         * sysdeps/pthread/posix-timer.h: ... here.
31266         * nptl/sysdeps/pthread/timer_create.c: Moved ...
31267         * sysdeps/pthread/timer_create.c: ... here.
31268         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
31269         * sysdeps/pthread/timer_delete.c: ... here.
31270         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
31271         * sysdeps/pthread/timer_getoverr.c: ... here.
31272         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
31273         * sysdeps/pthread/timer_gettime.c: ... here.
31274         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
31275         * sysdeps/pthread/timer_routines.c: ... here.
31276         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
31277         * sysdeps/pthread/timer_settime.c: ... here.
31278         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
31279         * sysdeps/pthread/tst-timer.c: ... here.
31280         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
31281         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
31282
31283         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
31284         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
31285
31286         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
31287         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
31288         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
31289         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
31290         Update #include target.
31291         * nptl/sysdeps/i386/i686/Makefile: Moved ...
31292         * sysdeps/i386/i686/nptl/Makefile: ... here.
31293         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
31294         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
31295         Update #include target.
31296         * nptl/sysdeps/i386/i686/tls.h: Moved ...
31297         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
31298         * nptl/sysdeps/i386/Makefile: Moved ...
31299         * sysdeps/i386/nptl/Makefile: ... here.
31300         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
31301         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
31302         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
31303         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
31304         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
31305         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
31306         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
31307         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
31308         * sysdeps/i386/nptl/pthreaddef.h: ... here.
31309         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
31310         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
31311         * nptl/sysdeps/i386/tls.h: Moved ...
31312         * sysdeps/i386/nptl/tls.h: ... here.
31313
31314         * sysdeps/sh/Makefile [$(subdir) = csu]
31315         (gen-as-const-headers): Add tcb-offsets.sym.
31316         * nptl/sysdeps/sh/Makefile: File removed.
31317         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
31318         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
31319         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
31320         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
31321         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
31322         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
31323         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
31324         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
31325         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
31326         * sysdeps/sh/nptl/pthreaddef.h: ... here.
31327         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
31328         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
31329         * nptl/sysdeps/sh/tls.h: Moved ...
31330         * sysdeps/sh/nptl/tls.h: ... here.
31331         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
31332         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
31333         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
31334         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
31335         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
31336         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
31337         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
31338         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
31339         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
31340         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
31341         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
31342         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
31343         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
31344         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
31345         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
31346         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
31347         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
31348         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
31349         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
31350         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
31351         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
31352         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
31353         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
31354         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
31355         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
31356         Moved ...
31357         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
31358         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
31359         Moved ...
31360         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
31361         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
31362         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
31363         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
31364         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
31365         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
31366         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
31367         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
31368         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
31369         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
31370         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
31371         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
31372         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
31373         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
31374         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
31375         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
31376         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
31377         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
31378         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
31379
31380 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
31381
31382         * posix/spawn_faction_addopen.c: Include string.h.
31383
31384 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31385
31386         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
31387         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
31388         * nptl/sysdeps/x86_64/Makefile: Moved ...
31389         * sysdeps/x86_64/nptl/Makefile: ... here.
31390         * nptl/sysdeps/x86_64/configure: Moved ...
31391         * sysdeps/x86_64/nptl/configure: ... here.
31392         * nptl/sysdeps/x86_64/configure.ac: Moved ...
31393         * sysdeps/x86_64/nptl/configure.ac: ... here.
31394         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
31395         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
31396         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
31397         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
31398         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
31399         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
31400         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
31401         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
31402         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
31403         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
31404         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
31405         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
31406         * nptl/sysdeps/x86_64/tls.h: Moved ...
31407         * sysdeps/x86_64/nptl/tls.h: ... here.
31408         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
31409         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
31410         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
31411         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
31412
31413         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
31414
31415 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31416
31417         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31418
31419 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
31420
31421         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
31422         type.
31423         [POSIX] (off_t): Likewise.
31424         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
31425         [POSIX] (S_ISBLK): Require macro.
31426         [POSIX] (S_ISCHR): Likewise.
31427         [POSIX] (S_ISDIR): Likewise.
31428         [POSIX] (S_ISFIFO): Likewise.
31429         [POSIX] (S_ISREG): Likewise.
31430         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
31431         optional-macro.
31432         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
31433         type.
31434         [POSIX] (time_t): Likewise.
31435         [POSIX] (timer_t): Likewise.
31436
31437 2014-06-11  Florian Weimer  <fweimer@redhat.com>
31438
31439         [BZ #17048]
31440         * posix/spawn_int.h (struct __spawn_action): Make the path string
31441         non-const to support deallocation.
31442         * posix/spawn_faction_addopen.c
31443         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31444         * posix/spawn_faction_destroy.c
31445         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31446         path in all spawn_do_open actions.
31447         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31448         posix_spawn_file_actions_addopen.
31449
31450 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31451
31452         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31453         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31454         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31455         conditional code always true.
31456         (__libc_vfork): New alias.
31457
31458 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31459
31460         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31461         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31462
31463         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31464
31465         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31466         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31467
31468         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31469         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31470
31471         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31472         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31473
31474 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31475
31476         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31477         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31478         multiarch strcmp for PPC64.
31479         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31480         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31481         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31482         multiarch optimizations.
31483         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31484         (__libc_ifunc_impl_list): Likewise.
31485
31486 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31487
31488         * benchtests/scripts/validate_benchout.py: New script.
31489         * benchtests/Makefile (bench-func): Call it.
31490         * benchtests/scripts/benchout.schema.json: New file.
31491
31492 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31493
31494         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31495         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31496         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31497         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31498         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31499         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31500         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31501         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31502         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31503         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31504         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31505         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31506         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31507         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31508         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31509         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31510         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31511         Moved ...
31512         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31513         ... here.
31514         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31515         Moved ...
31516         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31517         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31518         Moved ...
31519         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31520         ... here.
31521         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31522         Moved ...
31523         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31524         ... here.
31525         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31526         Moved ...
31527         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31528         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31529         Moved ...
31530         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31531         ... here.
31532         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31533         Moved ...
31534         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31535         ... here.
31536         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31537         Moved ...
31538         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31539         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31540         Moved ...
31541         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31542         ... here.
31543         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31544         Moved ...
31545         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31546         ... here.
31547         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31548         Moved ...
31549         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31550         ... here.
31551         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31552         Moved ...
31553         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31554         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31555         Moved ...
31556         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31557         ... here.
31558         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31559         Moved ...
31560         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31561         ... here.
31562         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31563         Moved ...
31564         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31565         ... here.
31566         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31567         Moved ...
31568         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31569         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31570         Moved ...
31571         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31572         ... here.
31573         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31574         Moved ...
31575         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31576         ... here.
31577         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31578         Moved ...
31579         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31580         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31581         Moved ...
31582         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31583         ... here.
31584         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31585         Moved ...
31586         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31587         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31588         Moved ...
31589         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31590         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31591         Moved ...
31592         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31593         ... here.
31594         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31595         Moved ...
31596         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31597         ... here.
31598         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31599         Moved ...
31600         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31601         ... here.
31602         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31603         Moved ...
31604         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31605         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31606         Moved ...
31607         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31608         ... here.
31609         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31610         Moved ...
31611         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31612         ... here.
31613         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31614         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31615         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31616         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31617         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31618         Moved ...
31619         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31620         ... here.
31621         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31622         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31623         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31624         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31625         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31626         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31627         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31628         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31629         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31630         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31631         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31632         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31633         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31634         Moved ...
31635         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31636         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31637         Moved ...
31638         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31639         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31640         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31641         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31642         Moved ...
31643         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31644         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31645         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31646         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31647         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31648         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31649         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31650
31651 2014-06-10  Wilco  <wdijkstr@arm.com>
31652
31653         * math/test-fenv-return.c: New file.
31654         * math/Makefile: Add new test test-fenv-return.
31655
31656 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31657
31658         [BZ #17042]
31659         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31660         when x - 1 is zero.
31661         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31662         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31663         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31664         0.0L for an argument of 1.0L.
31665         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31666         Likewise.
31667         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31668         value when x - 1 is zero.
31669         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31670         * sysdeps/i386/fpu/libm-test-ulps: Update.
31671         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31672
31673 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31674
31675         [BZ #15119]
31676         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31677
31678 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31679
31680         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31681         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31682
31683 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31684
31685         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31686         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31687
31688         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31689         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31690
31691         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31692         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31693
31694         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31695         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31696
31697         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31698         if not already defined.
31699         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31700         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31701         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31702         (TLS_INIT_TP): Use it.
31703         (TLS_DEFINE_INIT_TP): New macro.
31704         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31705
31706 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31707
31708         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31709         constant.
31710         [POSIX] (IXANY): Likewise.
31711         [POSIX] (OLCUC): Likewise.
31712         [POSIX || POSIX2008] (CBAUD): Do not allow.
31713         [POSIX || POSIX2008] (DEFECHO): Likewise.
31714         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31715         [POSIX || POSIX2008] (ECHOKE): Likewise.
31716         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31717         [POSIX || POSIX2008] (EXTA): Likewise.
31718         [POSIX || POSIX2008] (EXTB): Likewise.
31719         [POSIX || POSIX2008] (FLUSHO): Likewise.
31720         [POSIX || POSIX2008] (LOBLK): Likewise.
31721         [POSIX || POSIX2008] (PENDIN): Likewise.
31722         [POSIX || POSIX2008] (SWTCH): Likewise.
31723         [POSIX || POSIX2008] (VDISCARD): Likewise.
31724         [POSIX || POSIX2008] (VDSUSP): Likewise.
31725         [POSIX || POSIX2008] (VLNEXT): Likewise.
31726         [POSIX || POSIX2008] (VREPRINT): Likewise.
31727         [POSIX || POSIX2008] (VSTATUS): Likewise.
31728         [POSIX || POSIX2008] (VWERASE): Likewise.
31729         (B*): Change to B[0123456789]*.
31730         * conform/data/time.h-data [POSIX || UNIX98]
31731         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31732         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31733         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31734         [POSIX] (tm_*): Do not allow.
31735
31736 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31737
31738         * Makefile (install): Don't set LANGUAGE.
31739         * Makefile.in (install): Likewise.
31740         * assert/Makefile (test-assert-ENV): Remove variable.
31741         (test-assert-perr-ENV): Likewise.
31742         * elf/Makefile (neededtest4-ENV): Likewise.
31743         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31744         [$(cross-compiling) = no]: Don't set LANGUAGE.
31745         * io/ftwtest-sh (LANG): Remove variable.
31746         * libio/Makefile (tst-widetext-ENV): Likewise.
31747         * manual/install.texi (Running make install): Don't refer to
31748         environment settings for make install.
31749         * INSTALL: Regenerated.
31750         * nptl/tst-tls6.sh: Don't set LANG.
31751         * posix/globtest.sh (LANG): Remove variable.
31752         * string/Makefile (tester-ENV): Likewise.
31753         (inl-tester-ENV): Likewise.
31754         (noinl-tester-ENV): Likewise.
31755         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31756         [$(cross-compiling) = no]: Don't set LANGUAGE.
31757         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31758         without explicit environment settings.
31759
31760 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31761
31762         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31763         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31764         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31765         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31766
31767 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31768
31769         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31770         other files in the crypt directory.
31771         * crypt/crypt.c: Remove duplicate includes.
31772         * crypt/crypt-entry.c: Likewise.
31773         * crypt/crypt_util.c: Likewise.
31774
31775 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31776
31777         * Makeconfig (run-program-env): New variable.
31778         (run-program-prefix-before-env): Likewise.
31779         (run-program-prefix-after-env): Likewise.
31780         (run-program-prefix): Define in terms of new variables.
31781         (built-program-cmd-before-env): New variable.
31782         (built-program-cmd-after-env): Likewise.
31783         (built-program-cmd): Define in terms of new variables.
31784         (test-program-prefix-before-env): New variable.
31785         (test-program-prefix-after-env): Likewise.
31786         (test-program-prefix): Define in terms of new variables.
31787         (test-program-cmd-before-env): New variable.
31788         (test-program-cmd-after-env): Likewise.
31789         (test-program-cmd): Define in terms of new variables.
31790         * Rules (make-test-out): Use $(run-program-env).
31791         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31792         (help): Do not mention environment variables.  Mention
31793         --timeoutfactor option.
31794         (timeoutfactor): New variable.
31795         (blacklist_exports): Remove function.
31796         (exports): Remove variable.
31797         (command): Do not include ${exports}.
31798         * manual/install.texi (Configuring and compiling): Do not mention
31799         test wrappers preserving environment variables.  Mention that last
31800         assignment to a variable must take precedence.
31801         * INSTALL: Regenerated.
31802         * benchtests/Makefile (run-bench): Use $(run-program-env).
31803         * catgets/Makefile ($(objpfx)test1.cat): Use
31804         $(built-program-cmd-before-env), $(run-program-env) and
31805         $(built-program-cmd-after-env).
31806         ($(objpfx)test2.cat): Do not specify environment variables
31807         explicitly.
31808         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31809         $(run-program-env) and $(built-program-cmd-after-env).
31810         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31811         $(run-program-env) and $(test-program-cmd-after-env).
31812         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31813         explicitly.
31814         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31815         run_program_env and test_program_cmd_after_env arguments.
31816         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31817         * elf/tst-pathopt.sh: Use run_program_env argument.
31818         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31819         $(test-wrapper-env) and $(run-program-env).
31820         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31821         run_program_env arguments.
31822         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31823         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31824         $(test-program-prefix-before-env), $(run-program-env) and
31825         $(test-program-prefix-after-env).
31826         ($(objpfx)tst-gettext2.out): Likewise.
31827         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31828         run_program_env and test_program_prefix_after_env arguments.
31829         * intl/tst-gettext2.sh: Likewise.
31830         * intl/tst-gettext4.sh: Do not set environment variables
31831         explicitly.
31832         * intl/tst-gettext6.sh: Likewise.
31833         * intl/tst-translit.sh: Likewise.
31834         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31835         $(test-program-prefix-before-env), $(run-program-env) and
31836         $(test-program-prefix-after-env).
31837         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31838         run_program_env and test_program_prefix_after_env arguments.
31839         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31840         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31841         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31842         explicitly with each use of ${test_wrapper_env}.
31843         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31844         $(test-program-prefix-before-env), $(run-program-env) and
31845         $(test-program-prefix-after-env).
31846         * posix/tst-getconf.sh: Do not set environment variables
31847         explicitly.
31848         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31849         run_program_env and test_program_prefix_after_env arguments.
31850         * stdio-common/tst-printf.sh: Do not set environment variables
31851         explicitly.
31852         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31853         $(test-program-prefix-before-env), $(run-program-env) and
31854         $(test-program-prefix-after-env).
31855         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31856         run_program_env and test_program_prefix_after_env arguments.
31857         Split $test calls into $test_pre and $test.
31858         * timezone/Makefile (build-testdata): Use
31859         $(built-program-cmd-before-env), $(run-program-env) and
31860         $(built-program-cmd-after-env).
31861
31862 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31863
31864         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31865         strlen for non SHARED builds.
31866
31867 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31868
31869         * nptl/allocatestack.c (check_list): Inlined function...
31870         (__reclaim_stacks): ... here.
31871
31872 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31873
31874         [BZ #15698]
31875         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31876         memory overrun.
31877
31878 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31879
31880         * Rules (make-test-out): Include
31881         LOCPATH=$(common-objpfx)localedata in default environment.
31882         * debug/Makefile (tst-chk1-ENV): Remove variable.
31883         (tst-chk2-ENV): Likewise.
31884         (tst-chk3-ENV): Likewise.
31885         (tst-chk4-ENV): Likewise.
31886         (tst-chk5-ENV): Likewise.
31887         (tst-chk6-ENV): Likewise.
31888         (tst-lfschk1-ENV): Likewise.
31889         (tst-lfschk2-ENV): Likewise.
31890         (tst-lfschk3-ENV): Likewise.
31891         (tst-lfschk4-ENV): Likewise.
31892         (tst-lfschk5-ENV): Likewise.
31893         (tst-lfschk6-ENV): Likewise.
31894         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31895         (tst-iconv7-ENV): Likewise.
31896         * intl/Makefile (LOCPATH-ENV): Likewise.
31897         (tst-codeset-ENV): Likewise.
31898         (tst-gettext3-ENV): Likewise.
31899         (tst-gettext5-ENV): Likewise.
31900         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31901         (tst-fopenloc-ENV): Likewise.
31902         (tst-fgetws-ENV): Remove variable.
31903         (tst-ungetwc1-ENV): Likewise.
31904         (tst-ungetwc2-ENV): Likewise.
31905         (bug-ungetwc2-ENV): Likewise.
31906         (tst-swscanf-ENV): Likewise.
31907         (bug-ftell-ENV): Likewise.
31908         (tst-fgetwc-ENV): Likewise.
31909         (tst-fseek-ENV): Likewise.
31910         (tst-ftell-partial-wide-ENV): Likewise.
31911         (tst-ftell-active-handler-ENV): Likewise.
31912         (tst-ftell-append-ENV): Likewise.
31913         * posix/Makefile (tst-fnmatch-ENV): Likewise.
31914         (tst-regexloc-ENV): Likewise.
31915         (bug-regex1-ENV): Likewise.
31916         (tst-regex-ENV): Likewise.
31917         (tst-regex2-ENV): Likewise.
31918         (bug-regex5-ENV): Likewise.
31919         (bug-regex6-ENV): Likewise.
31920         (bug-regex17-ENV): Likewise.
31921         (bug-regex18-ENV): Likewise.
31922         (bug-regex19-ENV): Likewise.
31923         (bug-regex20-ENV): Likewise.
31924         (bug-regex22-ENV): Likewise.
31925         (bug-regex23-ENV): Likewise.
31926         (bug-regex25-ENV): Likewise.
31927         (bug-regex26-ENV): Likewise.
31928         (bug-regex30-ENV): Likewise.
31929         (bug-regex32-ENV): Likewise.
31930         (bug-regex33-ENV): Likewise.
31931         (bug-regex34-ENV): Likewise.
31932         (bug-regex35-ENV): Likewise.
31933         (tst-rxspencer-ENV): Likewise.
31934         (tst-rxspencer-no-utf8-ENV): Likewise.
31935         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
31936         (tst-sscanf-ENV): Likewise.
31937         (tst-swprintf-ENV): Likewise.
31938         (tst-swscanf-ENV): Likewise.
31939         (test-vfprintf-ENV): Likewise.
31940         (scanf13-ENV): Likewise.
31941         (bug14-ENV): Likewise.
31942         (tst-grouping-ENV): Likewise.
31943         * stdlib/Makefile (tst-strtod-ENV): Likewise.
31944         (tst-strtod3-ENV): Likewise.
31945         (tst-strtod4-ENV): Likewise.
31946         (tst-strtod5-ENV): Likewise.
31947         (testmb2-ENV): Likewise./
31948         * string/Makefile (tst-strxfrm-ENV): Likewise.
31949         (tst-strxfrm2-ENV): Likewise.
31950         (bug-strcoll1-ENV): Likewise.
31951         (test-strcasecmp-ENV): Likewise.
31952         (test-strncasecmp-ENV): Likewise.
31953         * time/Makefile (tst-strptime-ENV): Likewise.
31954         (tst-ftime_l-ENV): Likewise.
31955         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
31956         (tst-mbrtowc-ENV): Likewise.
31957         (tst-wcrtomb-ENV): Likewise.
31958         (tst-mbrtowc2-ENV): Likewise.
31959         (tst-c16c32-1-ENV): Likewise.
31960         (tst-mbsnrtowcs-ENV): Likewise.
31961
31962 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31963
31964         * manual/resource.texi (How to get information about the memory
31965         subsystem?): Fix typo.
31966         Reported by Peon de la Parra Ivan <peon@keba.com>
31967
31968 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
31969
31970         [BZ #16882]
31971         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
31972         (pthread_spin_lock): Branch out of spin loop to proper location.
31973         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
31974         (pthread_spin_lock): Likewise.
31975
31976         * nptl/tst-spin4.c: New test.
31977         * nptl/Makefile (tests): Add tst-spin4.
31978
31979 2014-06-03  Andreas Schwab  <schwab@suse.de>
31980
31981         [BZ #15946]
31982         * resolv/res_send.c (send_dg): Reload file descriptor after
31983         calling reopen.
31984
31985 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
31986
31987         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
31988
31989 2014-06-03  Richard Henderson  <rth@redhat.com>
31990
31991         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
31992         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
31993         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
31994         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
31995         in the SAVE_PID block.
31996         (__libc_vfork): New alias.
31997         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
31998
31999         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
32000         child in registers, not on the stack.  Remove RESET_PID conditionals.
32001         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
32002
32003 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32004
32005         * sysdeps/aarch64/libm-test-ulps: Regenerate.
32006
32007 2014-06-03  Wilco  <wdijkstr@arm.com>
32008
32009         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
32010         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
32011         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32012         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
32013         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
32014         Likewise.
32015
32016 2014-06-03  Wilco  <wdijkstr@arm.com>
32017
32018         * sysdeps/aarch64/fpu/math_private.h
32019         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
32020         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
32021         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
32022         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32023         Fix declarations.
32024
32025 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32026
32027         * crypt/crypt-private.h: Include ufc-crypt.h.
32028         (__b64_from_24bit): Declare extern.
32029         * crypt/crypt_util.c(__b64_from_24bit): New function.
32030         (b64t): New static const variable.
32031         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
32032         (b64t): Remove variable.
32033         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
32034         * crypt/sha256-crypt.c: Include crypt-private.h.
32035         (b64t): Remove variable.
32036         (__sha256_crypt_r): Remove b64_from_24bit and replace
32037         with __b64_from_24bit.
32038         * crypt/sha512-crypt.c: Likewise.
32039
32040 2014-06-02  Roland McGrath  <roland@hack.frob.com>
32041
32042         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
32043         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
32044         Label the code __libc_vfork rather than __vfork.
32045         [!NOT_IN_libc] (vfork): Define as weak alias.
32046         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
32047         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
32048         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
32049
32050 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
32051
32052         * malloc/malloc.c (malloc_info): Fix format specifier for
32053         n_mmaps.
32054
32055 2014-06-02  Wilco  <wdijkstr@arm.com>
32056
32057         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
32058         FPCR write.
32059
32060 2014-06-02  Wilco  <wdijkstr@arm.com>
32061
32062         [BZ #17009]
32063         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
32064         Rewrite to reduce FPCR/FPSR accesses.
32065
32066 2014-06-01  David S. Miller  <davem@davemloft.net>
32067
32068         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32069
32070 2014-05-31  David S. Miller  <davem@davemloft.net>
32071
32072         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
32073         to occur in round to nearest mode when |x| >= 2.0
32074
32075 2014-05-30  Richard Henderson  <rth@twiddle.net>
32076
32077         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
32078         (PSEUDO_RET_NOERRNO): Remove.
32079         (ret): Don't redefine.
32080         (ret_NOERRNO): Define in terms of ret.
32081         (ret_ERRVAL): Likewise.
32082
32083         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
32084         use of PSEUDO_RET; perform the error check directly.
32085
32086 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
32087
32088         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
32089         with __int128_t.
32090
32091 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32092
32093         * malloc/malloc (malloc_info): Fix formatting.
32094
32095 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32096             Roland McGrath  <roland@hack.frob.com>
32097
32098         * malloc/malloc (malloc_info): Also print mmapped statistics.
32099
32100 2014-05-30  Roland McGrath  <roland@hack.frob.com>
32101
32102         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
32103         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
32104
32105 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
32106
32107         * malloc/malloc.c (malloc_info): Inline mi_arena.
32108
32109 2014-05-29  Richard Henderson  <rth@twiddle.net>
32110
32111         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
32112         Remove comma before expanding ASM_ARGS_##nr.
32113         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
32114         Make _x0 a strict output; make _x8 a strict input; adjust expansion
32115         of ASM_ARGS_##nr.
32116         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
32117         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
32118         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
32119         (ASM_ARGS_1): Add leading comma.
32120
32121         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
32122         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
32123         to __errno_location.
32124         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
32125         Remove the expected plt for __errno_location.
32126
32127         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32128         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
32129         call to __read_tp.
32130
32131         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32132         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
32133         it and break it down.
32134         (DOCARGS_0, DOCARGS_1): Do nothing.
32135         (DOCARGS_2): Update to store into the new stack frame.
32136         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
32137         (UNDOCARGS_1): Update to restore from the new stack frame.
32138         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
32139         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
32140
32141         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32142         (SINGLE_THREAD_P): New parameter for result regno.
32143         (PSEUDO): Update to match; use cbz instead of beq.
32144
32145         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32146         Use ENTRY to define the _nocancel entry point.  Share the syscall
32147         and syscall error check paths with the cancel path.
32148         (PSEUDO_END): New.
32149
32150         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
32151         whitespace; tabs before and after asm mnemonics.
32152
32153 2014-05-29  Eric Wong  <normalperson@yhbt.net>
32154
32155         [BZ #15132]
32156         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32157         Call fstat64 or stat64 internally, depending on arguments passed.
32158         Replace stat buffer argument with file descriptor argument.
32159         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
32160         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
32161         Pass fd to __internal_statvfs instead of calling fstat64.
32162         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
32163         Pass fd to __internal_statvfs64 instead of calling fstat64.
32164         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
32165         Pass -1 to __internal_statvfs instead of calling stat64.
32166         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
32167         Pass -1 to __internal_statvfs64 instead of calling stat64.
32168
32169 2014-05-28  Roland McGrath  <roland@hack.frob.com>
32170
32171         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
32172         that was previously under [RESET_PID].
32173         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
32174
32175         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
32176         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
32177
32178 2014-05-27  Roland McGrath  <roland@hack.frob.com>
32179
32180         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
32181
32182         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
32183         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
32184
32185 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
32186
32187         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
32188
32189 2014-05-27  Andreas Schwab  <schwab@suse.de>
32190
32191         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
32192         TLS_INIT_TP macro.
32193         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
32194         * elf/rtld.c (init_tls, dl_main): Likewise.
32195         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
32196         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
32197         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
32198         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
32199         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
32200         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
32201         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
32202         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
32203         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
32204         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
32205         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
32206         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
32207         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
32208         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
32209         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
32210         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
32211         * sysdeps/generic/tls.h: Update description.
32212
32213 2014-05-27  Will Newton  <will.newton@linaro.org>
32214
32215         [BZ #16990]
32216         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
32217         and restore r2 rather than just restoring.
32218
32219 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
32220
32221         [BZ #16724]
32222         * libio/tst-ftell-append.c: New test case.
32223         * libio/Makefile (tests): Add test case.
32224         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
32225         append mode.
32226         * libio/wfileops.c (do_ftell_wide): Likewise.
32227
32228 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32229
32230         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32231
32232         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
32233         ...
32234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
32235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
32236         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
32237         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
32238         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
32239         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
32240         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
32241         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
32242         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
32243         Moved ...
32244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
32245         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
32246         Moved ...
32247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
32248         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
32249         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
32250         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
32251         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
32252         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
32253         ...
32254         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
32255         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
32256         Moved ...
32257         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
32258         here.
32259         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
32260         ...
32261         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
32262         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
32263         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
32264
32265         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
32266         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
32267         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
32268         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
32269
32270         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
32271         merge into ...
32272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
32273         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
32274         ...
32275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
32276         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
32277         ...
32278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
32279         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32280         Moved ...
32281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
32282         here.
32283         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32284         Moved ...
32285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
32286         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32287         Moved ...
32288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
32289
32290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
32291         conditional [RESET_PID].
32292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
32293         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
32294         removed.
32295         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
32296         removed.
32297
32298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
32299         <tcb-offsets.h>.
32300         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32301         (__libc_vfork): New strong alias.
32302         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
32303         removed.
32304         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
32305         Removed.
32306
32307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
32308         <tcb-offsets.h>.
32309         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
32310         (__libc_vfork): New strong alias.
32311         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
32312         removed.
32313         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
32314         removed.
32315
32316 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
32317
32318         * malloc/malloc.c (mi_arena): New function.
32319         (malloc_info): Remove nested function mi_arena. Call non-nosted
32320         function mi_arena.
32321
32322 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32323
32324         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
32325         by insrwi.
32326         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32327         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32328         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
32329         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
32330         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
32331         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
32332         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
32333
32334 2014-05-26  Andreas Schwab  <schwab@suse.de>
32335
32336         [BZ #16984]
32337         * locale/programs/repertoire.c (repertoire_read): Add slash
32338         between I18NPATH element and file name.
32339         * locale/programs/locfile.c (locfile_read): Likewise.
32340
32341 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32342
32343         * nptl/pthread_mutexattr_settype.c
32344         (__pthread_mutexattr_settype):
32345         Disable lock elision for PTHREAD_MUTEX_NORMAL.
32346
32347 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32348
32349         * nptl/tst-mutex5 (do_test):
32350         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
32351
32352 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32353
32354         * benchtests/README: Document 'init' directive.
32355         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
32356         BENCH_INIT.
32357         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
32358         (parse_file): Recognize 'init' directive.
32359
32360 2014-05-26  Kyle McMartin  <kyle@redhat.com>
32361
32362         [BZ #16796]
32363         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
32364         alignment of struct pthread.
32365
32366 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32367
32368         [BZ #16878]
32369         * nscd/netgroupcache.c (addgetnetgrentX): Look for
32370         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32371         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
32372         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32373
32374 2014-05-25  Richard Henderson  <rth@twiddle.net>
32375
32376         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32377         (SINGLE_THREAD_P_PIC): Remove.
32378         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
32379         (SINGLE_THREAD_P_PIC): Remove.
32380
32381         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
32382         branch to syscall error ...
32383         (PSEUDO): ... here.
32384         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
32385         from __local_syscall_error to .Lsyscall_error.
32386         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
32387         (SYSCALL_ERROR): Update label name.
32388
32389         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32390         Do not use DOARGS/UNDOARGS.
32391         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
32392         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
32393         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
32394         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
32395         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
32396
32397         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
32398         block comment.
32399
32400         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
32401         define if !NOT_IN_libc.
32402         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
32403         define with non-default symbol versions.
32404
32405 2014-05-23  Richard Henderson  <rth@twiddle.net>
32406
32407         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
32408         (vfork, __vfork): Define via compat_symbol.
32409
32410         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
32411         [!HAVE_IFUNC] (vfork_compat): Remove.
32412         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
32413
32414 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32415
32416         [BZ #16978]
32417         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
32418         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
32419         variable.
32420
32421 2014-05-23  Richard Henderson  <rth@twiddle.net>
32422
32423         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
32424         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
32425         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
32426         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
32427
32428         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
32429         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
32430         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
32431         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
32432         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
32433         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
32434         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
32435         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
32436         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
32437         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
32438         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
32439         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
32440         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32441         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32442         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32443         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32444         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32445         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32446         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32447         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32448         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32449         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32450         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32451         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32452         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32453         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32454         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32455         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32456         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32457         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32458         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32459         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32460         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32461         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32462         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32463         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32464         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32465         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32466         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32467         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32468         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32469         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32470         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32471         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32472         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32473         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32474         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32475         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32476         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32477         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32478         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32479         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32480         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32481         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32482         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32483         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32484
32485         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32486         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32487         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32488         before exiting on error.
32489         (__libc_vfork): New strong alias.
32490         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32491         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32492
32493         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32494         that was previously under [RESET_PID].
32495         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32496
32497         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32498
32499 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32500
32501         [BZ #16977]
32502         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32503         value when x - 1 is zero.
32504         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32505         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32506         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32507         0.0L for an argument of 1.0L.
32508         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32509         Likewise.
32510         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32511         value when x - 1 is zero.
32512         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32513         * sysdeps/i386/fpu/libm-test-ulps: Update.
32514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32515
32516 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32517
32518         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32519         alphasort and versionsort.
32520
32521 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32522
32523         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32524         macro.
32525         [copysignf]: Likewise.
32526
32527 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32528
32529         * crypt/md5-crypt.c: Fix formatting.
32530
32531 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32532
32533         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32534         (b64_from_24bit): New function.
32535
32536 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32537
32538         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32539         libc_hidden_builtin_def to ifunc.
32540         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32541         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32542
32543 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32544
32545         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32546         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32547
32548 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32549
32550         * nscd/Depend (linuxthreads): Remove.
32551         (nptl): Add.
32552         * resolv/Depend (linuxthreads): Remove.
32553         * rt/Depend (linuxthreads): Remove.
32554
32555         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32556         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32557         $(common-objpfx)elf/.
32558         (link-libc-before-gnulib): Likewise.
32559         (elfobjdir): Remove variable.
32560         * Makefile (install): Use $(elf-objpfx) instead of
32561         $(common-objpfx)elf/.
32562         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32563         $(elfobjdir)/.
32564         (link-libc-deps): Likewise.
32565         ($(common-objpfx)libc.so): Likewise.
32566         ($(common-objpfx)linkobj/libc.so): Likewise.
32567         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32568         instead of $(common-objpfx)elf/.
32569         (symbolic-link-list): Likewise.
32570         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32571         [$(cross-compiling) = no]: Likewise.
32572         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32573         $(elfobjdir)/.
32574         (static-gnulib-arch): Likewise.
32575         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32576         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32577         $(common-objpfx)elf/.
32578
32579 2014-05-21  Richard Henderson  <rth@redhat.com>
32580
32581         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32582         (SINGLE_THREAD_P): Use the correct width load.  Fold
32583         into the ldr offset.
32584
32585         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32586         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32587
32588 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32589
32590         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32591         (libgcc_s_resume): Use __attribute_used__.
32592         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32593         Likewise.
32594
32595 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32596
32597         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32598         optimization when used with float constants.
32599
32600         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32601
32602 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32603
32604         [BZ #16915]
32605         * locale/nl_langinfo_l.c: Make direct reference to every
32606         _nl_current_CATEGORY symbol.
32607         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32608         (tests-static): Add tst-langinfo-static.
32609         (tests-special): Add tst-langinfo-static.out.
32610         ($(objpfx)tst-langinfo.out): Redirect output.
32611         ($(objpfx)tst-langinfo-static.out): New.
32612         * localedata/tst-langinfo.sh: Send output to stdout.
32613         * localedata/tst-langinfo-static.c: New file.
32614
32615         [BZ #16965]
32616         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32617         when the shift amount is modulo the limb size.
32618
32619 2014-05-20  Richard Henderson  <rth@redhat.com>
32620
32621         [BZ #16967]
32622         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32623         Change type of sa_flags from unsigned int to int.
32624
32625         [BZ #16966]
32626         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32627
32628         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32629
32630 2014-05-20  Will Newton  <will.newton@linaro.org>
32631
32632         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32633         Test the return value of the system call in the nocancel case.
32634
32635 2014-05-20  Will Newton  <will.newton@linaro.org>
32636             Yvan Roux  <yvan.roux@linaro.org>
32637
32638         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32639         #include of asm/ptrace.h.
32640         (PTRACE_GET_THREAD_AREA): Remove #undef.
32641         (PTRACE_GETHBPREGS): Likewise.
32642         (PTRACE_SETHBPREGS): Likewise.
32643         (struct user_regs_struct): New structure.
32644         (struct user_fpsimd_struct): New structure.
32645         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32646         #include of asm/ptrace.h and second #include of sys/user.h.
32647         (PTRACE_GET_THREAD_AREA): Remove #undef.
32648         (PTRACE_GETHBPREGS): Likewise.
32649         (PTRACE_SETHBPREGS): Likewise.
32650         (ELF_NGREG): Use new struct user_regs_struct.
32651         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32652
32653 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32654
32655         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32656         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32657
32658 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32659
32660         [BZ #16958]
32661         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32662         membar to avoid block loads/stores to overlap previous stores.
32663
32664 2014-05-17  Richard Henderson  <rth@redhat.com>
32665
32666         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32667         Create the __##syscall_name##_nocancel entry point.
32668         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32669         Remove; let the sysdep-cancel.h code create it.
32670
32671 2014-05-17  David S. Miller  <davem@davemloft.net>
32672
32673         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32674         Protect with __USE_GNU.
32675         (TIOCSET_TEMPT): Likewise.
32676         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32677         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32678         these are already provided in bits/ioctl-types.h
32679
32680 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32681
32682         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32683         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32684
32685         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32686         Use wait4 regardless of [__NR_waitpid].
32687
32688 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32689
32690         PR libgcc/60166
32691         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32692         (_FP_NANSIGN_Q): Set the quiet bit.
32693
32694 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32695
32696         * benchtests/Makefile
32697         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32698         not $(common-objpfx)math/libm.so.
32699         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32700         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32701         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32702         $(common-objpfx)dlfcn/libdl.so.
32703         ($(objpfx)tst-audit8): Depend on $(libm), not
32704         $(common-objpfx)math/libm.so.
32705         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32706         not $(common-objpfx)dlfcn/libdl.so.
32707         * math/Makefile
32708         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32709         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32710         [$(build-shared) = yes].
32711         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32712         $(common-objpfx)nptl/libpthread.so.
32713         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32714         $(common-objpfx)math/libm.so$(libm.so-version) or
32715         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32716         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32717         $(common-objpfx)dlfcn/libdl.so.
32718         * setjmp/Makefile (link-libm): Remove variable.
32719         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32720         * stdio-common/Makefile (link-libm): Remove variable.
32721         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32722         * stdlib/Makefile (link-libm): Remove variable.
32723         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32724         ($(objpfx)tst-strtod-round): Likewise.
32725         ($(objpfx)tst-tininess): Likewise.
32726         ($(objpfx)tst-strtod-underflow): Likewise.
32727         ($(objpfx)tst-strtod6): Likewise.
32728         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32729         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32730         $(common-objpfx)dlfcn/libdl.so.
32731
32732 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32733
32734         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32735         BSD terminal modes definitions.
32736
32737 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32738
32739         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32740         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32741
32742         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32743         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32744         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32745         Don't do #include_next.
32746         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32747         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32748         Don't do #include_next.
32749         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32750         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32751         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32752         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32753
32754 2014-05-16  Allan McRae  <allan@archlinux.org>
32755
32756         * po/sv.po: Update Swedish translation from translation project.
32757
32758         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32759         in sed expression.
32760
32761 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32762
32763         [BZ #16917]
32764         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32765         errno if the TIOCGPTN ioctl fails with an error different than
32766         EINVAL.
32767         * login/tst-ptsname.c: New file.
32768         * login/Makefile (tests): Add tst-ptsname.
32769
32770         [BZ #16943]
32771         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32772         and prlimit64.
32773
32774 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32775
32776         [BZ #16849]
32777         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32778         herrno to return EAI_AGAIN.
32779
32780 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32781
32782         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32783         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32784         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32785         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32786         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32787         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32788         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32789         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32790         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32791         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32792         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32793         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32794         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32795         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32796         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32797         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32798         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32799         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32800         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32801         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32802         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32803         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32804         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32805         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32806         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32807         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32808         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32809         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32810         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32811         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32812         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32813         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32814         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32815         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32816         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32817         Moved ...
32818         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32819         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32820         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32821         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32822         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32823         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32824         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32825         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32826         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32827         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32828         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32829         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32830         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32831         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32832         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32833         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32834         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32835         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32836         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32837         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32838         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32839         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32840         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32841         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32842         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32843         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32844         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32845         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32846         Moved ...
32847         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32848         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32849         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32850         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32851         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32852         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32853         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32854         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32855         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32856         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32857         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32858         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32859         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32860         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32861         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32862         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32863         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32864         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32865         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32866         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32867         Moved ...
32868         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32869         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32870         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32871
32872         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32873         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32874         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32875         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32876         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32877         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32878         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32879         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32880         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32881         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32882         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32883         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32884         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32885         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32886         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32887         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32888         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32889         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32890         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32891         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32892         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32893         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32894         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32895         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32896         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32897         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32898         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32899         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32900         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32901         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32902         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32903
32904         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
32905         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
32906
32907         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
32908         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
32909         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
32910         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
32911         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
32912         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
32913         Moved ...
32914         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
32915         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
32916         Moved ...
32917         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
32918         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
32919         Moved ...
32920         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
32921         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
32922         Moved ...
32923         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
32924         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
32925         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
32926         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
32927         Moved ...
32928         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
32929         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
32930         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
32931         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
32932         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
32933         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
32934         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
32935         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
32936         Moved ...
32937         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
32938         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32939         Moved ...
32940         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32941         ... here.
32942         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
32943         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
32944         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
32945         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
32946         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32947         Moved ...
32948         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32949         ... here.
32950         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
32951         Moved ...
32952         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
32953         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
32954         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
32955         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
32956         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
32957         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
32958         Moved ...
32959         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
32960         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
32961         Moved ...
32962         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
32963         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
32964         Moved ...
32965         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
32966         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
32967         Moved ...
32968         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
32969         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
32970         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
32971         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
32972         Moved ...
32973         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
32974         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
32975         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
32976         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
32977         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
32978         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
32979         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
32980         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
32981         Moved ...
32982         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
32983         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32984         Moved ...
32985         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
32986         ... here.
32987         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
32988         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
32989         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
32990         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
32991         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32992         Moved ...
32993         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
32994         ... here.
32995         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
32996         Moved ...
32997         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
32998         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
32999         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
33000         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
33001         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
33002         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
33003         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
33004         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
33005         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
33006         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
33007         Moved ...
33008         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
33009         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
33010         Moved ...
33011         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
33012         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
33013         Moved ...
33014         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
33015         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
33016         Moved ...
33017         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
33018         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
33019         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
33020         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
33021         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
33022         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
33023         Moved ...
33024         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
33025         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
33026         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
33027         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
33028         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
33029         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
33030         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
33031         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
33032         Moved ...
33033         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
33034         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33035         Moved ...
33036         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33037         ... here.
33038         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
33039         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
33040         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
33041         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
33042         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33043         Moved ...
33044         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33045         ... here.
33046         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
33047         Moved ...
33048         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
33049         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
33050         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
33051         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
33052         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
33053         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
33054         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
33055         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
33056         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
33057         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
33058         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
33059
33060         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
33061         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
33062
33063         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
33064         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
33065
33066         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
33067         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
33068         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
33069         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
33070         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
33071         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
33072         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
33073         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
33074         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
33075         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
33076         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
33077         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
33078         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
33079         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
33080         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
33081         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
33082         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
33083         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
33084         Moved ...
33085         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
33086         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
33087         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
33088         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
33089         Moved ...
33090         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
33091         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
33092         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
33093         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
33094         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
33095         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
33096         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
33097         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
33098         Moved ...
33099         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
33100         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
33101         Moved ...
33102         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
33103         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
33104         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
33105         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
33106         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
33107         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
33108         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
33109         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
33110         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
33111         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
33112         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
33113         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
33114         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
33115         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
33116         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
33117         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
33118         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
33119
33120         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
33121         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
33122         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
33123         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
33124         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
33125
33126         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
33127         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
33128         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
33129         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
33130         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
33131         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
33132         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
33133         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
33134         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
33135         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
33136
33137         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
33138         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
33139
33140         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
33141         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
33142         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
33143         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
33144         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
33145         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
33146         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
33147         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
33148         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
33149         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
33150         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
33151         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
33152         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
33153         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
33154         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
33155         Update #include.
33156         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
33157         Likewise.
33158         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
33159         Likewise.
33160         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
33161         Likewise.
33162         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
33163         Likewise.
33164         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
33165         Likewise.
33166         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
33167         Likewise.
33168         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
33169         Likewise.
33170         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
33171         Likewise.
33172         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
33173         Likewise.
33174         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
33175         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
33176         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
33177         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
33178         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
33179         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
33180         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
33181         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
33182         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
33183         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
33184         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
33185         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
33186         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
33187         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
33188         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
33189
33190         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
33191         that was previously under [RESET_PID].
33192         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
33193         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
33194         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
33195
33196         * sysdeps/i386/nptl/Implies: New file.
33197         * sysdeps/x86_64/nptl/Implies: New file.
33198         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
33199         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
33200         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
33201         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
33202
33203         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
33204         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33205         (__libc_vfork): New strong alias.
33206         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
33207         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
33208
33209         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
33210         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33211         (__libc_vfork): New strong alias.
33212         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
33213         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
33214
33215         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
33216         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33217         (__libc_vfork): New strong alias.
33218         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
33219         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
33220         * nptl/pt-vfork.c: New file.
33221         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
33222         (libpthread: GLIBC_2.20): New version set (empty).
33223
33224 2014-05-14  Will Newton  <will.newton@linaro.org>
33225
33226         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
33227         rather than #if.
33228
33229 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33230
33231         [BZ #16564]
33232         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
33233         arguments with exponent 65 or above.
33234         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
33235         arguments 0x1p113L or above.
33236         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
33237         to arguments 0x1p107L or above.
33238         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
33239         positive arguments with exponent 65 or above.
33240         * math/auto-libm-test-in: Add more tests of log1p.
33241         * math/auto-libm-test-out: Regenerated.
33242
33243         [BZ #16928]
33244         * math/s_cacos.c (__cacos): Ensure zero real part of result from
33245         non-finite arguments is +0.
33246         * math/s_cacosf.c (__cacosf): Likewise.
33247         * math/s_cacosl.c (__cacosl): Likewise.
33248         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
33249         * sysdeps/i386/fpu/libm-test-ulps: Update.
33250         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33251
33252         [BZ #16927]
33253         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
33254         value.
33255         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
33256         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
33257         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
33258         for explicit high bit of mantissa when testing for argument equal
33259         to 1.
33260         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
33261         * sysdeps/i386/fpu/libm-test-ulps: Update.
33262         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33263
33264         [BZ #16516]
33265         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
33266         (__erf): Scale by 16 instead of 8 in potentially underflowing
33267         case.  Ensure exception if result actually underflows.
33268         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
33269         (__erff): Scale by 16 instead of 8 in potentially underflowing
33270         case.  Ensure exception if result actually underflows.
33271         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
33272         (efx8): Remove variable.
33273         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33274         case.  Ensure exception if result actually underflows.
33275         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
33276         (efx8): Remove variable.
33277         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33278         case.  Ensure exception if result actually underflows.
33279         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
33280         (efx8): Remove variable.
33281         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33282         case.  Ensure exception if result actually underflows.
33283         * math/auto-libm-test-in: Add more tests of erf.
33284         * math/auto-libm-test-out: Regenerated.
33285
33286 2014-05-14  Andreas Schwab  <schwab@suse.de>
33287
33288         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
33289         Remove code conditionalized on USE___THREAD.
33290
33291         * config.h.in (HAVE_PT_CHOWN): Define as 0.
33292         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
33293         not definedness.
33294
33295 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33296
33297         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
33298         Define unconditionally.
33299         (__ASSUME_O_CLOEXEC): Likewise.
33300         (__ASSUME_SOCK_CLOEXEC): Likewise.
33301         (__ASSUME_IN_NONBLOCK): Likewise.
33302         (__ASSUME_PIPE2): Likewise.
33303         (__ASSUME_EVENTFD2): Likewise.
33304         (__ASSUME_SIGNALFD4): Likewise.
33305         (__ASSUME_DUP3): Likewise.
33306         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
33307         (__ASSUME_DUP3): Do not define.
33308         (__ASSUME_EVENTFD2): Likewise.
33309         (__ASSUME_IN_NONBLOCK): Likewise.
33310         (__ASSUME_O_CLOEXEC): Likewise.
33311         (__ASSUME_PIPE2): Likewise.
33312         (__ASSUME_SIGNALFD4): Likewise.
33313         (__ASSUME_SOCK_CLOEXEC): Likewise.
33314         (__ASSUME_UTIMES): Undefine.
33315         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33316         (__ASSUME_UTIMES): Do not define.
33317         (__ASSUME_O_CLOEXEC): Likewise.
33318         (__ASSUME_SOCK_CLOEXEC): Likewise.
33319         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
33320         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
33321         0x020621].
33322         (__ASSUME_PIPE2): Likewise.
33323         (__ASSUME_EVENTFD2): Likewise.
33324         (__ASSUME_SIGNALFD4): Likewise.
33325         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
33326         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
33327         Do not define.
33328         (__ASSUME_EVENTFD2): Likewise.
33329         (__ASSUME_SIGNALFD4): Likewise.
33330         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33331         (__ASSUME_32BITUIDS): Likewise.
33332         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33333         (__ASSUME_IPC64): Likewise.
33334         (__ASSUME_ST_INO_64_BIT): Likewise.
33335         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
33336         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
33337         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33338         (__ASSUME_UTIMES): Do not define.
33339         (__ASSUME_PSELECT): Likewise.
33340         (__ASSUME_PPOLL): Likewise.
33341         (__ASSUME_O_CLOEXEC): Likewise.
33342         (__ASSUME_SOCK_CLOEXEC): Likewise.
33343         (__ASSUME_IN_NONBLOCK): Likewise.
33344         (__ASSUME_PIPE2): Likewise.
33345         (__ASSUME_EVENTFD2): Likewise.
33346         (__ASSUME_SIGNALFD4): Likewise.
33347         (__ASSUME_DUP3): Likewise.
33348         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33349         (__ASSUME_UTIMES): Likewise.
33350         (__ASSUME_O_CLOEXEC): Likewise.
33351         (__ASSUME_SOCK_CLOEXEC): Likewise.
33352         (__ASSUME_IN_NONBLOCK): Likewise.
33353         (__ASSUME_PIPE2): Likewise.
33354         (__ASSUME_EVENTFD2): Likewise.
33355         (__ASSUME_SIGNALFD4): Likewise.
33356         (__ASSUME_DUP3): Likewise.
33357         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33358         (__ASSUME_UTIMES): Likewise.
33359         (__ASSUME_O_CLOEXEC): Likewise.
33360         (__ASSUME_SOCK_CLOEXEC): Likewise.
33361         (__ASSUME_IN_NONBLOCK): Likewise.
33362         (__ASSUME_PIPE2): Likewise.
33363         (__ASSUME_EVENTFD2): Likewise.
33364         (__ASSUME_SIGNALFD4): Likewise.
33365         (__ASSUME_DUP3): Likewise.
33366         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
33367         Likewise.
33368         (__ASSUME_UTIMES): Likewise.
33369         (__ASSUME_EVENTFD2): Likewise.
33370         (__ASSUME_SIGNALFD4): Likewise.
33371         * sysdeps/unix/sysv/linux/tile/kernel-features.h
33372         (__ASSUME_O_CLOEXEC): Likewise.
33373         (__ASSUME_SOCK_CLOEXEC): Likewise.
33374         (__ASSUME_IN_NONBLOCK): Likewise.
33375         (__ASSUME_PIPE2): Likewise.
33376         (__ASSUME_EVENTFD2): Likewise.
33377         (__ASSUME_SIGNALFD4): Likewise.
33378         (__ASSUME_DUP3): Likewise.
33379         (__ASSUME_UTIMES): Undefine.
33380
33381         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
33382         feclearexcept.  Remove symbol versioning code.
33383         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
33384         symbol versioning code.
33385         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
33386         symbol versioning code.
33387         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
33388         feupdateenv.  Remove symbol versioning code.
33389         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
33390         fegetexceptflag.  Remove symbol versioning code.
33391         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
33392         fesetexceptflag.  Remove symbol versioning code.
33393         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
33394         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
33395         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
33396         (__posix_fadvise64_l32): Remove prototype.
33397         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
33398         code.
33399
33400 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33401
33402         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
33403         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
33404         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
33405         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
33406
33407 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
33408
33409         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
33410         current working directory
33411
33412 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33413
33414         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
33415         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
33416         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
33417         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
33418         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
33419         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
33420         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
33421         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
33422         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
33423         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
33424         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
33425         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
33426         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
33427         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
33428         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
33429         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
33430         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
33431         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
33432         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
33433         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
33434         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
33435         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
33436         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
33437         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
33438         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
33439         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
33440         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33441         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33442         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33443         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33444         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33445         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33446         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33447         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33448         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33449         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33450         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33451         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33452         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33453         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33454         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33455         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33456
33457         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33458         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33459
33460         * sysdeps/unix/sysv/linux/arm/Makefile
33461         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33462         Add rt-aeabi_unwind_cpp_pr1.
33463         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33464         Add nptl-aeabi_unwind_cpp_pr1.
33465         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33466         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33467         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33468         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33469         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33470         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33471
33472         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33473         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33474         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33475         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33476
33477         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33478         Deconditionalize the code that was previously under [RESET_PID].
33479         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33480
33481         * sysdeps/generic/exit-thread.h: New file.
33482         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33483         * include/unistd.h (__exit_thread): Remove declaration.
33484         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33485         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33486         * csu/libc-start.c: Include <exit-thread.h>.
33487         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33488         * nptl/pthread_create.c: Include <exit-thread.h>.
33489         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33490         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33491         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33492         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33493         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33494         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33495         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33496         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33497         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33498         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33499         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33500         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33501         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33502         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33503         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33504         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33505         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33506
33507 2014-05-13  Andreas Schwab  <schwab@suse.de>
33508
33509         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33510
33511 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33512
33513         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33514         (__ASSUME_UTIMES): Do not condition on kernel version.
33515         (__ASSUME_PSELECT): Define unconditionally.
33516         (__ASSUME_PPOLL): Likewise.
33517         (__ASSUME_ATFCTS): Likewise.
33518         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33519         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33520         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33521         (__ASSUME_UTIMENSAT): Define unconditionally.
33522         (__ASSUME_PRIVATE_FUTEX): Likewise.
33523         (__ASSUME_FALLOCATE): Likewise.
33524         (__ASSUME_O_CLOEXEC): Likewise.
33525         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33526         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33527         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33528         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33529         (__ASSUME_IN_NONBLOCK): Likewise.
33530         (__ASSUME_PIPE2): Likewise.
33531         (__ASSUME_EVENTFD2): Likewise.
33532         (__ASSUME_SIGNALFD4): Likewise.
33533         (__ASSUME_DUP3): Likewise.
33534         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33535         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33536         (__ASSUME_AT_RANDOM): Likewise.
33537         (__ASSUME_PREADV): Likewise.
33538         (__ASSUME_PWRITEV): Likewise.
33539         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33540         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33541         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33542         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33543         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33544         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33545         (__ASSUME_O_CLOEXEC): Define unconditionally.
33546         (__ASSUME_PSELECT): Do not undefine conditionally.
33547         (__ASSUME_PPOLL): Likewise.
33548         (__ASSUME_ATFCTS): Likewise.
33549         (__ASSUME_SET_ROBUST_LIST): Likewise.
33550         (__ASSUME_UTIMENSAT): Likewise.
33551         (__ASSUME_FDATASYNC): Define unconditionally.
33552         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33553         (__ASSUME_SIGFRAME_V2): Likewise.
33554         )__ASSUME_EVENTFD2): Likewise.
33555         (__ASSUME_SIGNALFD4): Likewise.
33556         (__ASSUME_PSELECT): Do not undefine conditionally.
33557         (__ASSUME_PPOLL): Likewise.
33558         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33559         (__ASSUME_PSELECT): Define unconditionally.
33560         (__ASSUME_PPOLL): Likewise.
33561         (__ASSUME_O_CLOEXEC): Likewise.
33562         (__ASSUME_SOCK_CLOEXEC): Likewise.
33563         (__ASSUME_IN_NONBLOCK): Likewise.
33564         (__ASSUME_PIPE2): Likewise.
33565         (__ASSUME_EVENTFD2): Likewise.
33566         (__ASSUME_SIGNALFD4): Likewise.
33567         (__ASSUME_DUP3): Likewise.
33568         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33569         (__ASSUME_O_CLOEXEC): Likewise.
33570         (__ASSUME_SOCK_CLOEXEC): Likewise.
33571         (__ASSUME_IN_NONBLOCK): Likewise.
33572         (__ASSUME_PIPE2): Likewise.
33573         (__ASSUME_EVENTFD2): Likewise.
33574         (__ASSUME_SIGNALFD4): Likewise.
33575         (__ASSUME_DUP3): Likewise.
33576         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33577         (__ASSUME_EVENTFD2): Likewise.
33578         (__ASSUME_SIGNALFD4): Likewise.
33579         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33580
33581 2014-05-12  Andreas Schwab  <schwab@suse.de>
33582
33583         [BZ #16932]
33584         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33585         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33586         than maximum RPC packet size.
33587         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33588         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33589         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33590         (_nss_nis_getservbyport_r): Likewise.
33591
33592 2014-05-12  Will Newton  <will.newton@linaro.org>
33593
33594         * malloc/Makefile (tests): Add tst-mallopt.
33595         * malloc/tst-mallopt.c: New file.
33596
33597 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33598
33599         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33600         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33601
33602 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33603
33604         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33605         (tst-tlsmod6.so): Likewise.
33606
33607 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33608
33609         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33610
33611 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33612
33613         [BZ #16064]
33614         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33615         and <dl-procinfo.h>.
33616         (__fegetenv): Save SSE state in envp->__eip if supported.
33617         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33618         envp->__eip if supported.
33619         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33620         and <dl-procinfo.h>.
33621         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33622         __data_offset and __data_selector in environment to 0.  Set SSE
33623         state if supported.
33624         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33625         test-fenv-sse.
33626         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33627         -mfpmath=sse.
33628         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33629
33630 2014-05-09  Will Newton  <will.newton@linaro.org>
33631
33632         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33633         and libc_relro_required for ARM.
33634         * sysdeps/arm/preconfigure: Regenerate.
33635
33636 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33637             Stefan Liebler  <stli@linux.vnet.ibm.com>
33638
33639         * config.make.in (enable-lock-elision): New Makefile variable.
33640         * configure.ac: Likewise.
33641         * configure: Regenerate.
33642         * sysdeps/s390/configure.ac:
33643         Add check for gcc transactions support.
33644         * sysdeps/s390/configure: Regenerate.
33645         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33646         Build elision files if enabled.
33647         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33648         Add lock elision support for s390.
33649         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33650         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33651         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33652         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33653         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33654         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33655         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33656         Likewise.
33657         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33658         Likewise.
33659         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33660         Likewise.
33661         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33662         Likewise.
33663         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33664         (__lll_timedlock_elision, __lll_lock_elision)
33665         (__lll_unlock_elision, __lll_trylock_elision)
33666         (lll_timedlock_elision, lll_lock_elision)
33667         (lll_unlock_elision, lll_trylock_elision): Add.
33668         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33669         (pthread_mutex_t): Add lock elision support for s390.
33670
33671 2014-05-14  Wilco  <wdijkstr@arm.com>
33672
33673         * sysdeps/arm/fclrexcpt.c: Cleanup.
33674         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33675         * sysdeps/arm/feenablxcpt.c: Cleanup.
33676         * sysdeps/arm/fegetenv.c: Cleanup.
33677         * sysdeps/arm/fegetexcept.c: Cleanup.
33678         * sysdeps/arm/fegetround.c: Cleanup.
33679         * sysdeps/arm/feholdexcpt.c: Cleanup.
33680         * sysdeps/arm/fesetenv.c: Cleanup.
33681         * sysdeps/arm/fesetround.c: Cleanup.
33682         * sysdeps/arm/feupdateenv.c: Cleanup.
33683         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33684         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33685         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33686         * sysdeps/arm/ftestexcept.c: Cleanup.
33687         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33688         * sysdeps/arm/setfpucw.c: Cleanup.
33689
33690 2014-05-09  Will Newton  <will.newton@linaro.org>
33691
33692         * sysdeps/arm/armv7/strcmp.S: New file.
33693         * NEWS: Mention addition of ARMv7 optimized strcmp.
33694
33695 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33696
33697         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33698         look for %.ac rather than %.in.
33699
33700         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33701         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33702         * sysdeps/mach/hurd/configure: Regenerated.
33703         * sysdeps/unix/sysv/linux/configure: Regenerated.
33704
33705         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33706
33707 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33708
33709         [BZ# 16922]
33710         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33711         (LONG_SUB): Ditto.
33712         (PTR_SUB): Ditto.
33713
33714 2014-05-07  Andreas Schwab  <schwab@suse.de>
33715
33716         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33717         when skipping over non-matching result from nscd.
33718
33719 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33720
33721         [BZ #16876]
33722         * nptl/sockperf.c (client): Check socket return value.
33723
33724         [BZ #16877]
33725         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33726         nscd security class.
33727
33728 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33729
33730         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33731         * sysdeps/arm/unwind.h: ... here.
33732
33733 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33734
33735         [BZ# 16916]
33736         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33737         Define.
33738
33739 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33740
33741         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33742         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33743         multiarch strncpy for PPC64.
33744         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33745         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33746         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33747         multiarch optimizations.
33748         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33749         (__libc_ifunc_impl_list): Likewise.
33750         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33751         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33752         multiarch stpncpy for PPC64.
33753         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33754         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33755
33756 2014-05-06  Andreas Schwab  <schwab@suse.de>
33757
33758         [BZ #16912]
33759         * gmon/mcount.c (_MCOUNT_DECL): Use
33760         atomic_compare_and_exchange_bool_acq instead of
33761         catomic_compare_and_exchange_bool_acq.
33762
33763 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33764
33765         * elf/Makefile (others, install-bin): Remove pldd.
33766         (pldd-modules): Variable removed.
33767         ($(objpfx)pldd): Target removed.
33768         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33769         (others, install-bin): Append pldd here.
33770         ($(objpfx)pldd): New target.
33771
33772         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33773         to 0, so the first #if test emitted later doesn't see it undefined.
33774         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33775         * sysdeps/gnu/errlist.c: Regenerated.
33776
33777 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33778
33779         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33780         [libc_hidden_builtin_def]: Define to empty value.
33781         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33782         [libc_hidden_builtin_def]: Likewise.
33783         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33784         [libc_hidden_builtin_def]: Likewise.
33785         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33786         [libc_hidden_builtin_def]: Likewise.
33787         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33788         __redirect_memcpy and define ifunc as default hidden symbol.
33789         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33790         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33791
33792 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33793
33794         * locale/iso-4217.def: Reintroduce XDR currency.
33795
33796 2014-05-04  Allan McRae  <allan@archlinux.org>
33797
33798         * po/eo.po: Update Esperanto translation from translation project.
33799
33800 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33801
33802         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33803         and FEATURE_INDEX_MAX to 1.
33804         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33805
33806 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33807
33808         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33809         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33810         * iconvdata/big5.c (ONE_DIRECTION): Define.
33811         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33812         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33813         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33814         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33815         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33816         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33817         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33818         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33819         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33820         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33821         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33822         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33823         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33824         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33825         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33826         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33827         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33828         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33829         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33830         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33831         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33832         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33833         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33834         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33835         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33836         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33837         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33838         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33839         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33840         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33841         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33842         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33843         * iconvdata/johab.c (ONE_DIRECTION): Define.
33844         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33845         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33846         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33847         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33848         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33849         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33850         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33851         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33852         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33853         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33854
33855 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33856
33857         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33858         (_IO_JUMPS_OFFSET): Define to 0.
33859
33860         * nptl/sysdeps/pthread/bits/libc-lock.h
33861         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33862         (__libc_lock_define_initialized_recursive): Always define using
33863         initializer.  Modern compilers treat uninitialized (implicit zero) and
33864         explicit zero initializers the same (i.e. put the datum in bss).
33865
33866 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33867
33868         * nscd/nscd-client.h: Include <string.h>.
33869
33870 2014-05-01  David S. Miller  <davem@davemloft.net>
33871
33872         [BZ #16885]
33873         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33874         multiple zero bytes exist at the end of a string.
33875         Reported by Aurelien Jarno <aurelien@aurel32.net>
33876
33877         * string/test-strcmp.c (check): Add explicit test for situations where
33878         there are multiple zero bytes after the first.
33879
33880 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33881
33882         [BZ #16890]
33883         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33884         when compiling wprintf.
33885         * stdio-common/tstdiomisc.c (t3): New function.
33886         (main): Call it.
33887
33888 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33889
33890         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33891         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33892         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33893         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33894
33895 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33896
33897         * stdlib/longlong.h: Updated from GCC.
33898
33899 2014-05-01  Will Newton  <will.newton@linaro.org>
33900             Bernard Ogden  <bernie.ogden@linaro.org>
33901
33902         * NEWS: Update fixed bug list.
33903
33904         [BZ #15119]
33905         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
33906
33907 2014-04-30  David S. Miller  <davem@davemloft.net>
33908
33909         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
33910         (libc_feholdexcept_setround_sparc_ctx): New function.
33911         (libc_fesetenv_sparc_ctx): Likewise.
33912         (libc_feupdateenv_sparc_ctx): Likewise.
33913         (libc_feholdsetround_sparc_ctx): Likewise.
33914         (libc_feholdexcept_setround_ctx): Define.
33915         (libc_feholdexcept_setroundf_ctx): Likewise.
33916         (libc_feholdexcept_setroundl_ctx): Likewise.
33917         (libc_fesetenv_ctx): Likewise.
33918         (libc_fesetenvf_ctx): Likewise.
33919         (libc_fesetenvl_ctx): Likewise.
33920         (libc_feupdateenv_ctx): Likewise.
33921         (libc_feupdateenvf_ctx): Likewise.
33922         (libc_feupdateenvl_ctx): Likewise.
33923         (libc_feresetround_ctx): Likewise.
33924         (libc_feresetroundf_ctx): Likewise.
33925         (libc_feresetroundl_ctx): Likewise.
33926         (libc_feholdsetround_ctx): Likewise.
33927         (libc_feholdsetroundf_ctx): Likewise.
33928         (libc_feholdsetroundl_ctx): Likewise.
33929
33930         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33931         with __USE_GNU instead of XOPEN cpp guards.
33932
33933         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
33934         0.
33935
33936         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33937         with XOPEN cpp guards.
33938
33939 2014-04-30  Julian Brown  <julian@codesourcery.com>
33940
33941         [BZ #16888]
33942         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
33943         handling.
33944
33945 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
33946
33947         [BZ #9894]
33948         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
33949         Change to 2.6.32.
33950         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
33951         * sysdeps/unix/sysv/linux/configure: Regenerated.
33952         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
33953         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
33954         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
33955         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
33956         * README: Update reference to required Linux kernel version.
33957         * manual/install.texi (Linux): Update reference to required Linux
33958         kernel headers version.
33959         * INSTALL: Regenerated.
33960
33961         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
33962         header inclusion.
33963         [POSIX] (limits.h): Likewise.
33964         [POSIX] (math.h): Likewise.
33965         [POSIX] (sys/wait.h): Likewise.
33966         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
33967         function.
33968         [POSIX] (stddef.h): Do not allow header inclusion.
33969
33970 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33971
33972         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
33973
33974 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
33975
33976         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
33977         Return immediately after lll_futex_wake.
33978
33979 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
33980
33981         [BZ #16791]
33982         * nscd/nscd-client.h (datahead_init_common): Initialize entire
33983         structure.
33984         (datahead_init_pos): Call datahead_init_common early.
33985         (datahead_init_neg): Likewise.
33986
33987         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
33988         datahead_init_neg): New functions.
33989         * nscd/aicache.c (addhstaiX): Use them.
33990         * nscd/grpcache.c (cache_addgr): Likewise.
33991         * nscd/hstcache.c (cache_addhst): Likewise.
33992         * nscd/initgrcache.c (addinitgroupsX): Likewise.
33993         * nscd/netgroupcache.c (do_notfound): Likewise.
33994         (addgetnetgrentX): Likewise.
33995         (addinnetgrX): Likewise.
33996         * nscd/pwdcache.c (cache_addpw): Likewise.
33997         * nscd/servicescache.c (cache_addserv): Likewise.
33998
33999 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34000             Atsushi Onoe  <atsushi@onoe.org>
34001
34002         [BZ #14308]
34003         [BZ #12994]
34004         [BZ #13651]
34005         * resolv/res_query.c (__libc_res_nsearch): Return if at least
34006         one response is valid.
34007         * resolv/res_send.c (send_dg): Check for validity of other
34008         response if the current response is a referral.
34009
34010 2014-04-29  Steve Ellcey  <sellcey@mips.com>
34011
34012         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
34013
34014 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
34015
34016         [BZ #16823]
34017         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
34018         Always divide by positive zero when computing -Inf result.
34019         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
34020         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
34021
34022 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34023
34024         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
34025         FPSCR if value do not change.
34026         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
34027         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
34028         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
34029         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
34030         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
34031         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
34032         function.
34033
34034 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
34035
34036         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
34037         * sysdeps/unix/sysv/linux/hppa: Move directory from
34038         ports/systeps/unix/sysv/linux/hppa.
34039         * README: Update listing for hppa-*-linux-gnu.
34040
34041 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
34042
34043         [BZ #16754]
34044         * manual/stdio.texi (Hook functions): Fix types of stream hook
34045         functions.
34046         [BZ #16854]
34047         * socket/sys/socket.h: Fix typo in comment.
34048
34049 2014-04-28  Wilco  <wdijkstr@arm.com>
34050
34051         * sysdeps/arm/fenv_private.h: New file.
34052         * sysdeps/arm/math_private.h: New file.
34053         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
34054
34055 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
34056
34057         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
34058         with __int128_t.
34059         (La_x86_64_retval): Likewise.
34060
34061 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
34062
34063         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
34064         fpsr if value didn't change.
34065         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
34066         to fpcr if value didn't change.
34067         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
34068         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
34069         fpsr or fpcr if value didn't change.
34070         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
34071         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
34072         fpcr if value didn't change.
34073         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
34074         to fpsr if value didn't change.
34075
34076 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
34077
34078         * nptl/tst-sem3.c: Use test-skeleton.c
34079         (main): Rename to do_test.  Use return instead of
34080         exit.
34081         * nptl/tst-sem4.c: Use test-skeleton.c
34082         (main): Rename to do_test.
34083
34084 2014-04-22  David S. Miller  <davem@davemloft.net>
34085
34086         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34087         (struct sigaction): New struct member __glibc_reserved0, change
34088         type of sa_flags to int.
34089
34090 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
34091
34092         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
34093         (COUNT_LEADING_ZEROS_0): Define for AArch64.
34094
34095 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
34096
34097         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
34098         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
34099
34100 2014-04-22  Will Newton  <will.newton@linaro.org>
34101             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
34102
34103         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
34104         (__longjmp): Add longjmp and longjmp_target SystemTap
34105         probes.
34106         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
34107         (__sigsetjmp): Add setjmp SystemTap probe.
34108
34109 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
34110
34111         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
34112         match manual order.
34113
34114 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34115
34116         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
34117
34118         * sysdeps/powerpc/fpu/fenv_private.h
34119         (libc_feholdexcept_setroundl_ctx): Define to
34120         libc_feholdexcept_setround_ppc_ctx.
34121         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
34122         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
34123         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
34124         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
34125
34126 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34127
34128         * sysdeps/aarch64/math-tests.h: New file.
34129
34130 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
34131
34132         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
34133         New.
34134         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34135         Check and set bit_AVX2_Usable.
34136         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
34137         macro.
34138         (bit_AVX2): Likewise.
34139         (index_AVX2_Usable): Likewise.
34140         (CPUID_AVX2): Likewise.
34141         (HAS_AVX2): Likewise.
34142
34143 2014-04-17  Will Newton  <will.newton@linaro.org>
34144
34145         * manual/setjmp.texi (System V contexts): Add note that
34146         calling setcontext on a context created by a call to a
34147         signal handler is undefined.  Update text to note that
34148         setcontext from a signal handler is possible but not
34149         recommended.
34150
34151         [BZ #16629]
34152         * stdlib/tst-setcontext.c: Include signal.h.
34153         (main): Check that the signal stack before and
34154         after swapcontext is the same.
34155
34156         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
34157         Re-implement to restore registers in user code and avoid
34158         rt_sigreturn system call.
34159
34160 2014-04-17  Wilco  <wdijkstr@arm.com>
34161
34162         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
34163         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
34164         * math/test-fenv.c: Skip exception trap tests on targets which only
34165         support non-stop mode.
34166
34167 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34168             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34169
34170         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
34171         (libc_feholdsetround_aarch64_ctx)
34172         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
34173         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
34174         (libc_feresetround_ctx, libc_feresetroundf_ctx)
34175         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
34176         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
34177         (libc_feresetround_noexl_ctx): Define.
34178
34179 2014-04-16  Richard Henderson  <rth@redhat.com>
34180
34181         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
34182
34183         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
34184         unwind tables.
34185
34186         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
34187         const from the non-libc, non-ldso copy.
34188
34189         * sysdeps/alpha/libm-test-ulps: Regenerate.
34190
34191 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
34192             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34193
34194         * sysdeps/aarch64/fpu/math_private.h: New file.
34195
34196 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34197
34198         * sysdeps/aarch64/libm-test-ulps: Regenerate.
34199
34200 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
34201
34202         [BZ #16275]
34203         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
34204         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
34205         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
34206         Intel MPX bound registers before _dl_profile_fixup.
34207         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
34208         registers after _dl_profile_fixup.  Save and restore bound
34209         registers bnd0/bnd1 when calling _dl_call_pltexit.
34210         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
34211         (LR_BND_OFFSET): Likewise.
34212         (LRV_BND0_OFFSET): Likewise.
34213         (LRV_BND1_OFFSET): Likewise.
34214
34215 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34216
34217         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
34218         to...
34219         * sysdeps/mach/hurd/i386/tls.h: ... here.
34220         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
34221         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
34222         fields.
34223
34224 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34225
34226         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
34227
34228 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34229
34230         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34231
34232 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34233
34234         [BZ #14770]
34235         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
34236         * sysdeps/s390/configure: Regenerate.
34237
34238         [BZ #16824]
34239         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
34240         Set round-to-nearest internally to reduce error accumulation.
34241
34242 2014-04-16  Alan Modra  <amodra@gmail.com>
34243
34244         [BZ #16740]
34245         [BZ #16619]
34246         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
34247         * math/libm-test.inc (frexp_test_data): Add tests.
34248         * NEWS: Update fixed bug list.
34249
34250 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
34251
34252         * benchtests/Makefile: Depend on libraries in build directory.
34253         (bench-math): Separate out math tests.
34254         (bench-pthread): Separate out pthread tests.
34255         (bench): Include math and pthread tests.
34256
34257 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
34258
34259         [BZ #16831]
34260         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
34261         _dl_debug_initialize.
34262
34263         * configure.ac: Remove SELinux header check.
34264         * configure: Regenerate.
34265         * nscd/selinux.c (perms): Array of const char* to permission names.
34266         (nscd_request_avc_has_perm): Call security_deny_unknown to find
34267         default policy. Call string_to_security_class and string_to_av_perm to
34268         translate strings. Enforce default policy and call avs_has_perm with
34269         results of translated strings.
34270
34271 2014-04-13  David S. Miller  <davem@davemloft.net>
34272
34273         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34274
34275 2014-04-12  Allan McRae  <allan@archlinux.org>
34276
34277         [BZ #16838]
34278         * manual/string.texi (Collation Functions): Fix qsort argument
34279         order in example.
34280         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
34281
34282 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
34283
34284         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
34285         Make the test a no-op if there are no exceptions defined.
34286
34287 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
34288
34289         * elf/Makefile (tests): make tst-dlopen-aout conditional on
34290         enable-hardcoded-path-in-tests
34291
34292 2014-04-11  Will Newton  <will.newton@linaro.org>
34293
34294         * benchtests/Makefile (extra-objs): Add json-lib.o.
34295         (bench-func): Tidy up JSON output.
34296         * benchtests/bench-skeleton.c: Include json-lib.h.
34297         (main): Use JSON library functions to do output of
34298         benchmark results.
34299         * benchtests/bench-timing-type.c (main): Output the
34300         timing type simply, leaving formatting to the user.
34301         * benchtests/json-lib.c: New file.
34302         * benchtests/json-lib.h: Likewise.
34303
34304 2014-04-11  Torvald Riegel  <triegel@redhat.com>
34305
34306         [BZ #15215]
34307         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
34308         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
34309         memory barriers.  Add comments.
34310         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
34311         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
34312         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
34313         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
34314         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
34315         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
34316
34317 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
34318
34319         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
34320         * sysdeps/s390/s390-64/configure.ac: ... this ...
34321         * sysdeps/s390/configure.ac: ... to here.
34322         * sysdeps/s390/s390-32/configure: Delete file.
34323         * sysdeps/s390/s390-64/configure: Delete file.
34324         * sysdeps/s390/configure: Regenerate.
34325
34326 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
34327
34328         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
34329
34330 2014-04-11  Will Newton  <will.newton@linaro.org>
34331
34332         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
34333         to zero if it is not defined elsewhere.  (mtrim): Test
34334         the value of MALLOC_DEBUG with #if rather than #ifdef.
34335
34336 2014-04-10 Torvald Riegel  <triegel@redhat.com>
34337
34338         * benchtests/pthread_once-inputs: New file.
34339         * benchtests/pthread_once-source.c: New file.
34340         * benchtests/README: Update documentation.
34341
34342 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
34343             H.J. Lu  <hongjiu.lu@intel.com>
34344
34345         [BZ #16275]
34346         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
34347         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
34348         * sysdeps/x86_64/configure: Regenerated.
34349         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
34350         macro.
34351         (REGISTER_SAVE_RAX): Likewise.
34352         (REGISTER_SAVE_RCX): Likewise.
34353         (REGISTER_SAVE_RDX): Likewise.
34354         (REGISTER_SAVE_RSI): Likewise.
34355         (REGISTER_SAVE_RDI): Likewise.
34356         (REGISTER_SAVE_R8): Likewise.
34357         (REGISTER_SAVE_R9): Likewise.
34358         (REGISTER_SAVE_BND0): Likewise.
34359         (REGISTER_SAVE_BND1): Likewise.
34360         (REGISTER_SAVE_BND2): Likewise.
34361         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
34362         bound registers when calling _dl_fixup.
34363
34364 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34365
34366         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
34367         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
34368         of its definition.
34369         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
34370         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
34371         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
34372         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
34373         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
34374         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
34375         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
34376
34377 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
34378
34379         [BZ #15514]
34380         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
34381         pathconf(_PC_NAME_MAX).
34382
34383 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34384
34385         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
34386         Remove macro usage.
34387         (__PTHREAD_SPINS): Move definition to ...
34388         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34389         (__PTHREAD_SPINS): ... here.
34390         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34391         (__PTHREAD_SPIN): Likewise.
34392         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
34393         (__PTHREAD_SPIN): Likewise.
34394         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
34395         (__PTHREAD_SPIN): Likewise.
34396         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
34397         (__PTHREAD_SPIN): Likewise.
34398         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34399         (__PTHREAD_SPIN): Likewise.
34400         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34401         (__PTHREAD_SPIN): Likewise.
34402         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
34403         (__PTHREAD_SPIN): Likewise.
34404         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34405         (__PTHREAD_SPIN): Likewise.
34406         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34407         (__PTHREAD_SPIN): Likewise.
34408         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34409         (__PTHREAD_SPIN): Likewise.
34410         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34411         (__PTHREAD_SPIN): Likewise.
34412         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
34413         (__PTHREAD_SPIN): Likewise.
34414
34415         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
34416         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
34417         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
34418         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
34419         imply folder.
34420         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
34421         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
34422         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
34423         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
34424         correct imply path.
34425         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
34426         strlen symbol for non multi-arch builds.
34427         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
34428         missing hidden_def and weak_alias.
34429
34430 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
34431
34432         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
34433
34434 2014-04-07  Will Newton  <will.newton@linaro.org>
34435
34436         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
34437         and contents.  [!_LIBC] Remove #ifndef and contents.
34438         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
34439         * string/memccpy.c (__memccpy): Use ANSI prototype.
34440         * string/memfrob.c (memfrob): Likewise.
34441         * string/strcoll.c (STRCOLL): Likewise.
34442         * string/strlen.c (strlen): Likewise.
34443         * string/strtok.c (STRTOK): Likewise.
34444         * string/strcat.c: Remove unused #include of memcopy.h.
34445         (strcat): Use ANSI prototype.
34446         * string/strchr.c: Remove unused #include of memcopy.h.
34447         (strchr): Use ANSI prototype.
34448         * string/strcmp.c: Remove unused #include of memcopy.h.
34449         (strcmp): Use ANSI prototype.
34450         * string/strcpy.c: Remove unused #include of memcopy.h.
34451         (strcpy): Use ANSI prototype.
34452
34453 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34454
34455         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34456         * config.make.in (config-extra-cppflags): Set it from
34457         libc_extra_cppflags.
34458         * configure.ac (libc_extra_cflags): Make it accumulate over
34459         configure fragments.
34460         (libc_extra_cppflags): New flag.
34461         * configure. Regenerate.
34462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34463         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34464         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34466
34467         [BZ #16815]
34468         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34469         result for FE_DOWNWARD rounding mode.
34470         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34471         Likewise.
34472         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34473
34474 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34475
34476         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34477         in function argument name.
34478
34479 2014-04-03  David Svoboda  <svoboda@cert.org>
34480
34481         [BZ #5666]
34482         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34483         explicitly.
34484
34485 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34486
34487         * elf/dl-unmap-segments.h: New file.
34488         * sysdeps/generic/ldsodefs.h
34489         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34490         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34491         * elf/dl-fptr.c: Likewise.
34492         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34493         * sysdeps/aarch64/tlsdesc.c: Likewise.
34494         * sysdeps/arm/tlsdesc.c: Likewise.
34495         * sysdeps/i386/tlsdesc.c: Likewise.
34496         * sysdeps/tile/dl-runtime.c: Likewise.
34497         * sysdeps/x86_64/tlsdesc.c: Likewise.
34498         * elf/dl-load.h: New file.
34499         * elf/dl-load.c: Include it.
34500         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34501         Macros moved to dl-load.h.
34502         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34503         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34504         Use _dl_unmap_segments in place of __munmap.
34505         Break out segment-mapping loop into ...
34506         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34507
34508 2014-04-03  Will Newton  <will.newton@linaro.org>
34509
34510         * elf/dl-lookup.c (do_lookup_x): Remove comment
34511         referring to nested function and move variable
34512         declarations down to before first use.
34513
34514 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34515
34516         [BZ #16799]
34517         [BZ #16800]
34518         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34519         with 0 numerator.
34520         * math/s_catanf.c (__catanf): Likewise.
34521         * math/s_catanh.c (__catanh): Likewise.
34522         * math/s_catanhf.c (__catanhf): Likewise.
34523         * math/s_catanhl.c (__catanhl): Likewise.
34524         * math/s_catanl.c (__catanl): Likewise.
34525         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34526         by positive zero when computing -Inf result.
34527         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34528         (catanh_test): Likewise.
34529         * sysdeps/i386/fpu/libm-test-ulps: Update.
34530         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34531
34532         [BZ #16789]
34533         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34534         instead of using underflowing value in computing result.
34535         * math/s_clog10.c (__clog10): Likewise.
34536         * math/s_clog10f.c (__clog10f): Likewise.
34537         * math/s_clog10l.c (__clog10l): Likewise.
34538         * math/s_clogf.c (__clogf): Likewise.
34539         * math/s_clogl.c (__clogl): Likewise.
34540         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34541         (clog10_test): Likewise.
34542         * sysdeps/i386/fpu/libm-test-ulps: Update.
34543         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34544
34545 2014-04-02  Alan Modra  <amodra@gmail.com>
34546
34547         [BZ #16739]
34548         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34549         output when value is near a power of two.  Use int64_t for lx and
34550         remove casts.  Use decimal rather than hex exponent constants.
34551         Don't use long double multiplication when double will suffice.
34552         * math/libm-test.inc (nextafter_test_data): Add tests.
34553         * NEWS: Add 16739 and 16786 to bug list.
34554
34555         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34556
34557         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34558
34559 2014-04-01  Will Newton  <will.newton@linaro.org>
34560
34561         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34562         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34563
34564 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34565
34566         [BZ #13347]
34567         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34568         * nptl/tst-setuid2.c: New file.
34569         * nptl/Makefile (xtests): Add tst-setuid2.
34570
34571 2014-04-01  Alan Modra  <amodra@gmail.com>
34572
34573         [BZ #16786]
34574         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34575
34576 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34577
34578         [BZ #6803]
34579         [BZ #6804]
34580         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34581         set errno as appropriate.
34582         * math/w_scalbf.c (__scalbf): Likewise.
34583         * math/w_scalbl.c (__scalbl): Likewise.
34584         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34585         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34586         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34587         Add more NaN tests.
34588
34589         [BZ #16349]
34590         * math/w_atan2.c: Include <errno.h>.
34591         (__atan2): Set errno for result underflowing to zero.
34592         * math/w_atan2f.c: Include <errno.h>.
34593         (__atan2f): Set errno for result underflowing to zero.
34594         * math/w_atan2l.c: Include <errno.h>.
34595         (__atan2l): Set errno for result underflowing to zero.
34596         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34597         tests.
34598         * math/auto-libm-test-out: Regenerated.
34599
34600 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34601
34602         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34603         Encode instruction correctly in little endian.
34604         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34605         Likewise.
34606         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34607         Likewise.
34608         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34609         Likewise.
34610         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34611         Likewise.
34612
34613 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34614
34615         [BZ #9894]
34616         * sysdeps/unix/sysv/linux/kernel-features.h
34617         [__sparc__ && !__arch64__ && !__sparc_v9__]
34618         (__ASSUME_SET_ROBUST_LIST): Do not define.
34619         [__sparc__ && !__arch64__ && !__sparc_v9__]
34620         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34621         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34622         Likewise.
34623         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34624         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34625         (__ASSUME_REQUEUE_PI): Likewise.
34626         (__ASSUME_SET_ROBUST_LIST): Likewise.
34627         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34628         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34629         Undefine.
34630         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34631         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34632         Likewise.
34633         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34634         Likewise.
34635         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34636         Likewise.
34637         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34638         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34639         Undefine.
34640         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34641         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34642         Likewise.
34643
34644         [BZ #16648]
34645         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34646         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34647         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34648
34649 2014-03-31  Will Newton  <will.newton@linaro.org>
34650
34651         * benchtests/Makefile (bench): Add ffs and ffsll to list
34652         of tests.
34653         * benchtests/ffs-inputs: New file.
34654         * benchtests/ffsll-inputs: Likewise.
34655
34656 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34657
34658         [BZ #16770]
34659         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34660         too large before casting to int.
34661         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34662         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34663         * math/libm-test.inc (scalb_test_data): Add more tests.
34664
34665 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34666
34667         * benchtests/Makefile (DETAILED_OPT): New make option.
34668         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34669         set.
34670         * benchtests/bench-skeleton.c: Include stdbool.h.
34671         (main): Store and print timings per input.
34672         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34673         member to each argument value.
34674         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34675         (_print_arg_data): Initialize per-input timing to 0.
34676
34677         * benchtests/Makefile (timing-type): New binary.
34678         (bench-clean): Also remove bench-timing-type.
34679         (bench): New target for timing-type.
34680         (bench-func): Print output in JSON format.
34681         * benchtests/bench-skeleton.c (main): Print output in JSON
34682         format.
34683         * benchtests/bench-timing-type.c: New file.
34684         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34685         (TIMING_PRINT_STATS): Remove.
34686         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34687         name separately.
34688
34689         * benchtests/bench-modf.c: Remove.
34690         * benchtests/modf-inputs: New inputs file.
34691
34692 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34693
34694         [BZ #16362]
34695         * math/s_clog10.c (M_PI_LOG10E): New macro.
34696         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34697         imaginary parts are 0.
34698         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34699         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34700         imaginary parts are 0.
34701         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34702         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34703         imaginary parts are 0.
34704         * math/libm-test.inc (clog10_test_data): Update expected results
34705         for when real and imaginary parts are 0.
34706
34707 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34708
34709         * elf/dl-load.c: Finish conversion of __builtin_expect into
34710         __glibc_{un}likely.
34711
34712 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34713
34714         [BZ #16348]
34715         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34716         1+x for argument with exponent below -67.
34717         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34718         Likewise.
34719         * math/auto-libm-test-in: Add more tests of exp.
34720         * math/auto-libm-test-out: Regenerated.
34721
34722 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34723
34724         [BZ #16759]
34725         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34726         (nscd_getnetgrent): Use it.
34727
34728         [BZ #16760]
34729         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34730         of stpcpy.
34731
34732 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34733
34734         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34735         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34736         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34737         (lll_robust_unlock): Remove out of line section. Use cfi
34738         intrinsics.
34739         (LLL_STUB_UNWIND_INFO*): Remove.
34740         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34741         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34742         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34743         (lll_robust_unlock): Remove out of line section. Use cfi
34744         intrinsics.
34745         (LLL_STUB_UNWIND_INFO*): Remove.
34746
34747 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34748
34749         [BZ #16758]
34750         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34751         blank values.
34752
34753 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34754
34755         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34756
34757 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34758
34759         [BZ #16198]
34760         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34761         fnstenv.
34762         * math/test-fenv-preserve.c: New file.
34763         * math/Makefile (tests): Add test-fenv-preserve.
34764
34765 2014-03-26  Will Newton <will.newton@linaro.org>
34766
34767         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34768
34769 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34770
34771         * scripts/versionlist.awk: Partition the version sets and emit all
34772         GLIBC_* (sorted) before all others (sorted).
34773
34774 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34775
34776         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34777         GLIBC_2.2.5 version.
34778
34779 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34780
34781         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34782         calls.
34783
34784         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34785         previous change.
34786
34787         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34788
34789 2014-03-25  Andreas Schwab  <schwab@suse.de>
34790
34791         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34792         label to be used after in6ailist is initialized.
34793
34794 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34795
34796         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34797         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34798
34799 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34800
34801         [BZ #16357]
34802         [BZ #16599]
34803         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34804         min_plus_half.
34805         (fp_formats): Update initializers.
34806         (init_fp_formats): Initialize new field.
34807         (output_for_one_input_case): Allow underflow for results up to
34808         min_plus_half.
34809         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34810         * math/auto-libm-test-in: Don't mark some underflows from asin and
34811         atanh as spurious.
34812         * math/auto-libm-test-out: Regenerated.
34813         * sysdeps/i386/fpu/libm-test-ulps: Update.
34814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34815
34816 2014-03-25  Andreas Schwab  <schwab@suse.de>
34817
34818         * libio/Makefile (tst-ftell-partial-wide-ENV)
34819         (tst-ftell-active-handler-ENV): Define.
34820
34821 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34822
34823         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34824
34825 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34826
34827         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34828
34829 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34830
34831         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34832         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34833         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34834
34835 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34836
34837         [BZ #16634]
34838         * elf/dl-load.c (open_verify): Add mode parameter.
34839         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34840         (open_path): Change from boolean 'secure' to complete flag 'mode'
34841         (_dl_map_object): Adjust.
34842         * elf/Makefile (tests): Add tst-dlopen-aout.
34843         * elf/tst-dlopen-aout.c: New test.
34844
34845 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34846
34847         [BZ #16714]
34848         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34849         (struct stat): Rename member pad0 to __glibc_reserved0.
34850
34851         [BZ #16712]
34852         * sysdeps/s390/s390-32/bits/wordsize.h
34853         (__WORDSIZE32_SIZE_ULONG): New define.
34854         * sysdeps/s390/s390-64/bits/wordsize.h
34855         (__WORDSIZE32_SIZE_ULONG): Likewise.
34856         * sysdeps/generic/stdint.h (SIZE_MAX):
34857         Define as UL if __WORDSIZE32_SIZE_ULONG.
34858
34859         [BZ #16713]
34860         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34861         (__glibc_reserved0): New variable.
34862         (sa_flags): Change type to int.
34863
34864         * posix/Makefile (before-compile): Use += before-compile instead
34865         of a :=.
34866
34867         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34868         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34869
34870 2014-03-20  Andreas Schwab  <schwab@suse.de>
34871
34872         [BZ #16743]
34873         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34874         non-matching result from nscd.
34875
34876 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34877
34878         * scripts/bench.py: Moved to ...
34879         * benchtests/scripts/bench.py: ... here.
34880         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34881
34882 2014-03-24  Andreas Schwab  <schwab@suse.de>
34883
34884         [BZ #16002]
34885         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34886         alloca_account and account alloca use for struct in6ailist.
34887
34888 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34889
34890         [BZ #16284]
34891         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34892         rounding mode to recompute results that overflow to infinity or
34893         underflow to zero.
34894         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34895         bug 16284.
34896         * math/auto-libm-test-out: Regenerated.
34897         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34898         (ccosh_test): Likewise.
34899         (csin_test_data): Use plus_oflow.
34900         (csin_test): Use ALL_RM_TEST.
34901         (csinh_test_data): Use plus_oflow.
34902         (csinh_test): Use ALL_RM_TEST.
34903         * sysdeps/i386/fpu/libm-test-ulps: Update.
34904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34905
34906 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
34907
34908         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
34909         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
34910         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
34911
34912         [BZ #16731]
34913         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
34914         when x - 1 is zero.
34915         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
34916         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
34917         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34918         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
34919         argument is 1.
34920         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
34921         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
34922         zero.
34923         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
34924         * sysdeps/i386/fpu/libm-test-ulps: Update.
34925         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34926
34927 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34928
34929         * scripts/bench.pl: Remove file.
34930         * scripts/bench.py: New benchmark script.
34931         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
34932         * benchtests/README: Mention python dependency.
34933         * scripts/pylintrc: New file.
34934         * scripts/pylint: New file.
34935
34936         * bits/mathdef.h: Use #ifdef instead of #if.
34937         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
34938         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34939         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
34940         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34941         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
34942         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34943
34944 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34945             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34946
34947         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
34948         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
34949         and strpbrk-ppc64 objects.
34950         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34951         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
34952         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
34953         multiarch strpbrk for POWER7.
34954         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
34955         multiarch strpbrk for PPC64.
34956         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
34957         ifunc selector.
34958         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
34959         strpbrk for POWER7.
34960
34961 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34962
34963         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
34964         (atan_test): Likewise.
34965         (atanh_test_data): Use NO_TEST_INLINE for two tests.
34966         (atanh_test): Use ALL_RM_TEST.
34967         (atan2_test_data): Likewise.
34968         (cabs_test): Likewise.
34969         (cacosh_test): Likewise.
34970         (carg_test): Likewise.
34971         (casin_test): Likewise.
34972         (casinh_test): Likewise.
34973         (cbrt_test): Likewise.
34974         (csqrt_test): Likewise.
34975         (erf_test): Likewise.
34976         (erfc_test): Likewise.
34977         (pow10_test): Likewise.
34978         (exp2_test): Likewise.
34979         (hypot_test): Likewise.
34980         (j0_test): Likewise.
34981         (j1_test): Likewise.
34982         (lgamma_test): Likewise.
34983         (gamma_test): Likewise.
34984         (sincos_test): Likewise.
34985         (tanh_test): Likewise.
34986         (y0_test): Likewise.
34987         (y1_test): Likewise.
34988         * sysdeps/i386/fpu/libm-test-ulps: Update.
34989         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34990
34991 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34992
34993         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
34994         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
34995         and strcspn-ppc64 objects.
34996         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34997         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
34998         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
34999         multiarch strcspn for POWER7.
35000         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
35001         multiarch strcspn for PPC64.
35002         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
35003         ifunc selector.
35004         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
35005         strcspn for POWER7.
35006
35007 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35008
35009         * math/gen-libm-test.pl (generate_testfile): Expect only function
35010         name as argument to AUTO_TESTS_* and pass results for all rounding
35011         modes to parse_args.
35012         (parse_auto_input): Separate inputs of automatic tests from
35013         outputs before storing in %auto_tests.
35014         * math/libm-test.inc (acos_test_data): Update call to
35015         AUTO_TESTS_f_f.
35016         (acos_test): Use ALL_RM_TEST.
35017         (acos_tonearest_test_data): Remove.
35018         (acos_test_tonearest): Likewise.
35019         (acos_towardzero_test_data): Likewise.
35020         (acos_test_towardzero): Likewise.
35021         (acos_downward_test_data): Likewise.
35022         (acos_test_downward): Likewise.
35023         (acos_upward_test_data): Likewise.
35024         (acos_test_upward): Likewise.
35025         (acosh_test_data): Update call to AUTO_TESTS_f_f.
35026         (asin_test_data): Likewise.
35027         (asin_test): Use ALL_RM_TEST.
35028         (asin_tonearest_test_data): Remove.
35029         (asin_test_tonearest): Likewise.
35030         (asin_towardzero_test_data): Likewise.
35031         (asin_test_towardzero): Likewise.
35032         (asin_downward_test_data): Likewise.
35033         (asin_test_downward): Likewise.
35034         (asin_upward_test_data): Likewise.
35035         (asin_test_upward): Likewise.
35036         (asinh_test_data): Update call to AUTO_TESTS_f_f.
35037         (atan_test_data): Likewise.
35038         (atanh_test_data): Likewise.
35039         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
35040         (cabs_test_data): Update call to AUTO_TESTS_c_f.
35041         (carg_test_data): Likewise.
35042         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
35043         (ccos_test_data): Update call to AUTO_TESTS_c_c.
35044         (ccosh_test_data): Likewise.
35045         (cexp_test_data): Likewise.
35046         (clog_test_data): Likewise.
35047         (clog10_test_data): Likewise.
35048         (cos_test_data): Update call to AUTO_TESTS_f_f.
35049         (cos_test): Use ALL_RM_TEST.
35050         (cos_tonearest_test_data): Remove.
35051         (cos_test_tonearest): Likewise.
35052         (cos_towardzero_test_data): Likewise.
35053         (cos_test_towardzero): Likewise.
35054         (cos_downward_test_data): Likewise.
35055         (cos_test_downward): Likewise.
35056         (cos_upward_test_data): Likewise.
35057         (cos_test_upward): Likewise.
35058         (cosh_test_data): Update call to AUTO_TESTS_f_f.
35059         (cosh_test): Use ALL_RM_TEST.
35060         (cosh_tonearest_test_data): Remove.
35061         (cosh_test_tonearest): Likewise.
35062         (cosh_towardzero_test_data): Likewise.
35063         (cosh_test_towardzero): Likewise.
35064         (cosh_downward_test_data): Likewise.
35065         (cosh_test_downward): Likewise.
35066         (cosh_upward_test_data): Likewise.
35067         (cosh_test_upward): Likewise.
35068         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
35069         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
35070         (ctan_test_data): Likewise.
35071         (ctan_test): Use ALL_RM_TEST.
35072         (ctan_tonearest_test_data): Remove.
35073         (ctan_test_tonearest): Likewise.
35074         (ctan_towardzero_test_data): Likewise.
35075         (ctan_test_towardzero): Likewise.
35076         (ctan_downward_test_data): Likewise.
35077         (ctan_test_downward): Likewise.
35078         (ctan_upward_test_data): Likewise.
35079         (ctan_test_upward): Likewise.
35080         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
35081         (ctanh_test): Use ALL_RM_TEST.
35082         (ctanh_tonearest_test_data): Remove.
35083         (ctanh_test_tonearest): Likewise.
35084         (ctanh_towardzero_test_data): Likewise.
35085         (ctanh_test_towardzero): Likewise.
35086         (ctanh_downward_test_data): Likewise.
35087         (ctanh_test_downward): Likewise.
35088         (ctanh_upward_test_data): Likewise.
35089         (ctanh_test_upward): Likewise.
35090         (erf_test_data): Update call to AUTO_TESTS_f_f.
35091         (erfc_test_data): Likewise.
35092         (exp_test_data): Likewise.
35093         (exp_test): Use ALL_RM_TEST.
35094         (exp_tonearest_test_data): Remove.
35095         (exp_test_tonearest): Likewise.
35096         (exp_towardzero_test_data): Likewise.
35097         (exp_test_towardzero): Likewise.
35098         (exp_downward_test_data): Likewise.
35099         (exp_test_downward): Likewise.
35100         (exp_upward_test_data): Likewise.
35101         (exp_test_upward): Likewise.
35102         (exp10_test_data): Update call to AUTO_TESTS_f_f.
35103         (exp10_test): Use ALL_RM_TEST.
35104         (exp10_tonearest_test_data): Remove.
35105         (exp10_test_tonearest): Likewise.
35106         (exp10_towardzero_test_data): Likewise.
35107         (exp10_test_towardzero): Likewise.
35108         (exp10_downward_test_data): Likewise.
35109         (exp10_test_downward): Likewise.
35110         (exp10_upward_test_data): Likewise.
35111         (exp10_test_upward): Likewise.
35112         (exp2_test_data): Update call to AUTO_TESTS_f_f.
35113         (expm1_test_data): Likewise.
35114         (expm1_test): Use ALL_RM_TEST.
35115         (expm1_tonearest_test_data): Remove.
35116         (expm1_test_tonearest): Likewise.
35117         (expm1_towardzero_test_data): Likewise.
35118         (expm1_test_towardzero): Likewise.
35119         (expm1_downward_test_data): Likewise.
35120         (expm1_test_downward): Likewise.
35121         (expm1_upward_test_data): Likewise.
35122         (expm1_test_upward): Likewise.
35123         (fma_test_data): Update call to AUTO_TESTS_fff_f.
35124         (fma_test): Use ALL_RM_TEST.
35125         (fma_towardzero_test_data): Remove.
35126         (fma_test_towardzero): Likewise.
35127         (fma_downward_test_data): Likewise.
35128         (fma_test_downward): Likewise.
35129         (fma_upward_test_data): Likewise.
35130         (fma_test_upward): Likewise.
35131         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
35132         (j0_test_data): Update call to AUTO_TESTS_f_f.
35133         (j1_test_data): Likewise.
35134         (jn_test_data): Update call to AUTO_TESTS_if_f.
35135         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
35136         (log_test_data): Update call to AUTO_TESTS_f_f.
35137         (log10_test_data): Likewise.
35138         (log1p_test_data): Likewise.
35139         (log2_test_data): Likewise.
35140         (pow_test_data): Update call to AUTO_TESTS_ff_f.
35141         (pow_tonearest_test_data): Likewise.
35142         (sin_test_data): Update call to AUTO_TESTS_f_f.
35143         (sin_test): Use ALL_RM_TEST.
35144         (sin_tonearest_test_data): Remove.
35145         (sin_test_tonearest): Likewise.
35146         (sin_towardzero_test_data): Likewise.
35147         (sin_test_towardzero): Likewise.
35148         (sin_downward_test_data): Likewise.
35149         (sin_test_downward): Likewise.
35150         (sin_upward_test_data): Likewise.
35151         (sin_test_upward): Likewise.
35152         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
35153         (sinh_test_data): Update call to AUTO_TESTS_f_f.
35154         (sinh_test): Use ALL_RM_TEST.
35155         (sinh_tonearest_test_data): Remove.
35156         (sinh_test_tonearest): Likewise.
35157         (sinh_towardzero_test_data): Likewise.
35158         (sinh_test_towardzero): Likewise.
35159         (sinh_downward_test_data): Likewise.
35160         (sinh_test_downward): Likewise.
35161         (sinh_upward_test_data): Likewise.
35162         (sinh_test_upward): Likewise.
35163         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
35164         (sqrt_test): Use ALL_RM_TEST.
35165         (sqrt_tonearest_test_data): Remove.
35166         (sqrt_test_tonearest): Likewise.
35167         (sqrt_towardzero_test_data): Likewise.
35168         (sqrt_test_towardzero): Likewise.
35169         (sqrt_downward_test_data): Likewise.
35170         (sqrt_test_downward): Likewise.
35171         (sqrt_upward_test_data): Likewise.
35172         (sqrt_test_upward): Likewise.
35173         (tan_test_data): Update call to AUTO_TESTS_f_f.
35174         (tan_test): Use ALL_RM_TEST.
35175         (tan_tonearest_test_data): Remove.
35176         (tan_test_tonearest): Likewise.
35177         (tan_towardzero_test_data): Likewise.
35178         (tan_test_towardzero): Likewise.
35179         (tan_downward_test_data): Likewise.
35180         (tan_test_downward): Likewise.
35181         (tan_upward_test_data): Likewise.
35182         (tan_test_upward): Likewise.
35183         (tanh_test_data): Update call to AUTO_TESTS_f_f.
35184         (tgamma_test_data): Likewise.
35185         (y0_test_data): Likewise.
35186         (y1_test_data): Likewise.
35187         (yn_test_data): Update call to AUTO_TESTS_if_f.
35188         (main): Do not call removed functions.
35189
35190 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35191
35192         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
35193         (ldexp_test_data): Remove.
35194         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
35195         scalbn_test_data.
35196         (scalb_test): Use ALL_RM_TEST.
35197
35198 2014-03-19  Andreas Schwab  <schwab@suse.de>
35199
35200         * nscd/nscd.service: Also invalidate netgroup cache on reload.
35201
35202 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35203
35204         [BZ #16649]
35205         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
35206         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
35207         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
35208         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35209         (__ASSUME_PREADV): Undefine.
35210         (__ASSUME_PWRITEV): Likewise.
35211
35212 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35213
35214         * bits/mman-linux.h: Add comment about non-Linux use.
35215         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
35216         bits/mman-linux.h resting place.
35217
35218         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
35219         * bits/mman-linux.h: ... here.
35220
35221 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35222
35223         * conform/conformtest.pl: Add standard definition when calling C
35224         preprocessor on data files.
35225         (checknamespace): Remove unused variable.
35226
35227 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35228
35229         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
35230         minus_oflow, plus_uflow and minus_uflow in expected results.
35231         * math/libm-test.inc (scalbn_test_data): Add more tests of
35232         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
35233         minus_uflow.
35234         (scalbn_test): Use ALL_RM_TEST.
35235         (scalbln_test_data): Add more tests of negative arguments.  Use
35236         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
35237         (scalbln_test): Use ALL_RM_TEST.
35238
35239 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35240
35241         * scripts/abilist.awk: Ignore symbols marked with .hidden.
35242
35243 2014-03-18  Will Newton  <will.newton@linaro.org>
35244
35245         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
35246         inaccurate comment.
35247
35248 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35249
35250         * Makerules [!subdir] (check-abi): Exit with error status if a
35251         test failed.
35252
35253 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35254
35255         * math/libm-test.inc (nearbyint_test_data): Include all tests used
35256         for rint.  Include results for all rounding modes.
35257         (nearbyint_test): Use ALL_RM_TEST.
35258         (rint_test_data): Include all tests used for nearbyint.
35259
35260 2014-03-17  Will Newton  <will.newton@linaro.org>
35261
35262         * nptl/sysdeps/pthread/pthread.h: Revert previous
35263         change.
35264
35265         * sysdeps/generic/ldsodefs.h: Revert previous
35266         change.
35267
35268         * libio/genops.c: Revert previous change.
35269         * libio/libioP.h: Likewise.
35270         * stdio-common/vfprintf.c: Likewise.
35271
35272         * sysdeps/generic/math_private.h: Revert previous
35273         change.
35274
35275         * sysdeps/generic/math_private.h: Check whether
35276         HAVE_RM_CTX is defined with #ifdef rather
35277         than #if.
35278
35279         * argp/argp-fmtstream.h: Check whether
35280         __STRICT_ANSI__ is defined with #ifdef rather
35281         than #if.
35282         * argp/argp.h: Likewise.
35283
35284         * libio/genops.c: Check whether
35285         _IO_JUMPS_OFFSET is defined with #ifdef rather
35286         than #if.
35287         * libio/libioP.h: Likewise.
35288         * stdio-common/vfprintf.c: Likewise.
35289
35290         * sysdeps/generic/ldsodefs.h: Check whether
35291         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
35292         than #if.
35293
35294         * nptl/sysdeps/pthread/pthread.h: Check
35295         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
35296         its value.
35297
35298 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
35299
35300         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
35301         setting O_APPEND.
35302         * libio/tst-ftell-active-handler.c (do_append_test): Add a
35303         test case.
35304
35305         [BZ #16680]
35306         * libio/fileops.c (_IO_file_open): Seek to end of file but
35307         don't cache the offset.
35308         (get_file_offset): Remove function.
35309         (do_ftell): Use cached offset when available.
35310         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
35311         don't cache the offset.
35312         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
35313         case.
35314         (do_one_test): Call it.
35315         (do_ftell_test): Fix up expected old offset for a+ mode.
35316         * libio/wfileops.c (do_ftell_wide): Used cached offset when
35317         available.
35318
35319         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
35320         up test status with function return status.
35321         (do_write_test): Likewise.
35322         (do_append_test): Likewise.
35323
35324         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
35325         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
35326         Remove.
35327
35328 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35329
35330         * math/gen-libm-test.pl (parse_args): Handle results specified for
35331         each rounding mode separately.
35332         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
35333         tests and results from lrint_tonearest_test_data,
35334         lrint_towardzero_test_data, lrint_downward_test_data and
35335         lrint_upward_test_data.
35336         (lrint_test): Use ALL_RM_TEST.
35337         (lrint_tonearest_test_data): Remove.
35338         (lrint_test_tonearest): Likewise.
35339         (lrint_towardzero_test_data): Likewise.
35340         (lrint_test_towardzero): Likewise.
35341         (lrint_downward_test_data): Likewise.
35342         (lrint_test_downward): Likewise.
35343         (lrint_upward_test_data): Likewise.
35344         (lrint_test_upward): Likewise.
35345         (llrint_test_data): Merge in per-rounding-mode tests and results
35346         from llrint_tonearest_test_data, llrint_towardzero_test_data,
35347         llrint_downward_test_data and llrint_upward_test_data.
35348         (llrint_test): Use ALL_RM_TEST.
35349         (llrint_tonearest_test_data): Remove.
35350         (llrint_test_tonearest): Likewise.
35351         (llrint_towardzero_test_data): Likewise.
35352         (llrint_test_towardzero): Likewise.
35353         (llrint_downward_test_data): Likewise.
35354         (llrint_test_downward): Likewise.
35355         (llrint_upward_test_data): Likewise.
35356         (llrint_test_upward): Likewise.
35357         (rint_test_data): Merge in per-rounding-mode tests and results
35358         from rint_tonearest_test_data, rint_towardzero_test_data,
35359         rint_downward_test_data and rint_upward_test_data.  Add
35360         per-rounding-mode results for tests not in those arrays.
35361         (rint_test): Use ALL_RM_TEST.
35362         (rint_tonearest_test_data): Remove.
35363         (rint_test_tonearest): Likewise.
35364         (rint_towardzero_test_data): Likewise.
35365         (rint_test_towardzero): Likewise.
35366         (rint_downward_test_data): Likewise.
35367         (rint_test_downward): Likewise.
35368         (rint_upward_test_data): Likewise.
35369         (rint_test_upward): Likewise.
35370         (main): Don't call removed functions.
35371
35372 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35373
35374         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
35375         "Compiled on ..." crapola.  It is anti-useful.
35376
35377 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
35378
35379         * scripts/evaluate-test.sh: Handle fourth argument to determine
35380         whether test run should stop on failure.
35381         * Makeconfig (stop-on-test-failure): New variable.
35382         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
35383         $(stop-on-test-failure).
35384         * Makefile (tests): Give a summary of results from testing and
35385         exit with failure status if they include an ERROR or FAIL.
35386         (xtests): Likewise.
35387         * manual/install.texi (Configuring and compiling): Mention
35388         stop-on-test-failure=y.
35389         * INSTALL: Regenerated.
35390
35391 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35392
35393         * scripts/versionlist.awk: New file.
35394         * Makerules [$(build-shared) = yes]
35395         (postclean-generated): Add Versions.def, not Versions.def.v and
35396         Versions.def.v.i.
35397         ($(common-objpfx)Versions.def.v.i): Target removed.
35398         ($(common-objpfx)Versions.def): New target.
35399         ($(common-objpfx)Versions.all): Depend on that rather that
35400         $(common-objpfx)Versions.def.v.
35401         * Versions.def: File removed.
35402
35403         * Makeconfig (+gccwarn): Add -Wundef.
35404         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
35405         a dl-sysdep.h breaking its contract.
35406         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
35407         * include/stackinfo.h: New file.
35408         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
35409         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
35410         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
35411         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
35412         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
35413         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
35414         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35415         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35416         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35417         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35418         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35419         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
35420         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35421         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35422         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35423
35424 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35425
35426         [BZ #16707]
35427         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
35428         implementation.
35429         * math/libm-test.inc (round_test_data): Add more tests.
35430
35431         [BZ #16706]
35432         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
35433         implementation.
35434         * math/libm-test.inc (nearbyint_test_data): Add more tests.
35435
35436         [BZ #16701]
35437         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
35438         implementation.
35439         * math/libm-test.inc (ceil_test_data): Add more tests.
35440
35441         * math/libm-test.inc (trunc_test_data): Add more tests related to
35442         BZ#16414.
35443
35444 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35445
35446         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35447         with #if rather than #ifdef.
35448         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35449
35450 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35451
35452         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35453         first.  Disable AVX-512 GCC support if assembler doesn't support
35454         it.
35455         * sysdeps/x86_64/configure: Regenerated.
35456
35457 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35458
35459         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35460         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35461         (__old_pthread_attr_setstack): Likewise.
35462         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35463         [!_STACK_GROWS_DOWN]: Likewise.
35464
35465 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35466
35467         * config.make.in (have-bash2): Delete.
35468         * configure.ac (libc_cv_have_bash2): Delete.
35469         * configure: Regenerate.
35470         * elf/Makefile (common-ldd-rewrite): Rename to ...
35471         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35472         (sh-ldd-rewrite): Delete.
35473         (bash-ldd-rewrite): Delete.
35474         (have-bash2): Delete checks.
35475         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35476         ldd-rewrite.
35477
35478         * config.make.in (have-ksh): Delete.
35479         (KSH): Delete.
35480         * configure.ac (libc_cv_have_ksh): Delete.
35481         * configure: Regenerate.
35482
35483         * elf/Makefile: Delete $(have-ksh) check.
35484         ($(objpfx)sotruss): Change KSH to BASH.
35485         * elf/sotruss.ksh: Rename to ...
35486         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35487         function style to match POSIX.  Drop ksh vim mode setting.
35488
35489         * manual/time.texi (Specifying the Time Zone with TZ): Change
35490         Tuesday to Thursday.
35491
35492         * debug/tst-longjmp_chk2.c: Update header comment.
35493         (stackoverflow_handler): Add comment.  Call assert on pass value.
35494
35495 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35496
35497         [BZ #16194]
35498         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35499         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35500         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35501         (La_x86_64_vector): Add zmm.
35502         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35503         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35504         ($(objpfx)tst-audit10): New target.
35505         ($(objpfx)tst-audit10.out): Likewise.
35506         (tst-audit10-ENV): New.
35507         (AVX512-CFLAGS): Likewise.
35508         (CFLAGS-tst-audit10.c): Likewise.
35509         (CFLAGS-tst-auditmod10a.c): Likewise.
35510         (CFLAGS-tst-auditmod10b.c): Likewise.
35511         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35512         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35513         * sysdeps/x86_64/configure: Regenerated.
35514         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35515         AVX-512 zmm register support.
35516         (_dl_x86_64_save_sse): Likewise.
35517         (_dl_x86_64_restore_sse): Likewise.
35518         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35519         size vector registers.
35520         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35521         (ZMM_SIZE): Likewise.
35522         * sysdeps/x86_64/tst-audit10.c: New file.
35523         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35524         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35525
35526 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35527
35528         * configure.ac (HAVE_EHDR_START): New check.
35529         * configure: Regenerated.
35530         * config.h.in (HAVE_EHDR_START): New #undef.
35531         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35532         assuming the lowest-addressed segment maps the start of the file.
35533
35534 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35535
35536         * INSTALL: Regenerated.
35537
35538 2014-03-13  Will Newton  <will.newton@linaro.org>
35539
35540         * manual/setjmp.texi (System V contexts): Improve
35541         clarity and grammar of documentation.
35542
35543 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35544
35545         [BZ #16381]
35546         * elf/Makefile (tests): Add tst-pie2.
35547         (tests-pie): Add tst-pie2.
35548         * elf/tst-pie2.c: New file.
35549         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35550         for ET_EXEC.
35551         * elf/rtld.c (map_doit): Load executable as lt_executable.
35552         (dl_main): Likewise.
35553
35554 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35555
35556         [BZ #16642]
35557         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35558         (__ASSUME_PSELECT): Undefine.
35559
35560 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35561
35562         [BZ #16689]
35563         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35564         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35565         static build.
35566         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35567         selector for static builds.
35568
35569 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35570
35571         [BZ #16695]
35572         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35573         key in the buffer.
35574
35575 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35576
35577         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35578         IFUNC selector for static builds.
35579
35580 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35581
35582         * sysdeps/mips/math_private.h [__mips_hard_float]
35583         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35584         libc_feresetround_mips_ctx.
35585         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35586         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35587         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35588
35589         [BZ #16677]
35590         * math/s_nextafter.c (__nextafter): Do not return value from
35591         overflowing computation.
35592         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35593         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35594         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35595         Likewise.
35596         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35597         Likewise.
35598         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35599         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35600
35601 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35602
35603         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35604         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35605         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35606         the new mov targetting sp.
35607
35608 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35609
35610         [BZ #16683]
35611         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35612         Define it for static builds as well.
35613         (NO_BZERO_IMPL): Likewise.
35614
35615 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35616
35617         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35618         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35619         multiarch strspn for PPC64.
35620         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35621         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35622         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35623         (__libc_ifunc_impl_list): Likewise.
35624         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35625         multiarch optimizations
35626         * string/strspn.c (strspn): Using macro to redefine symbol name.
35627
35628 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35629             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35630
35631         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35632         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35633         multiarch strncat for PPC64.
35634         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35635         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35636         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35637         (__libc_ifunc_impl_list): Likewise.
35638         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35639         multiarch optimizations
35640
35641 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35642
35643         [BZ #16639]
35644         * nscd/nscd.service: Make service type forking.
35645
35646 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35647
35648         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35649         sign in non default rounding modes.
35650         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35651
35652 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35653
35654         * math/libm-test.inc (ALL_RM_TEST): New macro.
35655         (ceil_test): Use ALL_RM_TEST.
35656         (cimag_test): Likewise.
35657         (conj_test): Likewise.
35658         (copysign_test): Likewise.
35659         (cproj_test): Likewise.
35660         (creal_test): Likewise.
35661         (fabs_test): Likewise.
35662         (floor_test): Likewise.
35663         (fmax_test): Likewise.
35664         (fmin_test): Likewise.
35665         (fmod_test): Likewise.
35666         (fpclassify_test): Likewise.
35667         (frexp_test): Likewise.
35668         (ilogb_test): Likewise.
35669         (isfinite_test): Likewise.
35670         (finite_test): Likewise.
35671         (isgreater_test): Likewise.
35672         (isgreaterequal_test): Likewise.
35673         (isinf_test): Likewise.
35674         (isless_test): Likewise.
35675         (islessequal_test): Likewise.
35676         (islessgreater_test): Likewise.
35677         (isnan_test): Likewise.
35678         (isnormal_test): Likewise.
35679         (issignaling_test): Likewise.
35680         (isunordered_test): Likewise.
35681         (logb_test): Likewise.
35682         (logb_downward_test_data): Remove.
35683         (logb_test_downward): Likewise.
35684         (lround_test): Use ALL_RM_TEST.
35685         (llround_test): Likewise.
35686         (modf_test): Likewise.
35687         (nexttoward_test): Likewise.
35688         (remainder_test): Likewise.
35689         (drem_test): Likewise.
35690         (remainder_tonearest_test_data): Likewise.
35691         (remainder_test_tonearest): Likewise.
35692         (drem_test_tonearest): Likewise.
35693         (remainder_towardzero_test_data): Likewise.
35694         (remainder_test_towardzero): Likewise.
35695         (drem_test_towardzero): Likewise.
35696         (remainder_downward_test_data): Likewise.
35697         (remainder_test_downward): Likewise.
35698         (drem_test_downward): Likewise.
35699         (remainder_upward_test_data): Likewise.
35700         (remainder_test_upward): Likewise.
35701         (drem_test_upward): Likewise.
35702         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35703         (round_test): Use ALL_RM_TEST.
35704         (signbit_test): Likewise.
35705         (trunc_test): Likewise.
35706         (significand_test): Likewise.
35707         (main): Don't call removed functions.
35708
35709 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35710
35711         [BZ #16674]
35712         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35713         || __USE_XOPEN2K8].
35714         (ILL_ILLOPN): Likewise.
35715         (ILL_ILLADR): Likewise.
35716         (ILL_ILLTRP): Likewise.
35717         (ILL_PRVOPC): Likewise.
35718         (ILL_PRVREG): Likewise.
35719         (ILL_COPROC): Likewise.
35720         (ILL_BADSTK): Likewise.
35721         (FPE_INTDIV): Likewise.
35722         (FPE_INTOVF): Likewise.
35723         (FPE_FLTDIV): Likewise.
35724         (FPE_FLTOVF): Likewise.
35725         (FPE_FLTUND): Likewise.
35726         (FPE_FLTRES): Likewise.
35727         (FPE_FLTINV): Likewise.
35728         (FPE_FLTSUB): Likewise.
35729         (SEGV_MAPERR): Likewise.
35730         (SEGV_ACCERR): Likewise.
35731         (BUS_ADRALN): Likewise.
35732         (BUS_ADRERR): Likewise.
35733         (BUS_OBJERR): Likewise.
35734         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35735         (TRAP_TRACE): Likewise.
35736         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35737         __USE_XOPEN2K8].
35738         (CLD_KILLED): Likewise.
35739         (CLD_DUMPED): Likewise.
35740         (CLD_TRAPPED): Likewise.
35741         (CLD_STOPPED): Likewise.
35742         (CLD_CONTINUED): Likewise.
35743         (POLL_IN): Likewise.
35744         (POLL_OUT): Likewise.
35745         (POLL_MSG): Likewise.
35746         (POLL_ERR): Likewise.
35747         (POLL_PRI): Likewise.
35748         (POLL_HUP): Likewise.
35749         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35750         Likewise.
35751         (ILL_ILLOPN): Likewise.
35752         (ILL_ILLADR): Likewise.
35753         (ILL_ILLTRP): Likewise.
35754         (ILL_PRVOPC): Likewise.
35755         (ILL_PRVREG): Likewise.
35756         (ILL_COPROC): Likewise.
35757         (ILL_BADSTK): Likewise.
35758         (FPE_INTDIV): Likewise.
35759         (FPE_INTOVF): Likewise.
35760         (FPE_FLTDIV): Likewise.
35761         (FPE_FLTOVF): Likewise.
35762         (FPE_FLTUND): Likewise.
35763         (FPE_FLTRES): Likewise.
35764         (FPE_FLTINV): Likewise.
35765         (FPE_FLTSUB): Likewise.
35766         (SEGV_MAPERR): Likewise.
35767         (SEGV_ACCERR): Likewise.
35768         (BUS_ADRALN): Likewise.
35769         (BUS_ADRERR): Likewise.
35770         (BUS_OBJERR): Likewise.
35771         (BUS_MCEERR_AR): Likewise.
35772         (BUS_MCEERR_AO): Likewise.
35773         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35774         (TRAP_TRACE): Likewise.
35775         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35776         __USE_XOPEN2K8].
35777         (CLD_KILLED): Likewise.
35778         (CLD_DUMPED): Likewise.
35779         (CLD_TRAPPED): Likewise.
35780         (CLD_STOPPED): Likewise.
35781         (CLD_CONTINUED): Likewise.
35782         (POLL_IN): Likewise.
35783         (POLL_OUT): Likewise.
35784         (POLL_MSG): Likewise.
35785         (POLL_ERR): Likewise.
35786         (POLL_PRI): Likewise.
35787         (POLL_HUP): Likewise.
35788         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35789         (ILL_ILLOPN): Likewise.
35790         (ILL_ILLADR): Likewise.
35791         (ILL_ILLTRP): Likewise.
35792         (ILL_PRVOPC): Likewise.
35793         (ILL_PRVREG): Likewise.
35794         (ILL_COPROC): Likewise.
35795         (ILL_BADSTK): Likewise.
35796         (FPE_INTDIV): Likewise.
35797         (FPE_INTOVF): Likewise.
35798         (FPE_FLTDIV): Likewise.
35799         (FPE_FLTOVF): Likewise.
35800         (FPE_FLTUND): Likewise.
35801         (FPE_FLTRES): Likewise.
35802         (FPE_FLTINV): Likewise.
35803         (FPE_FLTSUB): Likewise.
35804         (SEGV_MAPERR): Likewise.
35805         (SEGV_ACCERR): Likewise.
35806         (BUS_ADRALN): Likewise.
35807         (BUS_ADRERR): Likewise.
35808         (BUS_OBJERR): Likewise.
35809         (BUS_MCEERR_AR): Likewise.
35810         (BUS_MCEERR_AO): Likewise.
35811         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35812         (TRAP_TRACE): Likewise.
35813         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35814         __USE_XOPEN2K8].
35815         (CLD_KILLED): Likewise.
35816         (CLD_DUMPED): Likewise.
35817         (CLD_TRAPPED): Likewise.
35818         (CLD_STOPPED): Likewise.
35819         (CLD_CONTINUED): Likewise.
35820         (POLL_IN): Likewise.
35821         (POLL_OUT): Likewise.
35822         (POLL_MSG): Likewise.
35823         (POLL_ERR): Likewise.
35824         (POLL_PRI): Likewise.
35825         (POLL_HUP): Likewise.
35826         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35827         Likewise.
35828         (ILL_ILLOPN): Likewise.
35829         (ILL_ILLADR): Likewise.
35830         (ILL_ILLTRP): Likewise.
35831         (ILL_PRVOPC): Likewise.
35832         (ILL_PRVREG): Likewise.
35833         (ILL_COPROC): Likewise.
35834         (ILL_BADSTK): Likewise.
35835         (ILL_BADIADDR): Likewise.
35836         (ILL_BREAK): Likewise.
35837         (FPE_INTDIV): Likewise.
35838         (FPE_INTOVF): Likewise.
35839         (FPE_FLTDIV): Likewise.
35840         (FPE_FLTOVF): Likewise.
35841         (FPE_FLTUND): Likewise.
35842         (FPE_FLTRES): Likewise.
35843         (FPE_FLTINV): Likewise.
35844         (FPE_FLTSUB): Likewise.
35845         (FPE_DECOVF): Likewise.
35846         (FPE_DECDIV): Likewise.
35847         (FPE_DECERR): Likewise.
35848         (FPE_INVASC): Likewise.
35849         (FPE_INVDEC): Likewise.
35850         (SEGV_MAPERR): Likewise.
35851         (SEGV_ACCERR): Likewise.
35852         (SEGV_PSTKOVF): Likewise.
35853         (BUS_ADRALN): Likewise.
35854         (BUS_ADRERR): Likewise.
35855         (BUS_OBJERR): Likewise.
35856         (BUS_MCEERR_AR): Likewise.
35857         (BUS_MCEERR_AO): Likewise.
35858         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35859         (TRAP_TRACE): Likewise.
35860         (TRAP_BRANCH): Likewise.
35861         (TRAP_HWBKPT): Likewise.
35862         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35863         __USE_XOPEN2K8].
35864         (CLD_KILLED): Likewise.
35865         (CLD_DUMPED): Likewise.
35866         (CLD_TRAPPED): Likewise.
35867         (CLD_STOPPED): Likewise.
35868         (CLD_CONTINUED): Likewise.
35869         (POLL_IN): Likewise.
35870         (POLL_OUT): Likewise.
35871         (POLL_MSG): Likewise.
35872         (POLL_ERR): Likewise.
35873         (POLL_PRI): Likewise.
35874         (POLL_HUP): Likewise.
35875         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
35876         (ILL_ILLOPN): Likewise.
35877         (ILL_ILLADR): Likewise.
35878         (ILL_ILLTRP): Likewise.
35879         (ILL_PRVOPC): Likewise.
35880         (ILL_PRVREG): Likewise.
35881         (ILL_COPROC): Likewise.
35882         (ILL_BADSTK): Likewise.
35883         (FPE_INTDIV): Likewise.
35884         (FPE_INTOVF): Likewise.
35885         (FPE_FLTDIV): Likewise.
35886         (FPE_FLTOVF): Likewise.
35887         (FPE_FLTUND): Likewise.
35888         (FPE_FLTRES): Likewise.
35889         (FPE_FLTINV): Likewise.
35890         (FPE_FLTSUB): Likewise.
35891         (SEGV_MAPERR): Likewise.
35892         (SEGV_ACCERR): Likewise.
35893         (BUS_ADRALN): Likewise.
35894         (BUS_ADRERR): Likewise.
35895         (BUS_OBJERR): Likewise.
35896         (BUS_MCEERR_AR): Likewise.
35897         (BUS_MCEERR_AO): Likewise.
35898         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35899         (TRAP_TRACE): Likewise.
35900         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35901         __USE_XOPEN2K8].
35902         (CLD_KILLED): Likewise.
35903         (CLD_DUMPED): Likewise.
35904         (CLD_TRAPPED): Likewise.
35905         (CLD_STOPPED): Likewise.
35906         (CLD_CONTINUED): Likewise.
35907         (POLL_IN): Likewise.
35908         (POLL_OUT): Likewise.
35909         (POLL_MSG): Likewise.
35910         (POLL_ERR): Likewise.
35911         (POLL_PRI): Likewise.
35912         (POLL_HUP): Likewise.
35913         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
35914         (ILL_ILLOPN): Likewise.
35915         (ILL_ILLADR): Likewise.
35916         (ILL_ILLTRP): Likewise.
35917         (ILL_PRVOPC): Likewise.
35918         (ILL_PRVREG): Likewise.
35919         (ILL_COPROC): Likewise.
35920         (ILL_BADSTK): Likewise.
35921         (FPE_INTDIV): Likewise.
35922         (FPE_INTOVF): Likewise.
35923         (FPE_FLTDIV): Likewise.
35924         (FPE_FLTOVF): Likewise.
35925         (FPE_FLTUND): Likewise.
35926         (FPE_FLTRES): Likewise.
35927         (FPE_FLTINV): Likewise.
35928         (FPE_FLTSUB): Likewise.
35929         (SEGV_MAPERR): Likewise.
35930         (SEGV_ACCERR): Likewise.
35931         (BUS_ADRALN): Likewise.
35932         (BUS_ADRERR): Likewise.
35933         (BUS_OBJERR): Likewise.
35934         (BUS_MCEERR_AR): Likewise.
35935         (BUS_MCEERR_AO): Likewise.
35936         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35937         (TRAP_TRACE): Likewise.
35938         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35939         __USE_XOPEN2K8].
35940         (CLD_KILLED): Likewise.
35941         (CLD_DUMPED): Likewise.
35942         (CLD_TRAPPED): Likewise.
35943         (CLD_STOPPED): Likewise.
35944         (CLD_CONTINUED): Likewise.
35945         (POLL_IN): Likewise.
35946         (POLL_OUT): Likewise.
35947         (POLL_MSG): Likewise.
35948         (POLL_ERR): Likewise.
35949         (POLL_PRI): Likewise.
35950         (POLL_HUP): Likewise.
35951         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
35952         (ILL_ILLOPN): Likewise.
35953         (ILL_ILLADR): Likewise.
35954         (ILL_ILLTRP): Likewise.
35955         (ILL_PRVOPC): Likewise.
35956         (ILL_PRVREG): Likewise.
35957         (ILL_COPROC): Likewise.
35958         (ILL_BADSTK): Likewise.
35959         (FPE_INTDIV): Likewise.
35960         (FPE_INTOVF): Likewise.
35961         (FPE_FLTDIV): Likewise.
35962         (FPE_FLTOVF): Likewise.
35963         (FPE_FLTUND): Likewise.
35964         (FPE_FLTRES): Likewise.
35965         (FPE_FLTINV): Likewise.
35966         (FPE_FLTSUB): Likewise.
35967         (SEGV_MAPERR): Likewise.
35968         (SEGV_ACCERR): Likewise.
35969         (BUS_ADRALN): Likewise.
35970         (BUS_ADRERR): Likewise.
35971         (BUS_OBJERR): Likewise.
35972         (BUS_MCEERR_AR): Likewise.
35973         (BUS_MCEERR_AO): Likewise.
35974         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35975         (TRAP_TRACE): Likewise.
35976         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35977         __USE_XOPEN2K8].
35978         (CLD_KILLED): Likewise.
35979         (CLD_DUMPED): Likewise.
35980         (CLD_TRAPPED): Likewise.
35981         (CLD_STOPPED): Likewise.
35982         (CLD_CONTINUED): Likewise.
35983         (POLL_IN): Likewise.
35984         (POLL_OUT): Likewise.
35985         (POLL_MSG): Likewise.
35986         (POLL_ERR): Likewise.
35987         (POLL_PRI): Likewise.
35988         (POLL_HUP): Likewise.
35989         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
35990         (ILL_ILLOPN): Likewise.
35991         (ILL_ILLADR): Likewise.
35992         (ILL_ILLTRP): Likewise.
35993         (ILL_PRVOPC): Likewise.
35994         (ILL_PRVREG): Likewise.
35995         (ILL_COPROC): Likewise.
35996         (ILL_BADSTK): Likewise.
35997         (ILL_DBLFLT): Likewise.
35998         (ILL_HARDWALL): Likewise.
35999         (FPE_INTDIV): Likewise.
36000         (FPE_INTOVF): Likewise.
36001         (FPE_FLTDIV): Likewise.
36002         (FPE_FLTOVF): Likewise.
36003         (FPE_FLTUND): Likewise.
36004         (FPE_FLTRES): Likewise.
36005         (FPE_FLTINV): Likewise.
36006         (FPE_FLTSUB): Likewise.
36007         (SEGV_MAPERR): Likewise.
36008         (SEGV_ACCERR): Likewise.
36009         (BUS_ADRALN): Likewise.
36010         (BUS_ADRERR): Likewise.
36011         (BUS_OBJERR): Likewise.
36012         (BUS_MCEERR_AR): Likewise.
36013         (BUS_MCEERR_AO): Likewise.
36014         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36015         (TRAP_TRACE): Likewise.
36016         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36017         __USE_XOPEN2K8].
36018         (CLD_KILLED): Likewise.
36019         (CLD_DUMPED): Likewise.
36020         (CLD_TRAPPED): Likewise.
36021         (CLD_STOPPED): Likewise.
36022         (CLD_CONTINUED): Likewise.
36023         (POLL_IN): Likewise.
36024         (POLL_OUT): Likewise.
36025         (POLL_MSG): Likewise.
36026         (POLL_ERR): Likewise.
36027         (POLL_PRI): Likewise.
36028         (POLL_HUP): Likewise.
36029         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
36030         (ILL_ILLOPN): Likewise.
36031         (ILL_ILLADR): Likewise.
36032         (ILL_ILLTRP): Likewise.
36033         (ILL_PRVOPC): Likewise.
36034         (ILL_PRVREG): Likewise.
36035         (ILL_COPROC): Likewise.
36036         (ILL_BADSTK): Likewise.
36037         (FPE_INTDIV): Likewise.
36038         (FPE_INTOVF): Likewise.
36039         (FPE_FLTDIV): Likewise.
36040         (FPE_FLTOVF): Likewise.
36041         (FPE_FLTUND): Likewise.
36042         (FPE_FLTRES): Likewise.
36043         (FPE_FLTINV): Likewise.
36044         (FPE_FLTSUB): Likewise.
36045         (SEGV_MAPERR): Likewise.
36046         (SEGV_ACCERR): Likewise.
36047         (BUS_ADRALN): Likewise.
36048         (BUS_ADRERR): Likewise.
36049         (BUS_OBJERR): Likewise.
36050         (BUS_MCEERR_AR): Likewise.
36051         (BUS_MCEERR_AO): Likewise.
36052         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36053         (TRAP_TRACE): Likewise.
36054         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36055         __USE_XOPEN2K8].
36056         (CLD_KILLED): Likewise.
36057         (CLD_DUMPED): Likewise.
36058         (CLD_TRAPPED): Likewise.
36059         (CLD_STOPPED): Likewise.
36060         (CLD_CONTINUED): Likewise.
36061         (POLL_IN): Likewise.
36062         (POLL_OUT): Likewise.
36063         (POLL_MSG): Likewise.
36064         (POLL_ERR): Likewise.
36065         (POLL_PRI): Likewise.
36066         (POLL_HUP): Likewise.
36067         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
36068         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36069
36070         [BZ #16670]
36071         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
36072         before #include of <time.h>.
36073         [!__USE_XOPEN2K] (__need_timespec): Likewise.
36074         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
36075         (test-xfail-UNIX98/sched.h/conform): Likewise.
36076
36077 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
36078
36079         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
36080         error absence of trapping exception support.
36081         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
36082
36083 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
36084
36085         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
36086         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
36087         * timezone/Makefile (testdata): Move definition above include of
36088         Rules.
36089         (test-zones): New variable.
36090         (tests-special): Add zone files.
36091         (build-testdata): Use $(evaluate-test).
36092
36093         * elf/Makefile (tests-special): Rename tests to end with .out.
36094         ($(objpfx)noload-mem): Likewise.
36095         ($(objpfx)tst-leaks1-mem): Likewise.
36096         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
36097         * iconv/Makefile (xtests-special): Change test-iconvconfig to
36098         $(objpfx)test-iconvconfig.out.
36099         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
36100         set -e inside subshell and redirect output to file.
36101         * iconvdata/Makefile (generated): Rename tests to end with .out.
36102         Correct type.
36103         (tests-special): Rename tests to end with .out.
36104         ($(objpfx)mtrace-tst-loading): Likewise.
36105         * intl/Makefile (generated): Likewise.
36106         (tests-special): Likewise.
36107         ($(objpfx)mtrace-tst-gettext): Likewise.
36108         * misc/Makefile (generated): Likewise.
36109         (tests-special): Likewise.
36110         ($(objpfx)tst-error1-mem): Likewise.
36111         * nptl/Makefile (tests-special): Likewise.
36112         ($(objpfx)tst-stack3-mem): Likewise.
36113         (generated): Likewise.
36114         * posix/Makefile (generated): Likewise.
36115         (tests-special): Likewise.
36116         (xtests-special): Likewise.
36117         ($(objpfx)tst-fnmatch-mem): Likewise.
36118         ($(objpfx)bug-regex2-mem): Likewise.
36119         ($(objpfx)bug-regex14-mem): Likewise.
36120         ($(objpfx)bug-regex21-mem): Likewise.
36121         ($(objpfx)bug-regex31-mem): Likewise.
36122         ($(objpfx)tst-vfork3-mem): Likewise.
36123         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36124         ($(objpfx)tst-pcre-mem): Likewise.
36125         ($(objpfx)tst-boost-mem): Likewise.
36126         ($(objpfx)bug-ga2-mem): Likewise.
36127         ($(objpfx)bug-glob2-mem): Likewise.
36128         * resolv/Makefile (generate): Likewise.
36129         (tests-special): Likewise.
36130         (xtests-special): Likewise.
36131         (generated): Likewise.
36132         ($(objpfx)mtrace-tst-leaks): Likewise.
36133         ($(objpfx)mtrace-tst-leaks2): Likewise.
36134
36135         * scripts/merge-test-results.sh: New file.
36136         * Makefile (tests-special-notdir): New variable.
36137         (tests): Run merge-test-results.sh.
36138         (xtests): Likewise.
36139         * Rules (tests-special-notdir): New variable.
36140         (xtests-special-notdir): Likewise.
36141         (tests): Run merge-test-results.sh
36142         (xtests): Likewise.
36143
36144         * Makeconfig (test-xfail-name): New variable.
36145         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
36146         compute variable name for expected failures.
36147         * conform/Makefile (conformtest-headers-data): New variable.
36148         (conformtest-standards): Likewise.
36149         (conformtest-headers-ISO): Likewise.
36150         (conformtest-headers-ISO99): Likewise.
36151         (conformtest-headers-ISO11): Likewise.
36152         (conformtest-headers-POSIX): Likewise.
36153         (conformtest-headers-XPG3): Likewise.
36154         (conformtest-headers-XPG4): Likewise.
36155         (conformtest-headers-UNIX98): Likewise.
36156         (conformtest-headers-XOPEN2K): Likewise.
36157         (conformtest-headers-POSIX2008): Likewise.
36158         (conformtest-headers-XOPEN2K8): Likewise.
36159         (conformtest-header-list-base): Likewise.
36160         (conformtest-header-list-tests): Likewise.
36161         (conformtest-header-base): Likewise.
36162         (conformtest-header-tests): Likewise.
36163         (tests-special): Add $(conformtest-header-list-tests).  If
36164         [$(fast-check) && !$(cross-compiling)], add
36165         $(conformtest-header-tests) instead of
36166         $(objpfx)run-conformtest.out.
36167         (generated): Add $(conformtest-header-list-base).  If
36168         [$(fast-check) && !$(cross-compiling)], add
36169         $(conformtest-header-base).  Remove previous setting.
36170         ($(conformtest-header-list-tests)): New target.
36171         (test-xfail-run-conformtest): Remove variable.
36172         ($(objpfx)run-conformtest.out): Remove target.
36173         (test-xfail-ISO11/complex.h/conform): New variable.
36174         (test-xfail-ISO11/stdalign.h/conform): Likewise.
36175         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
36176         (test-xfail-XPG3/varargs.h/conform): Likewise.
36177         (test-xfail-XPG4/varargs.h/conform): Likewise.
36178         (test-xfail-UNIX98/varargs.h/conform): Likewise.
36179         (test-xfail-XPG4/ndbm.h/conform): Likewise.
36180         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
36181         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
36182         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
36183         (test-xfail-XPG3/fcntl.h/conform): Likewise.
36184         (test-xfail-XPG3/ftw.h/conform): Likewise.
36185         (test-xfail-XPG3/grp.h/conform): Likewise.
36186         (test-xfail-XPG3/langinfo.h/conform): Likewise.
36187         (test-xfail-XPG3/limits.h/conform): Likewise.
36188         (test-xfail-XPG3/pwd.h/conform): Likewise.
36189         (test-xfail-XPG3/search.h/conform): Likewise.
36190         (test-xfail-XPG3/signal.h/conform): Likewise.
36191         (test-xfail-XPG3/stdio.h/conform): Likewise.
36192         (test-xfail-XPG3/stdlib.h/conform): Likewise.
36193         (test-xfail-XPG3/string.h/conform): Likewise.
36194         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
36195         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
36196         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
36197         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
36198         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
36199         (test-xfail-XPG3/sys/types.h/conform): Likewise.
36200         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
36201         (test-xfail-XPG3/termios.h/conform): Likewise.
36202         (test-xfail-XPG3/time.h/conform): Likewise.
36203         (test-xfail-XPG3/unistd.h/conform): Likewise.
36204         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
36205         (test-xfail-XPG4/fcntl.h/conform): Likewise.
36206         (test-xfail-XPG4/langinfo.h/conform): Likewise.
36207         (test-xfail-XPG4/netdb.h/conform): Likewise.
36208         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
36209         (test-xfail-XPG4/signal.h/conform): Likewise.
36210         (test-xfail-XPG4/stdio.h/conform): Likewise.
36211         (test-xfail-XPG4/stdlib.h/conform): Likewise.
36212         (test-xfail-XPG4/stropts.h/conform): Likewise.
36213         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
36214         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
36215         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
36216         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
36217         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
36218         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
36219         (test-xfail-XPG4/sys/time.h/conform): Likewise.
36220         (test-xfail-XPG4/sys/types.h/conform): Likewise.
36221         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
36222         (test-xfail-XPG4/termios.h/conform): Likewise.
36223         (test-xfail-XPG4/ucontext.h/conform): Likewise.
36224         (test-xfail-XPG4/unistd.h/conform): Likewise.
36225         (test-xfail-XPG4/utmpx.h/conform): Likewise.
36226         (test-xfail-POSIX/sched.h/conform): Likewise.
36227         (test-xfail-POSIX/signal.h/conform): Likewise.
36228         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36229         (test-xfail-POSIX/tar.h/conform): Likewise.
36230         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
36231         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
36232         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
36233         (test-xfail-UNIX98/netdb.h/conform): Likewise.
36234         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
36235         (test-xfail-UNIX98/sched.h/conform): Likewise.
36236         (test-xfail-UNIX98/signal.h/conform): Likewise.
36237         (test-xfail-UNIX98/stdio.h/conform): Likewise.
36238         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
36239         (test-xfail-UNIX98/stropts.h/conform): Likewise.
36240         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
36241         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
36242         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
36243         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
36244         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
36245         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
36246         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
36247         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
36248         (test-xfail-UNIX98/unistd.h/conform): Likewise.
36249         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
36250         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
36251         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
36252         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
36253         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
36254         (test-xfail-XOPEN2K/math.h/conform): Likewise.
36255         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
36256         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
36257         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
36258         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
36259         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
36260         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
36261         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
36262         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
36263         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
36264         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
36265         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
36266         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
36267         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
36268         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36269         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
36270         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
36271         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36272         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
36273         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
36274         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
36275         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
36276         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
36277         (test-xfail-POSIX2008/signal.h/conform): Likewise.
36278         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
36279         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
36280         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36281         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
36282         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
36283         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
36284         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
36285         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
36286         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
36287         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36288         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
36289         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
36290         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
36291         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
36292         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
36293         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
36294         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
36295         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
36296         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
36297         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36298         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
36299         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
36300         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
36301         (conformtest-cc-flags): Likewise.
36302         ($(conformtest-header-tests): New target.
36303         * conform/check-header-lists.sh: New file.
36304         * conform/run-conformtest.sh: Remove.
36305
36306         * conform/conformtest.pl: Allow ' and \ in values given for
36307         constants.
36308         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
36309         inclusion.
36310         [POSIX] (sys/types.h): Likewise.
36311         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
36312         inclusion.
36313         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
36314         inclusion.
36315         * conform/data/signal.h-data (SIGIO): Remove expectation.
36316         [XPG3] (SIGBUS): Do not expect.
36317         [POSIX || XPG3] (SIGPOLL): Likewise.
36318         [POSIX || XPG3] (SIGPROF): Likewise.
36319         [POSIX || XPG3] (SIGSYS): Likewise.
36320         [XPG3] (SIGTRAP): Likewise.
36321         [POSIX || XPG3] (SIGURG): Likewise.
36322         [POSIX || XPG3] (SIGVTALRM): Likewise.
36323         [POSIX || XPG3] (SIGXCPU): Likewise.
36324         [POSIX || XPG3] (SIGXFSZ): Likewise.
36325         [POSIX] (SA_SIGINFO): Expect.
36326         [XPG3] (siginfo_t): Do not expect type or contents.
36327         [POSIX] (si_pid): Do not expect element.
36328         [POSIX] (si_uid): Likewise.
36329         [POSIX] (si_addr): Likewise.
36330         [POSIX] (si_status): Likewise.
36331         [POSIX] (si_band): Likewise.
36332         [XPG4] (si_value): Likewise.
36333         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
36334         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
36335         [POSIX || XPG3] (ILL_ILLADR): Likewise.
36336         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
36337         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
36338         [POSIX || XPG3] (ILL_PRVREG): Likewise.
36339         [POSIX || XPG3] (ILL_COPROC): Likewise.
36340         [POSIX || XPG3] (ILL_BADSTK): Likewise.
36341         [POSIX || XPG3] (FPE_INTDIV): Likewise.
36342         [POSIX || XPG3] (FPE_INTOVF): Likewise.
36343         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
36344         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
36345         [POSIX || XPG3] (FPE_FLTUND): Likewise.
36346         [POSIX || XPG3] (FPE_FLTRES): Likewise.
36347         [POSIX || XPG3] (FPE_FLTINV): Likewise.
36348         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
36349         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
36350         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
36351         [POSIX || XPG3] (BUS_ADRALN): Likewise.
36352         [POSIX || XPG3] (BUS_ADRERR): Likewise.
36353         [POSIX || XPG3] (BUS_OBJERR): Likewise.
36354         [POSIX || XPG3] (CLD_EXITED): Likewise.
36355         [POSIX || XPG3] (CLD_KILLED): Likewise.
36356         [POSIX || XPG3] (CLD_DUMPED): Likewise.
36357         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
36358         [POSIX || XPG3] (CLD_STOPPED): Likewise.
36359         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
36360         [POSIX || XPG3] (POLL_IN): Likewise.
36361         [POSIX || XPG3] (POLL_OUT): Likewise.
36362         [POSIX || XPG3] (POLL_MSG): Likewise.
36363         [POSIX || XPG3] (POLL_ERR): Likewise.
36364         [POSIX || XPG3] (POLL_PRI): Likewise.
36365         [POSIX || XPG3] (POLL_HUP): Likewise.
36366         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
36367         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
36368         (SIG*): Do not allow.
36369         [XPG3] (si_*): Likewise.
36370         [XPG3] (SI_*): Likewise.
36371         [XPG3 || XPG4] (sigev_*): Likewise.
36372         [XPG3 || XPG4] (SIGEV_*): Likewise.
36373         [XPG3 || XPG4] (sival_*): Likewise.
36374         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
36375         [POSIX || XPG3] (BUS_*): Likewise.
36376         [POSIX || XPG3] (CLD_*): Likewise.
36377         [POSIX || XPG3] (FPE_*): Likewise.
36378         [POSIX || XPG3] (ILL_*): Likewise.
36379         [POSIX || XPG3] (POLL_*): Likewise.
36380         [POSIX || XPG3] (SEGV_*): Likewise.
36381         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
36382         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
36383         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
36384         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
36385         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
36386         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
36387         Specify type and value.
36388         (TVERSLEN): Likewise.
36389         (REGTYPE): Likewise.
36390         (AREGTYPE): Likewise.
36391         (LNKTYPE): Likewise.
36392         (SYMTYPE): Likewise.
36393         (CHRTYPE): Likewise.
36394         (BLKTYPE): Likewise.
36395         (DIRTYPE): Likewise.
36396         (FIFOTYPE): Likewise.
36397         (CONTTYPE): Likewise.
36398         (TSUID): Likewise.
36399         (TSGID): Likewise.
36400         (TSVTX): Likewise.
36401         (TUREAD): Likewise.
36402         (TUWRITE): Likewise.
36403         (TUEXEC): Likewise.
36404         (TGREAD): Likewise.
36405         (TGWRITE): Likewise.
36406         (TGEXEC): Likewise.
36407         (TOREAD): Likewise.
36408         (TOWRITE): Likewise.
36409         (TOEXEC): Likewise.
36410         [POSIX] (TSVTX): Expect constant.
36411
36412 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
36413
36414         * Makefile (tests): Change dependencies to ....
36415         (tests-special): ... additions to this variable.
36416         (tests): Depend on $(tests-special).
36417         * Makerules (check-abi-list): New variable.
36418         (check-abi): Depend on $(check-abi-list).
36419         [$(subdir) = elf] (tests-special): Add
36420         $(objpfx)check-abi-libc.out.
36421         [$(build-shared) = yes && subdir] (tests-special): Add
36422         $(check-abi-list).
36423         [$(build-shared) = yes && subdir] (tests): Do not depend on
36424         check-abi.
36425         * Rules (tests): Depend on $(tests-special).
36426         (xtests): Depend on $(xtests-special).
36427         * catgets/Makefile (tests): Change dependencies to ....
36428         (tests-special): ... additions to this variable.
36429         * conform/Makefile (tests): Change dependencies to ....
36430         (tests-special): ... additions to this variable.
36431         * elf/Makefile (tests): Change dependencies to ....
36432         (tests-special): ... additions to this variable.
36433         * grp/Makefile (tests): Change dependencies to ....
36434         (tests-special): ... additions to this variable.
36435         * iconv/Makefile (xtests): Change dependencies to ....
36436         (xtests-special): ... additions to this variable.
36437         * iconvdata/Makefile (tests): Change dependencies to ....
36438         (tests-special): ... additions to this variable.
36439         * intl/Makefile (tests): Change dependencies to ....
36440         (tests-special): ... additions to this variable.  Also add
36441         $(objpfx)tst-gettext.out.
36442         * io/Makefile (tests): Change dependencies to ....
36443         (tests-special): ... additions to this variable.
36444         * libio/Makefile (tests): Change dependencies to ....
36445         (tests-special): ... additions to this variable.
36446         * malloc/Makefile (tests): Change dependencies to ....
36447         (tests-special): ... additions to this variable.
36448         * misc/Makefile (tests): Change dependencies to ....
36449         (tests-special): ... additions to this variable.
36450         * nptl/Makefile (tests): Change dependencies to ....
36451         (tests-special): ... additions to this variable.
36452         * nptl_db/Makefile (tests): Change dependencies to ....
36453         (tests-special): ... additions to this variable.
36454         * posix/Makefile (tests): Change dependencies to ....
36455         (tests-special): ... additions to this variable.
36456         (xtests): Change dependencies to ....
36457         (xtests-special): ... additions to this variable.
36458         * resolv/Makefile (tests): Change dependencies to ....
36459         (tests-special): ... additions to this variable.
36460         (xtests): Change dependencies to ....
36461         (xtests-special): ... additions to this variable.
36462         * stdio-common/Makefile (tests): Change dependencies to ....
36463         (tests-special): ... additions to this variable.
36464         (do-tst-unbputc): Remove target.
36465         (do-tst-printf): Likewise.
36466         * stdlib/Makefile (tests): Change dependencies to ....
36467         (tests-special): ... additions to this variable.
36468         * string/Makefile (tests): Change dependencies to ....
36469         (tests-special): ... additions to this variable.
36470         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36471         (tests-special): ... additions to this variable.
36472
36473         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36474         whole file.
36475         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36476         whole file.
36477         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36478         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36479
36480         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36481         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36482         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36483         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36484         * conform/data/libgen.h-data [XPG3]: Likewise.
36485         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36486         * conform/data/ndbm.h-data [XPG3]: Likewise.
36487         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36488         * conform/data/netdb.h-data [XPG3]: Likewise.
36489         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36490         * conform/data/poll.h-data [XPG3]: Likewise.
36491         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36492         * conform/data/strings.h-data [XPG3]: Likewise.
36493         * conform/data/stropts.h-data [XPG3]: Likewise.
36494         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36495         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36496         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36497         Likewise.
36498         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36499         * conform/data/sys/time.h-data [XPG3]: Likewise.
36500         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36501         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36502         * conform/data/sys/un.h-data [XPG3]: Likewise.
36503         * conform/data/syslog.h-data [XPG3]: Likewise.
36504         * conform/data/ucontext.h-data [XPG3]: Likewise.
36505         * conform/data/utmpx.h-data [XPG3]: Likewise.
36506         * conform/data/varargs.h-data [UNIX98]: Enable file.
36507
36508         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36509
36510         * math/libm-test.inc (struct test_f_f_data): Move expected results
36511         into structure for each rounding mode.
36512         (struct test_ff_f_data): Likewise.
36513         (struct test_ff_f_data_nexttoward): Likewise.
36514         (struct test_fi_f_data): Likewise.
36515         (struct test_fl_f_data): Likewise.
36516         (struct test_if_f_data): Likewise.
36517         (struct test_fff_f_data): Likewise.
36518         (struct test_c_f_data): Likewise.
36519         (struct test_f_f1_data): Likewise.
36520         (struct test_fF_f1_data): Likewise.
36521         (struct test_ffI_f1_data): Likewise.
36522         (struct test_c_c_data): Likewise.
36523         (struct test_cc_c_data): Likewise.
36524         (struct test_f_i_data): Likewise.
36525         (struct test_ff_i_data): Likewise.
36526         (struct test_f_l_data): Likewise.
36527         (struct test_f_L_data): Likewise.
36528         (struct test_fFF_11_data): Likewise.
36529         (RM_): New macro.
36530         (RM_FE_DOWNWARD): Likewise.
36531         (RM_FE_TONEAREST): Likewise.
36532         (RM_FE_TOWARDZERO): Likewise.
36533         (RM_FE_UPWARD): Likewise.
36534         (RUN_TEST_LOOP_f_f): Update references to expected results.
36535         (RUN_TEST_LOOP_2_f): Likewise.
36536         (RUN_TEST_LOOP_fff_f): Likewise.
36537         (RUN_TEST_LOOP_c_f): Likewise.
36538         (RUN_TEST_LOOP_f_f1): Likewise.
36539         (RUN_TEST_LOOP_fF_f1): Likewise.
36540         (RUN_TEST_LOOP_fI_f1): Likewise.
36541         (RUN_TEST_LOOP_ffI_f1): Likewise.
36542         (RUN_TEST_LOOP_c_c): Likewise.
36543         (RUN_TEST_LOOP_cc_c): Likewise.
36544         (RUN_TEST_LOOP_f_i): Likewise.
36545         (RUN_TEST_LOOP_f_i_tg): Likewise.
36546         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36547         (RUN_TEST_LOOP_f_b): Likewise.
36548         (RUN_TEST_LOOP_f_b_tg): Likewise.
36549         (RUN_TEST_LOOP_f_l): Likewise.
36550         (RUN_TEST_LOOP_f_L): Likewise.
36551         (RUN_TEST_LOOP_fFF_11): Likewise.
36552         * math/gen-libm-test.pl (parse_args): Output four copies of
36553         expected results for each test.
36554
36555         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36556         (__ASSUME_UTIMES): Remove.
36557         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36558         (__ASSUME_UTIMES): Likewise.
36559
36560         * math/gen-auto-libm-tests.c: Update comment on output format.
36561         (output_for_one_input_case): Generate before-rounding and
36562         after-rounding information as conditions on output flags not
36563         floating-point format.
36564         * math/auto-libm-test-out: Regenerated.
36565         * math/gen-libm-test.pl (cond_value): New function.
36566         (or_cond_value): Use cond_value.
36567         (generate_testfile): Handle conditional exceptions.
36568
36569 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36570
36571         * math/libm-test.inc (max_valid_error): New variable.
36572         (init_max_error): Take new argument specifying whether function
36573         results are exactly determined.  Set max_valid_error and bound
36574         other variables for errors based on this argument.
36575         (set_max_error): Do not record results above max_valid_error.
36576         (check_float_internal): Only accept errors of up to 0.5ulps if
36577         also at most max_valid_error.
36578         (START): Take new argument EXACT and pass it to init_max_error.
36579         (acos_test): Update call to START.
36580         (acos_test_tonearest): Likewise.
36581         (acos_test_towardzero): Likewise.
36582         (acos_test_downward): Likewise.
36583         (acos_test_upward): Likewise.
36584         (acosh_test): Likewise.
36585         (asin_test): Likewise.
36586         (asin_test_tonearest): Likewise.
36587         (asin_test_towardzero): Likewise.
36588         (asin_test_downward): Likewise.
36589         (asin_test_upward): Likewise.
36590         (asinh_test): Likewise.
36591         (atan_test): Likewise.
36592         (atanh_test): Likewise.
36593         (atan2_test): Likewise.
36594         (cabs_test): Likewise.
36595         (cacos_test): Likewise.
36596         (cacosh_test): Likewise.
36597         (carg_test): Likewise.
36598         (casin_test): Likewise.
36599         (casinh_test): Likewise.
36600         (catan_test): Likewise.
36601         (catanh_test): Likewise.
36602         (cbrt_test): Likewise.
36603         (ccos_test): Likewise.
36604         (ccosh_test): Likewise.
36605         (ceil_test): Likewise.
36606         (cexp_test): Likewise.
36607         (cimag_test): Likewise.
36608         (clog_test): Likewise.
36609         (clog10_test): Likewise.
36610         (conj_test): Likewise.
36611         (copysign_test): Likewise.
36612         (cos_test): Likewise.
36613         (cos_test_tonearest): Likewise.
36614         (cos_test_towardzero): Likewise.
36615         (cos_test_downward): Likewise.
36616         (cos_test_upward): Likewise.
36617         (cosh_test): Likewise.
36618         (cosh_test_tonearest): Likewise.
36619         (cosh_test_towardzero): Likewise.
36620         (cosh_test_downward): Likewise.
36621         (cosh_test_upward): Likewise.
36622         (cpow_test): Likewise.
36623         (cproj_test): Likewise.
36624         (creal_test): Likewise.
36625         (csin_test): Likewise.
36626         (csinh_test): Likewise.
36627         (csqrt_test): Likewise.
36628         (ctan_test): Likewise.
36629         (ctan_test_tonearest): Likewise.
36630         (ctan_test_towardzero): Likewise.
36631         (ctan_test_downward): Likewise.
36632         (ctan_test_upward): Likewise.
36633         (ctanh_test): Likewise.
36634         (ctanh_test_tonearest): Likewise.
36635         (ctanh_test_towardzero): Likewise.
36636         (ctanh_test_downward): Likewise.
36637         (ctanh_test_upward): Likewise.
36638         (erf_test): Likewise.
36639         (erfc_test): Likewise.
36640         (exp_test): Likewise.
36641         (exp_test_tonearest): Likewise.
36642         (exp_test_towardzero): Likewise.
36643         (exp_test_downward): Likewise.
36644         (exp_test_upward): Likewise.
36645         (exp10_test): Likewise.
36646         (exp10_test_tonearest): Likewise.
36647         (exp10_test_towardzero): Likewise.
36648         (exp10_test_downward): Likewise.
36649         (exp10_test_upward): Likewise.
36650         (pow10_test): Likewise.
36651         (exp2_test): Likewise.
36652         (expm1_test): Likewise.
36653         (expm1_test_tonearest): Likewise.
36654         (expm1_test_towardzero): Likewise.
36655         (expm1_test_downward): Likewise.
36656         (expm1_test_upward): Likewise.
36657         (fabs_test): Likewise.
36658         (fdim_test): Likewise.
36659         (floor_test): Likewise.
36660         (fma_test): Likewise.
36661         (fma_test_towardzero): Likewise.
36662         (fma_test_downward): Likewise.
36663         (fma_test_upward): Likewise.
36664         (fmax_test): Likewise.
36665         (fmin_test): Likewise.
36666         (fmod_test): Likewise.
36667         (fpclassify_test): Likewise.
36668         (frexp_test): Likewise.
36669         (hypot_test): Likewise.
36670         (ilogb_test): Likewise.
36671         (isfinite_test): Likewise.
36672         (finite_test): Likewise.
36673         (isgreater_test): Likewise.
36674         (isgreaterequal_test): Likewise.
36675         (isinf_test): Likewise.
36676         (isless_test): Likewise.
36677         (islessequal_test): Likewise.
36678         (islessgreater_test): Likewise.
36679         (isnan_test): Likewise.
36680         (isnormal_test): Likewise.
36681         (issignaling_test): Likewise.
36682         (isunordered_test): Likewise.
36683         (j0_test): Likewise.
36684         (j1_test): Likewise.
36685         (jn_test): Likewise.
36686         (ldexp_test): Likewise.
36687         (lgamma_test): Likewise.
36688         (gamma_test): Likewise.
36689         (lrint_test): Likewise.
36690         (lrint_test_tonearest): Likewise.
36691         (lrint_test_towardzero): Likewise.
36692         (lrint_test_downward): Likewise.
36693         (lrint_test_upward): Likewise.
36694         (llrint_test): Likewise.
36695         (llrint_test_tonearest): Likewise.
36696         (llrint_test_towardzero): Likewise.
36697         (llrint_test_downward): Likewise.
36698         (llrint_test_upward): Likewise.
36699         (log_test): Likewise.
36700         (log10_test): Likewise.
36701         (log1p_test): Likewise.
36702         (log2_test): Likewise.
36703         (logb_test): Likewise.
36704         (logb_test_downward): Likewise.
36705         (lround_test): Likewise.
36706         (llround_test): Likewise.
36707         (modf_test): Likewise.
36708         (nearbyint_test): Likewise.
36709         (nextafter_test): Likewise.
36710         (nexttoward_test): Likewise.
36711         (pow_test): Likewise.
36712         (pow_test_tonearest): Likewise.
36713         (pow_test_towardzero): Likewise.
36714         (pow_test_downward): Likewise.
36715         (pow_test_upward): Likewise.
36716         (remainder_test): Likewise.
36717         (drem_test): Likewise.
36718         (remainder_test_tonearest): Likewise.
36719         (drem_test_tonearest): Likewise.
36720         (remainder_test_towardzero): Likewise.
36721         (drem_test_towardzero): Likewise.
36722         (remainder_test_downward): Likewise.
36723         (drem_test_downward): Likewise.
36724         (remainder_test_upward): Likewise.
36725         (drem_test_upward): Likewise.
36726         (remquo_test): Likewise.
36727         (rint_test): Likewise.
36728         (rint_test_tonearest): Likewise.
36729         (rint_test_towardzero): Likewise.
36730         (rint_test_downward): Likewise.
36731         (rint_test_upward): Likewise.
36732         (round_test): Likewise.
36733         (scalb_test): Likewise.
36734         (scalbn_test): Likewise.
36735         (scalbln_test): Likewise.
36736         (signbit_test): Likewise.
36737         (sin_test): Likewise.
36738         (sin_test_tonearest): Likewise.
36739         (sin_test_towardzero): Likewise.
36740         (sin_test_downward): Likewise.
36741         (sin_test_upward): Likewise.
36742         (sincos_test): Likewise.
36743         (sinh_test): Likewise.
36744         (sinh_test_tonearest): Likewise.
36745         (sinh_test_towardzero): Likewise.
36746         (sinh_test_downward): Likewise.
36747         (sinh_test_upward): Likewise.
36748         (sqrt_test): Likewise.
36749         (sqrt_test_tonearest): Likewise.
36750         (sqrt_test_towardzero): Likewise.
36751         (sqrt_test_downward): Likewise.
36752         (sqrt_test_upward): Likewise.
36753         (tan_test): Likewise.
36754         (tan_test_tonearest): Likewise.
36755         (tan_test_towardzero): Likewise.
36756         (tan_test_downward): Likewise.
36757         (tan_test_upward): Likewise.
36758         (tanh_test): Likewise.
36759         (tgamma_test): Likewise.
36760         (trunc_test): Likewise.
36761         (y0_test): Likewise.
36762         (y1_test): Likewise.
36763         (yn_test): Likewise.
36764         (significand_test): Likewise.
36765
36766         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36767         individual tests in comment.
36768         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36769         (prev_max_error): New variable.
36770         (prev_real_max_error): Likewise.
36771         (prev_imag_max_error): Likewise.
36772         (compare_ulp_data): Don't refer to test names in comment.
36773         (find_test_ulps): Remove function.
36774         (find_function_ulps): Likewise.
36775         (find_complex_function_ulps): Likewise.
36776         (init_max_error): Take function name as argument.  Look up ulps
36777         for that function.
36778         (print_ulps): Remove function.
36779         (print_max_error): Use prev_max_error instead of calling
36780         find_function_ulps.
36781         (print_complex_max_error): Use prev_real_max_error and
36782         prev_imag_max_error instead of calling find_complex_function_ulps.
36783         (check_float_internal): Take max_ulp parameter instead of calling
36784         find_test_ulps.  Don't call print_ulps.
36785         (check_float): Update call to check_float_internal.
36786         (check_complex): Update calls to check_float_internal.
36787         (START): Pass argument to init_max_error.
36788         * math/gen-libm-test.pl (%results): Don't include "kind"
36789         information.
36790         (parse_ulps): Don't handle ulps of individual tests.
36791         (print_ulps_file): Likewise.
36792         (output_ulps): Likewise.
36793         * math/README.libm-test: Update.
36794         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36795         individual tests.
36796         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36797         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36798         * sysdeps/arm/libm-test-ulps: Likewise.
36799         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36800         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36801         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36802         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36803         * sysdeps/microblaze/libm-test-ulps: Likewise.
36804         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36805         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36806         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36807         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36808         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36809         * sysdeps/sh/libm-test-ulps: Likewise.
36810         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36811         * sysdeps/tile/libm-test-ulps: Likewise.
36812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36813
36814 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36815
36816         * math/libm-test.inc (print_complex_max_error): Check separately
36817         whether real and imaginary errors are within allowed range and
36818         pass 0 to print_complex_function_ulps instead of value within
36819         allowed range.
36820
36821 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36822
36823         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36824         formatting.
36825         (get_handles_fopen): Likewise.
36826         (do_write_test): Likewise.
36827
36828         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36829
36830         * libio/fileops.c (do_ftell): Use cached offset when
36831         available.
36832         * libio/iofwide.c (do_ftell_wide): Likewise.
36833         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36834         _IO_file_attach.
36835         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36836
36837         [BZ #16532]
36838         * libio/libioP.h (get_file_offset): New function.
36839         * libio/fileops.c (get_file_offset): Likewise.
36840         (do_ftell): Likewise.
36841         (_IO_new_file_seekoff): Split out ftell logic.
36842         * libio/wfileops.c (do_ftell_wide): Likewise.
36843         (_IO_wfile_seekoff): Split out ftell logic.
36844         * libio/tst-ftell-active-handler.c: New test case.
36845         * libio/Makefile (tests): Add it.
36846
36847 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36848
36849         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36850         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36851
36852 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36853
36854         [BZ #16639]
36855         * nscd/connections.c (nscd_init): Call do_exit.
36856         (start_threads): Call do_exit and notify_parent.
36857         (begin_drop_privileges): Call do_exit.
36858         (finish_drop_privileges): Likewise.
36859         * nscd/selinux.c (preserve_capabilities): Likewise.
36860         (install_real_capabilities): Likewise.
36861         (nscd_selinux_enabled): Likewise.
36862         (avc_create_thread): Likewise.
36863         (avc_alloc_lock): Likewise.
36864         (nscd_avc_init): Likewise.
36865         * nscd/nscd.c (parent_fd): New static variable.
36866         (main): Create a pipe between parent and child processes.
36867         Skip closing parent_fd.
36868         (monitor_child): New function.
36869         (do_exit): Likewise.
36870         (notify_parent): Likewise.
36871         * nscd/nscd.h (notify_parent): Likewise.
36872         (do_exit): Likewise.
36873
36874 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36875
36876         * malloc/malloc.c (__libc_calloc): Revert last change.
36877
36878 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36879
36880         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36881
36882 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36883
36884         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36885         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36886         implementation.
36887         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36888         (__libc_ifunc_impl_list): Likewise.
36889         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36890         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36891         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36892         * string/strrchr.c: Define STRRCHR.
36893
36894 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36895
36896         * benchtest/bench-strtok.c (simple_strtok): Delete.
36897         (strtok_string): Use as benchmark.
36898         * string/strtok (STRTOK): New macro.
36899
36900 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36901
36902         * manual/threads.texi: Add header and standard comments to all
36903         functions.
36904
36905         * elf/dl-lookup.c (check_match): New function.
36906         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
36907         (do_lookup_x): Remove nested function check_match. Use non-nested
36908         function check_match.
36909
36910 2014-02-28  Roland McGrath  <roland@hack.frob.com>
36911
36912         * csu/Makefile (generated, before-compile): Use += rather than =.
36913         * catgets/Makefile (generated, generated-dirs): Likewise.
36914         * debug/Makefile (generated): Likewise.
36915         * dlfcn/Makefile (generated): Likewise.
36916         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
36917         * iconvdata/Makefile (before-compile, generated): Likewise.
36918         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
36919         * libio/Makefile (generated): Likewise.
36920         * malloc/Makefile (generated): Likewise.
36921         * manual/Makefile (generated, generated-dirs): Likewise.
36922         * misc/Makefile (generated): Likewise.
36923         * posix/Makefile (generated): Likewise.
36924         * resolv/Makefile (generated): Likewise.
36925         * sunrpc/Makefile (generated, generated-dirs): Likewise.
36926         * timezone/Makefile (generated, generated-dirs): Likewise.
36927
36928         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
36929
36930 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36931
36932         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
36933         power8 implementation.
36934         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
36935         file: POWER8 llround ifunc implementation.
36936         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
36937         (__lllround): Add POWER8 implementation.
36938         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
36939         POWER8 llround implementation.
36940
36941         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
36942         power8 implementation.
36943         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
36944         file: POWER8 llrint ifunc implementation.
36945         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
36946         Add POWER8 implementation.
36947         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
36948         POWER8 llrint implementation.
36949
36950         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
36951         power8 implementation.
36952         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
36953         file: POWER8 finite ifunc implementation.
36954         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
36955         Add POWER8 implementation.
36956         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
36957         Likewise.
36958         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
36959         POWER8 finite implementation.
36960         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
36961
36962         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
36963         power8 implementation.
36964         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
36965         file: POWER8 isinf ifunc implementation.
36966         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
36967         POWER8 implementation.
36968         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
36969         Likewise.
36970         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
36971         isinf implementation.
36972         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
36973
36974         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
36975         (INIT_ARCH): Add hwcap2 initialization.
36976         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
36977         power8 implementation.
36978         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
36979         file: POWER8 isnan ifunc implementation.
36980         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
36981         POWER8 implementation.
36982         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
36983         Likewise.
36984         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
36985         isnan implementation.
36986         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
36987
36988 2014-02-27  Joey Ye  <joey.ye@arm.com>
36989
36990         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
36991         (_FP_NANFRAC_Q): Set to zero.
36992
36993 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
36994
36995         [BZ #16623]
36996         * math/auto-libm-test-in: New test inputs.
36997         * math/auto-libm-test-out: Regenerate.
36998         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
36999         and DA.
37000         (__cos): Likewise.
37001         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
37002
37003 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
37004
37005         * scripts/evaluate-test.sh: Take new argument indicating whether
37006         failure is expected.
37007         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
37008         indicating whether failure is expected.
37009         * conform/Makefile (test-xfail-run-conformtest): New variable.
37010         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
37011         level.
37012         * posix/Makefile (test-xfail-annexc): New variable.
37013         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
37014
37015 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
37016
37017         * argp/Makefile: Include Makeconfig immediately after defining
37018         subdir.
37019         * assert/Makefile: Likewise.
37020         * benchtests/Makefile: Likewise.
37021         * catgets/Makefile: Likewise.
37022         * conform/Makefile: Likewise.
37023         * crypt/Makefile: Likewise.
37024         * csu/Makefile: Likewise.
37025         (all): Remove target.
37026         * ctype/Makefile: Include Makeconfig immediately after defining
37027         subdir.
37028         * debug/Makefile: Likewise.
37029         * dirent/Makefile: Likewise.
37030         * dlfcn/Makefile: Likewise.
37031         * gmon/Makefile: Likewise.
37032         * gnulib/Makefile: Likewise.
37033         * grp/Makefile: Likewise.
37034         * gshadow/Makefile: Likewise.
37035         * hesiod/Makefile: Likewise.
37036         * hurd/Makefile: Likewise.
37037         (all): Remove target.
37038         * iconvdata/Makefile: Include Makeconfig immediately after
37039         defining subdir.
37040         * inet/Makefile: Likewise.
37041         * intl/Makefile: Likewise.
37042         * io/Makefile: Likewise.
37043         * libio/Makefile: Likewise.
37044         (all): Remove target.
37045         * locale/Makefile: Include Makeconfig immediately after defining
37046         subdir.
37047         * login/Makefile: Likewise.
37048         * mach/Makefile: Likewise.
37049         (all): Remove target.
37050         * malloc/Makefile: Include Makeconfig immediately after defining
37051         subdir.
37052         (all): Remove target.
37053         * manual/Makefile: Include Makeconfig immediately after defining
37054         subdir.
37055         * math/Makefile: Likewise.
37056         * misc/Makefile: Likewise.
37057         * nis/Makefile: Likewise.
37058         * nss/Makefile: Likewise.
37059         * po/Makefile: Likewise.
37060         (all): Remove target.
37061         * posix/Makefile: Include Makeconfig immediately after defining
37062         subdir.
37063         * pwd/Makefile: Likewise.
37064         * resolv/Makefile: Likewise.
37065         * resource/Makefile: Likewise.
37066         * rt/Makefile: Likewise.
37067         * setjmp/Makefile: Likewise.
37068         * shadow/Makefile: Likewise.
37069         * signal/Makefile: Likewise.
37070         * socket/Makefile: Likewise.
37071         * soft-fp/Makefile: Likewise.
37072         * stdio-common/Makefile: Likewise.
37073         * stdlib/Makefile: Likewise.
37074         * streams/Makefile: Likewise.
37075         * string/Makefile: Likewise.
37076         * sunrpc/Makefile: Likewise.
37077         (all): Remove target.
37078         * sysvipc/Makefile: Include Makeconfig immediately after defining
37079         subdir.
37080         * termios/Makefile: Likewise.
37081         * time/Makefile: Likewise.
37082         * timezone/Makefile: Likewise.
37083         (all): Remove target.
37084         * wcsmbs/Makefile: Include Makeconfig immediately after defining
37085         subdir.
37086         * wctype/Makefile: Likewise.
37087
37088 2014-02-26  Steve Ellcey  <sellcey@mips.com>
37089
37090         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
37091         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
37092         (libc_feholdexcept_setround_mips): Ditto.
37093         (libc_feholdsetround): New.
37094         (libc_feholdsetroundf): New.
37095         (libc_feholdsetroundl): New.
37096         (libc_feupdateenv_test_mips): New.
37097         (libc_feupdateenv_test): New.
37098         (libc_feupdateenv_testf): New.
37099         (libc_feupdateenv_testl): New.
37100         (libc_feresetround): New.
37101         (libc_feresetroundf): New.
37102         (libc_feresetroundl): New.
37103         (libc_fetestexcept_mips): New.
37104         (libc_fetestexcept): New.
37105         (libc_fetestexceptf): New.
37106         (libc_fetestexceptl): New.
37107         (HAVE_RM_CTX): New.
37108         (libc_feholdexcept_setround_mips_ctx): New.
37109         (libc_feholdexcept_setround_ctx): New.
37110         (libc_feholdexcept_setroundf_ctx): New.
37111         (libc_feholdexcept_setroundl_ctx): New.
37112         (libc_fesetenv_mips_ctx): New.
37113         (libc_fesetenv_ctx): New.
37114         (libc_fesetenv_ctxf): New.
37115         (libc_fesetenv_ctxl): New.
37116         (libc_feupdateenv_mips_ctx): New.
37117         (libc_feupdateenv_ctx): New.
37118         (libc_feupdateenvf_ctx): New.
37119         (libc_feupdateenvl_ctx): New.
37120         (libc_feholdsetround_mips_ctx): New.
37121         (libc_feholdsetround_ctx): New.
37122         (libc_feholdsetroundf_ctx): New.
37123         (libc_feholdsetroundl_ctx): New.
37124         (libc_feresetround_mips_ctx): New.
37125         (libc_feresetround_ctx): New.
37126         (libc_feresetroundf_ctx): New.
37127         (libc_feresetroundl_ctx): New.
37128
37129 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
37130
37131         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
37132
37133         * manual/ipc.texi: New file.
37134         * manual/Makefile (chapters): Add ipc.
37135         * manual/job.texi: Add "Inter-Process Communication" to next.
37136         * manual/process.texi: Add "Inter-Process Communication" to prev.
37137
37138 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37139
37140         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37141
37142 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
37143
37144         * malloc/malloc.c (__libc_calloc): Simplify implementation.
37145
37146         * manual/arith.texi: Fix spaces after sentences.
37147         * manual/charset.texi: Likewise.
37148         * manual/errno.texi: Likewise.
37149         * manual/install.texi: Likewise.
37150         * manual/llio.texi: Likewise.
37151         * manual/locale.texi: Likewise.
37152         * manual/maint.texi: Likewise.
37153         * manual/math.texi: Likewise.
37154         * manual/memory.texi: Likewise.
37155         * manual/message.texi: Likewise.
37156         * manual/probes.texi: Likewise.
37157         * manual/resource.texi: Likewise.
37158         * manual/signal.texi: Likewise.
37159         * manual/socket.texi: Likewise.
37160         * manual/stdio.texi: Likewise.
37161         * manual/string.texi: Likewise.
37162         * manual/time.texi: Likewise.
37163         * manual/users.texi: Likewise.
37164
37165 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
37166
37167         [BZ #16632]
37168         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
37169         _DEFAULT_SOURCE is defined.
37170
37171 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
37172             Carlos O'Donell  <carlos@redhat.com>
37173
37174         [BZ #16613]
37175         * elf/dl-tls.c (_dl_count_modids): New function.
37176         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
37177         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
37178         audit library and increment generation counter.
37179         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
37180         * elf/tst-audit9.c: New file.
37181         * elf/tst-auditmod9a.c: New file.
37182         * elf/tst-auditmod9b.c: New file.
37183         * elf/Makefile: Add rules to build and run tst-audit9.
37184
37185 2014-02-25  Florian Weimer  <fweimer@redhat.com>
37186
37187         [BZ #15347]
37188         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
37189
37190 2014-02-25  Will Newton  <will.newton@linaro.org>
37191
37192         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
37193         (__longjmp): Restore sp and lr before restoring callee
37194         saved registers.  Add longjmp and longjmp_target
37195         SystemTap probe point.
37196         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
37197         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
37198         Define to zero to match jmpbuf layout.
37199         * sysdeps/arm/setjmp.S: Include stap-probe.h.
37200         (__sigsetjmp): Save sp and lr before saving callee
37201         saved registers.  Add setjmp SystemTap probe point.
37202
37203 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
37204
37205         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37206
37207 2014-02-24  Andreas Schwab  <schwab@suse.de>
37208
37209         [BZ #15804]
37210         * elf/pldd.c (wait_for_ptrace_stop): New function.
37211         (main): Call it after attaching.
37212
37213 2014-02-22  Roland McGrath  <roland@hack.frob.com>
37214
37215         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
37216         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
37217         Versions files is now verboten.
37218         * hurd/Versions (libc: GLIBC_2.0):
37219         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
37220         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
37221         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
37222         * mach/Versions: Likewise.
37223
37224         * csu/Versions: Remove unused %include.
37225         * resolv/Versions: Likewise.
37226
37227 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
37228
37229         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
37230         ($(objpfx)check-local-headers.out): Likewise.
37231         ($(objpfx)begin-end-check.out): Likewise.
37232         * Makerules (check-abi-%.out): Likewise.
37233         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
37234         ($(objpfx)test2.cat): Likewise.
37235         ($(objpfx)de/libc.cat): Likewise.
37236         ($(objpfx)test-gencat.out): Likewise.
37237         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
37238         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
37239         ($(objpfx)noload-mem): Likewise.
37240         ($(objpfx)tst-pathopt.out): Likewise.
37241         ($(objpfx)tst-rtld-load-self.out): Likewise.
37242         ($(objpfx)tst-array1-cmp.out): Likewise.
37243         ($(objpfx)tst-array1-static-cmp.out): Likewise.
37244         ($(objpfx)tst-array2-cmp.out): Likewise.
37245         ($(objpfx)tst-array3-cmp.out): Likewise.
37246         ($(objpfx)tst-array4-cmp.out): Likewise.
37247         ($(objpfx)tst-array5-cmp.out): Likewise.
37248         ($(objpfx)tst-array5-static-cmp.out): Likewise.
37249         ($(objpfx)check-textrel.out): Likewise.
37250         ($(objpfx)check-execstack.out): Likewise.
37251         ($(objpfx)check-localplt.out): Likewise.
37252         ($(objpfx)order2-cmp.out): Likewise.
37253         ($(objpfx)tst-leaks1-mem): Likewise.
37254         ($(objpfx)tst-leaks1-static-mem): Likewise.
37255         ($(objpfx)tst-initorder-cmp.out): Likewise.
37256         ($(objpfx)tst-initorder2-cmp.out): Likewise.
37257         ($(objpfx)tst-unused-dep.out): Likewise.
37258         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
37259         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37260         * iconv/Makefile (test-iconvconfig): Likewise.
37261         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
37262         ($(objpfx)iconv-test.out): Likewise.
37263         ($(objpfx)tst-tables.out): Likewise.
37264         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
37265         ($(objpfx)tst-gettext.out): Likewise.
37266         ($(objpfx)tst-translit.out): Likewise.
37267         ($(objpfx)tst-gettext2.out): Likewise.
37268         ($(objpfx)tst-gettext4.out): Likewise.
37269         ($(objpfx)tst-gettext6.out): Likewise.
37270         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
37271         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37272         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
37273         ($(objpfx)tst-fopenloc-mem.out): Likewise.
37274         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37275         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
37276         * posix/Makefile ($(objpfx)globtest.out): Likewise.
37277         ($(objpfx)wordexp-tst.out): Likewise.
37278         ($(objpfx)annexc.out): Likewise.
37279         ($(objpfx)tst-fnmatch-mem): Likewise.
37280         ($(objpfx)bug-regex2-mem): Likewise.
37281         ($(objpfx)bug-regex14-mem): Likewise.
37282         ($(objpfx)bug-regex21-mem): Likewise.
37283         ($(objpfx)bug-regex31-mem): Likewise.
37284         ($(objpfx)tst-vfork3-mem): Likewise.
37285         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
37286         ($(objpfx)tst-pcre-mem): Likewise.
37287         ($(objpfx)tst-boost-mem): Likewise.
37288         ($(objpfx)tst-getconf.out): Likewise.
37289         ($(objpfx)bug-ga2-mem): Likewise.
37290         ($(objpfx)bug-glob2-mem): Likewise.
37291         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
37292         ($(objpfx)mtrace-tst-leaks2): Likewise.
37293         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
37294         ($(objpfx)tst-printf.out): Likewise.
37295         ($(objpfx)tst-setvbuf1.out): Likewise.
37296         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
37297         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
37298         ($(objpfx)tst-fmtmsg.out): Likewise.
37299         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
37300         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
37301
37302         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
37303         * bits/sigaction.h [__USE_MISC]: Likewise.
37304         * bits/waitstatus.h: Update #endif comments.
37305         * ctype/ctype.h: Likewise.
37306         * dirent/dirent.h: Likewise.
37307         [__USE_MISC]: Remove redundant conditionals.
37308         * grp/grp.h: Update #endif comments.
37309         [__USE_GNU]: Remove redundant conditionals.
37310         [__USE_MISC]: Likewise.
37311         * inet/netinet/in.h [__USE_GNU]: Likewise.
37312         * io/sys/stat.h [__USE_MISC]: Likewise.
37313         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
37314         * libio/bits/stdio.h: Update #endif comments.
37315         [__USE_MISC]: Remove redundant conditionals.
37316         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
37317         * libio/stdio.h: Update #endif comments.
37318         [__USE_MISC]: Remove redundant conditionals.
37319         * math/bits/math-finite.h [__USE_MISC]: Likewise.
37320         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
37321         * math/math.h: Update #else and #endif comments.
37322         [__USE_MISC]: Remove redundant conditionals.
37323         * misc/sys/uio.h: Update #endif comments.
37324         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
37325         * posix/glob.h [__USE_MISC]: Likewise.
37326         * posix/sys/types.h: Update #endif comments.
37327         [__USE_MISC]: Remove redundant conditionals.
37328         * posix/sys/wait.h: Update #endif comments.
37329         [__USE_MISC]: Remove redundant conditionals.
37330         * posix/unistd.h: Update #endif comments.
37331         [__USE_MISC]: Remove redundant conditionals.
37332         * pwd/pwd.h [__USE_GNU]: Likewise.
37333         [__USE_MISC]: Likewise.
37334         * resolv/netdb.h [__USE_GNU]: Likewise.
37335         * signal/signal.h: Update #endif comments.
37336         [__USE_MISC]: Remove redundant conditionals.
37337         * stdlib/stdlib.h: Update #else and #endif comments.
37338         [__USE_MISC]: Remove redundant conditionals.
37339         [__USE_GNU]: Likewise.
37340         * string/bits/string2.h [__USE_MISC]: Likewise.
37341         * string/string.h: Update #endif comments.
37342         [__USE_MISC]: Remove redundant conditionals.
37343         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
37344         Likewise.
37345         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
37346         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
37347         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
37348         Likewise.
37349         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
37350         Likewise.
37351         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
37352         comments.
37353         [__USE_MISC]: Remove redundant conditionals.
37354         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
37355         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
37356         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
37357         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
37358         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
37359         Likewise.
37360         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
37361         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
37362         Likewise.
37363         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
37364         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
37365         Likewise.
37366         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
37367         Likewise.
37368         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
37369         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
37370         Likewise.
37371         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
37372         Likewise.
37373         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
37374         * sysdeps/x86/bits/string.h: Update #endif comments.
37375         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
37376         conditionals.
37377         * time/sys/time.h: Update #endif comments.
37378         * time/time.h: Likewise.
37379         [__USE_MISC]: Remove redundant conditionals.
37380
37381 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
37382
37383         [BZ #16600]
37384         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
37385
37386 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
37387
37388         * Versions.def (librt): Add GLIBC_2.17.
37389
37390 2014-02-21  Adam Conrad  <adconrad@0c3.net>
37391
37392         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
37393         synonym for _SYS_AUXV_H to allow direct inclusion.
37394         * sysdeps/sparc/bits/hwcap.h: Likewise.
37395         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
37396         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
37397         * sysdeps/sparc/sysdep.h: Likewise.
37398
37399 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
37400
37401         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
37402
37403 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37404
37405         * benchtests/bench-strrchr.c: Print length instead of position.
37406
37407 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
37408
37409         [BZ #16611]
37410         * sysdeps/unix/sysv/linux/kernel-features.h
37411         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
37412         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
37413         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
37414         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
37415         Likewise.
37416         [__i386__ || __powerpc__ || __sh__ || __sparc__]
37417         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37418         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
37419         (__ASSUME_SENDMMSG): Define instead of using previous
37420         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
37421         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37422         (__ASSUME_SENDMMSG_SYSCALL): Define.
37423         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37424         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
37425         Likewise.
37426         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37427         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37428         Likewise.
37429         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37430         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37431         Likewise.
37432         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
37433         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37434         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37435         [__ASSUME_SENDMMSG]: Change conditionals to
37436         [__ASSUME_SENDMMSG_SOCKETCALL].
37437         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37438         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
37439         Define.
37440         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37441         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37442         Likewise.
37443         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37444         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37445         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37446         [!__ASSUME_SENDMMSG]: Change conditional to
37447         [!__ASSUME_SENDMMSG_SOCKETCALL].
37448         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37449         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37450         Define.
37451
37452         [BZ #16610]
37453         * sysdeps/unix/sysv/linux/kernel-features.h
37454         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37455         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37456         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37457         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37458         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37459         [__i386__ || __sparc__]
37460         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37461         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37462         (__ASSUME_RECVMMSG): Define instead of using previous
37463         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37464         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37465         (__ASSUME_RECVMMSG_SYSCALL): Define.
37466         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37467         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37468         Likewise.
37469         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37470         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37471         Likewise.
37472         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37473         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37474         Likewise.
37475         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37476         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37477         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37478         [__ASSUME_RECVMMSG]: Change condition to
37479         [__ASSUME_RECVMMSG_SOCKETCALL].
37480         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37481         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37482         Define.
37483         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37484         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37485         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37486         Likewise.
37487         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37488         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37489         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37490         [!__ASSUME_RECVMMSG]: Change condition to
37491         [!__ASSUME_RECVMMSG_SOCKETCALL].
37492         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37493         (__ASSUME_RECVMMSG_SYSCALL): Define.
37494
37495         [BZ #16609]
37496         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37497         __powerpc__ || __s390__ || __sh__ || __sparc__]
37498         (__ASSUME_SOCKETCALL): Define.
37499         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37500         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37501         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37502         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37503         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37504         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37505         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37506         (__ASSUME_ACCEPT4): Define instead of using previous
37507         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37508         __powerpc__ || __sparc__ || __s390__)] condition.
37509         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37510         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37511         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37512         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37513         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37514         [!__ASSUME_ACCEPT4]: Change condition to
37515         [!__ASSUME_ACCEPT4_SOCKETCALL].
37516         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37517         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37518         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37519         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37520         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37521         __ASSUME_ACCEPT4_SYSCALL.
37522         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37523         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37524         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37525         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37526         __ASSUME_ACCEPT4_SYSCALL.
37527         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37528         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37529         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37530         [__ASSUME_ACCEPT4]: Change condition to
37531         [__ASSUME_ACCEPT4_SOCKETCALL].
37532         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37533         (__ASSUME_SOCKETCALL): Define.
37534         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37535         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37536         (__ASSUME_SOCKETCALL): Define.
37537         (__ASSUME_ACCEPT4): Remove.
37538         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37539         Define.
37540         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37541         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37542         Likewise.
37543         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37544         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37545
37546         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37547         macro.
37548         (HWCAP_ARM_LPAE): Likewise.
37549         (HWCAP_ARM_EVTSTRM): Likewise.
37550         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37551         Add vpfd32, lpae and evtstrm.
37552         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37553         Increase to 22.
37554
37555 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37556
37557         * math/auto-libm-test-in: Add tests of clog10.
37558         * math/auto-libm-test-out: Regenerated.
37559         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37560         * sysdeps/i386/fpu/libm-test-ulps: Update.
37561         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37562
37563 2014-02-18  Andreas Schwab  <schwab@suse.de>
37564
37565         [BZ #16574]
37566         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37567         Store non-zero if the second buffer was newly allocated.
37568         (send_dg): Likewise.
37569         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37570         to send_vc and send_dg.
37571         (res_nsend): Pass NULL for ansp2_malloced.
37572         * resolv/res_query.c (__libc_res_nquery): Add parameter
37573         answerp2_malloced and pass it down to __libc_res_nsend.
37574         (res_nquery): Pass additional NULL to __libc_res_nquery.
37575         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37576         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37577         second answer buffer if answerp2_malloced was set.
37578         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37579         (__libc_res_nquerydomain): Add parameter
37580         answerp2_malloced and pass it down to __libc_res_nquery.
37581         (res_nquerydomain): Pass additional NULL to
37582         __libc_res_nquerydomain.
37583         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37584         additional NULL to __libc_res_nsend and __libc_res_nquery.
37585         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37586         additional NULL to __libc_res_nsearch.
37587         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37588         parameter of __libc_res_nsearch to check for separately allocated
37589         second buffer.
37590         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37591         __libc_res_nquery.
37592         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37593         additional NULL to __libc_res_nquery.
37594         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37595         __libc_res_nsearch.
37596         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37597         * include/resolv.h: Update prototypes of __libc_res_nquery,
37598         __libc_res_nsearch, __libc_res_nsend.
37599
37600 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37601
37602         * math/auto-libm-test-in: Add tests of fma.
37603         * math/auto-libm-test-out: Regenerated.
37604         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37605         (fma_towardzero_test_data): Likewise.
37606         (fma_downward_test_data): Likewise.
37607         (fma_upward_test_data): Likewise.
37608         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37609         mpc_mode.
37610         (rounding_modes): Add values for new field.
37611         (func_calc_method): Add value mpfr_fff_f.
37612         (func_calc_desc): Add mpfr_fff_f union field.
37613         (test_function): Add field exact_args.
37614         (FUNC): Add macro argument EXACT_ARGS.
37615         (FUNC_mpfr_f_f): Update call to FUNC.
37616         (FUNC_mpfr_f_f): Likewise.
37617         (FUNC_mpfr_ff_f): Likewise.
37618         (FUNC_mpfr_if_f): Likewise.
37619         (FUNC_mpc_c_f): Likewise.
37620         (FUNC_mpc_c_c): Likewise.
37621         (test_functions): Add fma.  Update calls to FUNC.
37622         (handle_input_arg): Add argument exact_args.
37623         (add_test): Update call to handle_input_arg.
37624         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37625         (output_for_one_input_case): Update call to calc_generic_results.
37626         Recalculate exact zero results in each rounding mode.
37627
37628         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37629         non-negative before setting low bit.
37630         * math/auto-libm-test-in: Mark one asin test possibly having
37631         spurious underflow.
37632         * math/auto-libm-test-out: Regenerated.
37633         * sysdeps/i386/fpu/libm-test-ulps: Update.
37634         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37635
37636 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37637
37638         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37639         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37640         ports/sysdeps/unix/sysv/linux/microblaze.
37641         * README: Add missing listing for microblaze*-*-linux-gnu.
37642
37643 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37644
37645         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37646         duplicate code
37647
37648 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37649
37650         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37651         * sysdeps/unix/sysv/linux/ia64: Move directory from
37652         ports/sysdeps/unix/sysv/linux/ia64.
37653         * README: Update listing for ia64-*-linux-gnu.
37654
37655 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37656             Joseph Myers  <joseph@codesourcery.com>
37657
37658         * Makeconfig (test-name): New variable.
37659         (evaluate-test): Likewise.
37660         * Makerules (do-test-clean): Remove .test-result files.
37661         (common-mostlyclean): Likewise.
37662         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37663         * scripts/evaluate-test.sh: New file.
37664
37665 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37666
37667         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37668         separate $(objpfx)tst-fopenloc-cmp.out and
37669         $(objpfx)tst-fopenloc-mem.out targets.
37670         (tests): Update dependencies.
37671         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37672         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37673         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37674         (tst-rxspencer-no-utf8-ARGS): New variable.
37675         (tst-rxspencer-no-utf8-ENV): Likewise.
37676         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37677         instead of $(objpfx)tst-rxspencer-mem.
37678         ($(objpfx)tst-rxspencer-mem): Change target to
37679         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37680         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37681         * posix/tst-rxspencer-no-utf8.c: New file.
37682
37683         * elf/Makefile ($(objpfx)order.out): Remove rule.
37684         [$(run-built-tests) = yes] (tests): Depend on
37685         $(objpfx)order-cmp.out.
37686         ($(objpfx)order-cmp.out): New rule.
37687         [$(run-built-tests) = yes] (tests): Depend on
37688         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37689         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37690         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37691         $(objpfx)tst-array5-static-cmp.out.
37692         ($(objpfx)tst-array1.out): Remove rule.
37693         ($(objpfx)tst-array1-cmp.out): New rule.
37694         ($(objpfx)tst-array1-static.out): Remove rule.
37695         ($(objpfx)tst-array1-static-cmp.out): New rule.
37696         ($(objpfx)tst-array2.out): Remove rule.
37697         ($(objpfx)tst-array2-cmp.out): New rule.
37698         ($(objpfx)tst-array3.out): Remove rule.
37699         ($(objpfx)tst-array3-cmp.out): New rule.
37700         ($(objpfx)tst-array4.out): Remove rule.
37701         ($(objpfx)tst-array4-cmp.out): New rule.
37702         ($(objpfx)tst-array5.out): Remove rule.
37703         ($(objpfx)tst-array5-cmp.out): New rule.
37704         ($(objpfx)tst-array5-static.out): Remove rule.
37705         ($(objpfx)tst-array5-static-cmp.out): New rule.
37706         [$(run-built-tests) = yes] (tests): Depend on
37707         $(objpfx)order2-cmp.out.
37708         ($(objpfx)order2.out): Remove rule.
37709         ($(objpfx)order2-cmp.out): New rule.
37710         ($(objpfx)tst-initorder.out): Remove rule.
37711         [$(run-built-tests) = yes] (tests): Depend on
37712         $(objpfx)tst-initorder-cmp.out.
37713         ($(objpfx)tst-initorder-cmp.out): New rule.
37714         ($(objpfx)tst-initorder2.out): Remove rule.
37715         [$(run-built-tests) = yes] (tests): Depend on
37716         $(objpfx)tst-initorder2-cmp.out.
37717         ($(objpfx)tst-initorder2-cmp.out): New rule.
37718         [$(run-built-tests) = yes] (tests): Depend on
37719         $(objpfx)tst-unused-dep-cmp.out.
37720         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37721         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37722         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37723         on $(objpfx)tst-setvbuf1-cmp.out.
37724         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37725         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37726         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37727         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37728         ($(objpfx)tst-svc.out): Remove rule.
37729         ($(objpfx)tst-svc-cmp.out): New rule.
37730
37731 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37732
37733         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37734         * ctype/ctype.h [__USE_MISC]: Likewise.
37735         * dirent/dirent.h [__USE_MISC]: Likewise.
37736         * grp/grp.h [__USE_MISC]: Likewise.
37737         * io/fcntl.h [__USE_MISC]: Likewise.
37738         * io/sys/stat.h [__USE_MISC]: Likewise.
37739         * libio/stdio.h [__USE_MISC]: Likewise.
37740         * posix/unistd.h [__USE_MISC]: Likewise.
37741         * pwd/pwd.h [__USE_MISC]: Likewise.
37742         * stdlib.h [__USE_MISC]: Likewise.
37743         * string/bits/string2.h [__USE_MISC]: Likewise.
37744         * string/string.h [__USE_MISC]: Likewise.
37745         * time/time.h [__USE_MISC]: Likewise.
37746
37747 2014-02-13  Andreas Schwab  <schwab@suse.de>
37748
37749         [BZ #16574]
37750         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37751         second answer buffer if it was separately allocated.
37752
37753 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37754
37755         * sysdeps/mips/math-tests.h: Include <features.h>.
37756         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37757         (ROUNDING_TESTS_long_double): Do not define.
37758         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37759         (EXCEPTION_TESTS_long_double): Likewise.
37760         * sysdeps/mips/mips64/libm-test-ulps: Update.
37761
37762         * include/features.h (__USE_BSD): Remove macro definitions.
37763         (__USE_SVID): Likewise.
37764         (_BSD_SOURCE): Likewise.
37765         (_SVID_SOURCE): Likewise.
37766         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37767         from definition of _DEFAULT_SOURCE.
37768         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37769         [_DEFAULT_SOURCE].
37770         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37771         * bits/mman.h [__USE_BSD]: Likewise.
37772         * bits/termios.h [__USE_BSD]: Likewise.
37773         * bits/waitstatus.h [__USE_BSD]: Likewise.
37774         * ctype/ctype.h [__USE_SVID]: Likewise.
37775         * dirent/dirent.h [__USE_BSD]: Likewise.
37776         * grp/grp.h [__USE_SVID]: Likewise.
37777         [__USE_BSD]: Likewise.
37778         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37779         * io/fcntl.h [__USE_BSD]: Likewise.
37780         * io/ftw.h [__USE_BSD]: Likewise.
37781         * io/sys/stat.h [__USE_BSD]: Likewise.
37782         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37783         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37784         * libio/stdio.h [__USE_SVID]: Likewise.
37785         [__USE_BSD]: Likewise.
37786         * math/math.h [__USE_SVID]: Likewise.
37787         [__USE_BSD]: Likewise.
37788         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37789         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37790         * misc/search.h [__USE_SVID]: Likewise.
37791         * misc/sys/mman.h [__USE_BSD]: Likewise.
37792         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37793         * misc/sys/uio.h [__USE_BSD]: Likewise.
37794         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37795         * posix/glob.h [__USE_BSD]: Likewise.
37796         * posix/regex.h [__USE_BSD]: Likewise.
37797         * posix/sys/types.h [__USE_BSD]: Likewise.
37798         [__USE_SVID]: Likewise.
37799         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37800         * posix/sys/wait.h [__USE_BSD]: Likewise.
37801         [__USE_SVID]: Likewise.
37802         * posix/unistd.h [__USE_BSD]: Likewise.
37803         [__USE_SVID]: Likewise.
37804         * pwd/pwd.h [__USE_SVID]: Likewise.
37805         * resolv/netdb.h [__USE_BSD]: Likewise.
37806         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37807         * signal/signal.h [__USE_BSD]: Likewise.
37808         [__USE_SVID]: Likewise.
37809         * socket/sys/socket.h [__USE_BSD]: Likewise.
37810         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37811         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37812         [__USE_SVID]: Likewise.
37813         * string/bits/string2.h [__USE_BSD]: Likewise.
37814         [__USE_SVID]: Likewise.
37815         * string/bits/string3.h [__USE_BSD]: Likewise.
37816         * string/endian.h [__USE_BSD]: Likewise.
37817         * string/string.h [__USE_SVID]: Likewise.
37818         [__USE_BSD]: Likewise.
37819         * string/strings.h [__USE_BSD]: Likewise.
37820         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37821         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37822         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37823         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37824         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37825         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37826         Likewise.
37827         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37828         Likewise.
37829         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37830         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37831         Likewise.
37832         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37833         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37834         Likewise.
37835         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37836         Likewise.
37837         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37838         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37839         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37840         Likewise.
37841         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37842         Likewise.
37843         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37844         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37845         * termios/termios.h [__USE_BSD]: Likewise.
37846         * time/sys/time.h [__USE_BSD]: Likewise.
37847         * time/time.h [__USE_BSD]: Likewise.
37848         [__USE_SVID]: Likewise.
37849
37850         * Makefile (subdir_targets): Remove subdir_lint.out.
37851
37852         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37853         (do-tst-printf): Likewise.
37854         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37855         $(objpfx)tst-printf.out.
37856
37857         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37858
37859         * Makerules (check-abi-%): Change target to
37860         $(objpfx)check-abi-%.out.
37861         (check-abi target): Update dependencies.
37862         (check-abi-pattern variable): Redirect output of diff to $@.
37863         (check-abi variable): Likewise.
37864         * elf/Makefile (check-abi): Update dependencies.
37865
37866         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37867         unused.
37868         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37869         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37870         subnormal range.
37871         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37872         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37873         value has largest subnormal exponent.
37874         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37875         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37876         * sysdeps/aarch64/soft-fp/sfp-machine.h
37877         (_FP_TININESS_AFTER_ROUNDING): New macro.
37878         * sysdeps/alpha/soft-fp/sfp-machine.h
37879         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37880         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37881         Likewise.
37882         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37883         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37884         * sysdeps/mips/soft-fp/sfp-machine.h
37885         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37886         * sysdeps/powerpc/soft-fp/sfp-machine.h
37887         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37888         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37889         Likewise.
37890         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37891         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37892         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37893         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37894         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37895         Likewise.
37896
37897 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37898
37899         [BZ #16545]
37900         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37901         model 1.
37902
37903 2014-02-12  Richard Henderson  <rth@redhat.com>
37904
37905         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
37906         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
37907         * sysdeps/unix/sysv/linux/alpha: Move directory from
37908         ports/sysdeps/unix/sysv/linux/alpha.
37909         * README: Update listing for alpha-*-linux-gnu.
37910
37911 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
37912
37913         * include/features.h: Update comment documenting feature test
37914         macros.
37915         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
37916         _DEFAULT_SOURCE.
37917         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
37918         (_SVID_SOURCE): Likewise.
37919         (_DEFAULT_SOURCE): Update description of default features.
37920         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
37921         with _GNU_SOURCE.
37922         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
37923         (S_ISVTX): Likewise.
37924         * manual/math.texi (Mathematical Constants): Likewise.
37925         * manual/signal.texi (Interrupted Primitives): Likewise.
37926         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
37927         * math/test-matherr.c (_SVID_SOURCE): Do not define.
37928         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
37929         Don't refer to _SVID_SOURCE in warning text.
37930
37931         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37932
37933         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
37934         already defined.
37935         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
37936         * sysdeps/mips/dl-lookup.c: Remove.
37937         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
37938
37939 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37940
37941         [BZ #16447]
37942         * math/auto-libm-test-in: Add testcase for expl.
37943         * math/auto-libm-test-out: Regenerate.
37944         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
37945         calculation of unsafe.
37946         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
37947
37948 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37949
37950         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
37951         * sysdeps/unix/sysv/linux/aarch64: Move directory from
37952         ports/sysdeps/unix/sysv/linux/aarch64.
37953         * README: Update listing for aarch64*-*-linux-gnu.
37954
37955 2014-02-11  Will Newton  <will.newton@linaro.org>
37956
37957         * manual/probes.texi (Mathematical Function Probes): Use
37958         "triggered" instead of "hit".
37959
37960         * manual/probes.texi (Internal Probes): Add documentation
37961         of setjmp, longjmp and longjmp_target probes.
37962
37963         * include/stap-probe.h: Add comment about probe argument
37964         format.
37965
37966         * malloc/mtrace.c (attribute_hidden): Remove unused macro
37967         definition.  (tr_where, tr_freehook, tr_mallochook,
37968         tr_reallochook, tr_memalignhook): Use ANSI protoype.
37969
37970 2014-02-11  David S. Miller  <davem@davemloft.net>
37971
37972         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
37973         processing int_tests.
37974
37975 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
37976
37977         * sysdeps/mips: Move directory from ports/sysdeps/mips.
37978         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
37979         * sysdeps/unix/sysv/linux/mips: Move directory from
37980         ports/sysdeps/unix/sysv/linux/mips.
37981         * README: Update listing for mips-*-linux-gnu and
37982         mips64-*-linux-gnu.
37983
37984 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
37985
37986         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
37987         * sysdeps/unix/sysv/linux/m68k: Move directory from
37988         ports/sysdeps/unix/sysv/linux/m68k.
37989         * README: Update listing for m68k-*-linux-gnu.
37990
37991 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
37992
37993         * sysdeps/tile: Move directory from ports/sysdeps/tile.
37994         * sysdeps/unix/sysv/linux/generic: Move directory from
37995         ports/sysdeps/unix/sysv/linux/generic.
37996         * sysdeps/unix/sysv/linux/tile: Move directory from
37997         ports/sysdeps/unix/sysv/linux/tile.
37998         * README: Update listing for tile*-*-linux-gnu.
37999
38000 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
38001
38002         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
38003         __builtin_expect.
38004         * benchtests/bench-memmem.c (simple_memmem): Likewise.
38005         * catgets/open_catalog.c (__open_catalog): Likewise.
38006         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
38007         * debug/confstr_chk.c: Likewise.
38008         * debug/fread_chk.c (__fread_chk): Likewise.
38009         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
38010         * debug/getgroups_chk.c: Likewise.
38011         * debug/mbsnrtowcs_chk.c: Likewise.
38012         * debug/mbsrtowcs_chk.c: Likewise.
38013         * debug/mbstowcs_chk.c: Likewise.
38014         * debug/memcpy_chk.c: Likewise.
38015         * debug/memmove_chk.c: Likewise.
38016         * debug/mempcpy_chk.c: Likewise.
38017         * debug/memset_chk.c: Likewise.
38018         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
38019         * debug/strcat_chk.c (__strcat_chk): Likewise.
38020         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
38021         * debug/strncat_chk.c (__strncat_chk): Likewise.
38022         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
38023         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
38024         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
38025         * debug/wcpncpy_chk.c: Likewise.
38026         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
38027         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
38028         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
38029         * debug/wcsncpy_chk.c: Likewise.
38030         * debug/wcsnrtombs_chk.c: Likewise.
38031         * debug/wcsrtombs_chk.c: Likewise.
38032         * debug/wcstombs_chk.c: Likewise.
38033         * debug/wmemcpy_chk.c: Likewise.
38034         * debug/wmemmove_chk.c: Likewise.
38035         * debug/wmempcpy_chk.c: Likewise.
38036         * debug/wmemset_chk.c: Likewise.
38037         * dirent/scandirat.c (SCANDIRAT): Likewise.
38038         * dlfcn/dladdr1.c (dladdr1): Likewise.
38039         * dlfcn/dladdr.c (dladdr): Likewise.
38040         * dlfcn/dlclose.c (dlclose_doit): Likewise.
38041         * dlfcn/dlerror.c (__dlerror): Likewise.
38042         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
38043         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
38044         * dlfcn/dlopen.c (dlopen_doit): Likewise.
38045         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
38046         * dlfcn/dlsym.c (dlsym_doit): Likewise.
38047         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
38048         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
38049         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
38050         Likewise.
38051         * elf/dl-conflict.c: Likewise.
38052         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
38053         * elf/dl-dst.h: Likewise.
38054         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
38055         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
38056         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
38057         * elf/dl-init.c (call_init, _dl_init): Likewise.
38058         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
38059         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
38060         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
38061         Likewise.
38062         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
38063         Likewise.
38064         * elf/dl-minimal.c (__libc_memalign): Likewise.
38065         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
38066         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
38067         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
38068         * elf/dl-sym.c (do_sym): Likewise.
38069         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
38070         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
38071         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
38072         * elf/dl-writev.h (_dl_writev): Likewise.
38073         * elf/ldconfig.c (search_dir): Likewise.
38074         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
38075         (dl_main): Likewise.
38076         * elf/setup-vdso.h (setup_vdso): Likewise.
38077         * grp/compat-initgroups.c (compat_call): Likewise.
38078         * grp/fgetgrent.c (fgetgrent): Likewise.
38079         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
38080         * grp/putgrent.c (putgrent): Likewise.
38081         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
38082         Likewise.
38083         * hurd/hurdinit.c: Likewise.
38084         * iconvdata/8bit-gap.c (struct): Likewise.
38085         * iconvdata/ansi_x3.110.c : Likewise.
38086         * iconvdata/big5.c : Likewise.
38087         * iconvdata/big5hkscs.c : Likewise.
38088         * iconvdata/cp1255.c: Likewise.
38089         * iconvdata/cp1258.c : Likewise.
38090         * iconvdata/cp932.c : Likewise.
38091         * iconvdata/euc-cn.c: Likewise.
38092         * iconvdata/euc-jisx0213.c : Likewise.
38093         * iconvdata/euc-jp.c: Likewise.
38094         * iconvdata/euc-jp-ms.c : Likewise.
38095         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
38096         * iconvdata/gb18030.c : Likewise.
38097         * iconvdata/gbbig5.c (const): Likewise.
38098         * iconvdata/gbgbk.c: Likewise.
38099         * iconvdata/gbk.c : Likewise.
38100         * iconvdata/ibm1364.c : Likewise.
38101         * iconvdata/ibm930.c : Likewise.
38102         * iconvdata/ibm932.c: Likewise.
38103         * iconvdata/ibm933.c : Likewise.
38104         * iconvdata/ibm935.c : Likewise.
38105         * iconvdata/ibm937.c : Likewise.
38106         * iconvdata/ibm939.c : Likewise.
38107         * iconvdata/ibm943.c: Likewise.
38108         * iconvdata/iso_11548-1.c: Likewise.
38109         * iconvdata/iso-2022-cn.c : Likewise.
38110         * iconvdata/iso-2022-cn-ext.c : Likewise.
38111         * iconvdata/iso-2022-jp-3.c: Likewise.
38112         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
38113         * iconvdata/iso-2022-kr.c : Likewise.
38114         * iconvdata/iso646.c (gconv_end): Likewise.
38115         * iconvdata/iso_6937-2.c : Likewise.
38116         * iconvdata/iso_6937.c : Likewise.
38117         * iconvdata/iso8859-1.c: Likewise.
38118         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
38119         * iconvdata/shift_jisx0213.c : Likewise.
38120         * iconvdata/sjis.c : Likewise.
38121         * iconvdata/t.61.c : Likewise.
38122         * iconvdata/tcvn5712-1.c : Likewise.
38123         * iconvdata/tscii.c: Likewise.
38124         * iconvdata/uhc.c : Likewise.
38125         * iconvdata/unicode.c (gconv_end): Likewise.
38126         * iconvdata/utf-16.c (gconv_end): Likewise.
38127         * iconvdata/utf-32.c (gconv_end): Likewise.
38128         * iconvdata/utf-7.c (base64): Likewise.
38129         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
38130         * iconv/gconv_close.c (__gconv_close): Likewise.
38131         * iconv/gconv_open.c (__gconv_open): Likewise.
38132         * iconv/gconv_simple.c (internal_ucs4_loop_single)
38133         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
38134         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
38135         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
38136         (ucs4le_internal_loop_single): Likewise.
38137         * iconv/iconv.c (iconv): Likewise.
38138         * iconv/iconv_close.c: Likewise.
38139         * iconv/loop.c (SINGLE): Likewise.
38140         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
38141         * include/atomic.h: Likewise.
38142         * inet/inet6_option.c (option_alloc): Likewise.
38143         * intl/bindtextdom.c (set_binding_values): Likewise.
38144         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
38145         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
38146         * intl/localealias.c (read_alias_file): Likewise.
38147         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
38148         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
38149         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
38150         * libio/fmemopen.c (fmemopen): Likewise.
38151         * libio/iofgets.c (_IO_fgets): Likewise.
38152         * libio/iofgets_u.c (fgets_unlocked): Likewise.
38153         * libio/iofgetws.c (fgetws): Likewise.
38154         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
38155         * libio/iogetdelim.c (_IO_getdelim): Likewise.
38156         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
38157         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
38158         * locale/findlocale.c (_nl_find_locale): Likewise.
38159         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
38160         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
38161         Likewise.
38162         * locale/setlocale.c (setlocale): Likewise.
38163         * login/programs/pt_chown.c (main): Likewise.
38164         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
38165         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
38166         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
38167         (mmap, mmap64, mremap, munmap): Likewise.
38168         * math/e_exp2l.c: Likewise.
38169         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
38170         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
38171         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
38172         * math/s_catan.c (__catan): Likewise.
38173         * math/s_catanf.c (__catanf): Likewise.
38174         * math/s_catanh.c (__catanh): Likewise.
38175         * math/s_catanhf.c (__catanhf): Likewise.
38176         * math/s_catanhl.c (__catanhl): Likewise.
38177         * math/s_catanl.c (__catanl): Likewise.
38178         * math/s_ccosh.c (__ccosh): Likewise.
38179         * math/s_ccoshf.c (__ccoshf): Likewise.
38180         * math/s_ccoshl.c (__ccoshl): Likewise.
38181         * math/s_cexp.c (__cexp): Likewise.
38182         * math/s_cexpf.c (__cexpf): Likewise.
38183         * math/s_cexpl.c (__cexpl): Likewise.
38184         * math/s_clog10.c (__clog10): Likewise.
38185         * math/s_clog10f.c (__clog10f): Likewise.
38186         * math/s_clog10l.c (__clog10l): Likewise.
38187         * math/s_clog.c (__clog): Likewise.
38188         * math/s_clogf.c (__clogf): Likewise.
38189         * math/s_clogl.c (__clogl): Likewise.
38190         * math/s_csin.c (__csin): Likewise.
38191         * math/s_csinf.c (__csinf): Likewise.
38192         * math/s_csinh.c (__csinh): Likewise.
38193         * math/s_csinhf.c (__csinhf): Likewise.
38194         * math/s_csinhl.c (__csinhl): Likewise.
38195         * math/s_csinl.c (__csinl): Likewise.
38196         * math/s_csqrt.c (__csqrt): Likewise.
38197         * math/s_csqrtf.c (__csqrtf): Likewise.
38198         * math/s_csqrtl.c (__csqrtl): Likewise.
38199         * math/s_ctan.c (__ctan): Likewise.
38200         * math/s_ctanf.c (__ctanf): Likewise.
38201         * math/s_ctanh.c (__ctanh): Likewise.
38202         * math/s_ctanhf.c (__ctanhf): Likewise.
38203         * math/s_ctanhl.c (__ctanhl): Likewise.
38204         * math/s_ctanl.c (__ctanl): Likewise.
38205         * math/w_pow.c: Likewise.
38206         * math/w_powf.c: Likewise.
38207         * math/w_powl.c: Likewise.
38208         * math/w_scalb.c (sysv_scalb): Likewise.
38209         * math/w_scalbf.c (sysv_scalbf): Likewise.
38210         * math/w_scalbl.c (sysv_scalbl): Likewise.
38211         * misc/error.c (error_tail): Likewise.
38212         * misc/pselect.c (__pselect): Likewise.
38213         * nis/nis_callback.c (__nis_create_callback): Likewise.
38214         * nis/nis_call.c (__nisfind_server): Likewise.
38215         * nis/nis_creategroup.c (nis_creategroup): Likewise.
38216         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
38217         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
38218         * nis/nis_getservlist.c (nis_getservlist): Likewise.
38219         * nis/nis_lookup.c (nis_lookup): Likewise.
38220         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
38221         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
38222         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
38223         * nis/nis_xdr.c (xdr_endpoint): Likewise.
38224         * nis/nss_compat/compat-grp.c (getgrent_next_file)
38225         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
38226         * nis/nss_compat/compat-initgroups.c (add_group)
38227         (internal_getgrent_r): Likewise.
38228         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
38229         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
38230         * nis/nss_compat/compat-spwd.c (getspent_next_file)
38231         (internal_getspnam_r): Likewise.
38232         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
38233         (_nss_nis_getaliasbyname_r): Likewise.
38234         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
38235         (_nss_nis_getntohost_r): Likewise.
38236         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
38237         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
38238         (_nss_nis_getgrgid_r): Likewise.
38239         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
38240         (internal_nis_gethostent_r, internal_gethostbyname2_r)
38241         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
38242         (_nss_nis_gethostbyname4_r): Likewise.
38243         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
38244         (initgroups_netid): Likewise.
38245         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
38246         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
38247         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
38248         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
38249         (_nss_nis_getprotobynumber_r): Likewise.
38250         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
38251         (_nss_nis_getsecretkey): Likewise.
38252         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
38253         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
38254         (_nss_nis_getpwuid_r): Likewise.
38255         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
38256         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
38257         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
38258         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
38259         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
38260         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
38261         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
38262         Likewise.
38263         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
38264         (_nss_nisplus_getntohost_r): Likewise.
38265         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
38266         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
38267         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
38268         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
38269         Likewise.
38270         * nis/nss_nisplus/nisplus-initgroups.c
38271         (_nss_nisplus_initgroups_dyn): Likewise.
38272         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
38273         (_nss_nisplus_getnetbyaddr_r): Likewise.
38274         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
38275         (_nss_nisplus_getprotobynumber_r): Likewise.
38276         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
38277         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
38278         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
38279         Likewise.
38280         * nis/nss_nisplus/nisplus-service.c
38281         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
38282         (_nss_nisplus_getservbyport_r): Likewise.
38283         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
38284         (_nss_nisplus_getspnam_r): Likewise.
38285         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
38286         Likewise.
38287         * nscd/aicache.c (addhstaiX): Likewise.
38288         * nscd/cache.c (cache_search, prune_cache): Likewise.
38289         * nscd/connections.c (register_traced_file, send_ro_fd)
38290         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
38291         (main_loop_epoll): Likewise.
38292         * nscd/grpcache.c (addgrbyX): Likewise.
38293         * nscd/hstcache.c (addhstbyX): Likewise.
38294         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38295         * nscd/mem.c (gc, mempool_alloc): Likewise.
38296         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
38297         (addinnetgrX): Likewise.
38298         * nscd/nscd-client.h (__nscd_acquire_maplock)
38299         (__nscd_drop_map_ref): Likewise.
38300         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38301         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
38302         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
38303         Likewise.
38304         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
38305         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
38306         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
38307         (__nscd_get_map_ref): Likewise.
38308         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
38309         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
38310         Likewise.
38311         * nscd/pwdcache.c (addpwbyX): Likewise.
38312         * nscd/selinux.c (preserve_capabilities): Likewise.
38313         * nscd/servicescache.c (addservbyX): Likewise.
38314         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
38315         * posix/fnmatch.c (fnmatch): Likewise.
38316         * posix/getopt.c (_getopt_internal_r): Likewise.
38317         * posix/glob.c (glob, glob_in_dir): Likewise.
38318         * posix/wordexp.c (exec_comm_child): Likewise.
38319         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
38320         (getanswer_r, gaih_getanswer_slice): Likewise.
38321         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
38322         * resolv/res_init.c: Likewise.
38323         * resolv/res_mkquery.c (res_nmkquery): Likewise.
38324         * resolv/res_query.c (__libc_res_nquery): Likewise.
38325         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
38326         Likewise.
38327         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
38328         * stdio-common/perror.c (perror): Likewise.
38329         * stdio-common/printf_fp.c (___printf_fp): Likewise.
38330         * stdio-common/tmpnam.c (tmpnam): Likewise.
38331         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
38332         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
38333         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
38334         Likewise.
38335         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
38336         * stdlib/putenv.c (putenv): Likewise.
38337         * stdlib/setenv.c (__add_to_environ): Likewise.
38338         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
38339         * stdlib/strtol_l.c (INTERNAL): Likewise.
38340         * string/memmem.c (memmem): Likewise.
38341         * string/strerror.c (strerror): Likewise.
38342         * string/strnlen.c (__strnlen): Likewise.
38343         * string/test-memmem.c (simple_memmem): Likewise.
38344         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
38345         * sunrpc/pm_getport.c (__get_socket): Likewise.
38346         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
38347         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
38348         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
38349         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
38350         Likewise.
38351         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
38352         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
38353         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38354         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
38355         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38356         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
38357         Likewise.
38358         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
38359         Likewise.
38360         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38361         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38362         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
38363         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38364         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
38365         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
38366         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
38367         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
38368         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38369         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
38370         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38371         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
38372         Likewise.
38373         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
38374         Likewise.
38375         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
38376         Likewise.
38377         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
38378         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38379         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
38380         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
38381         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
38382         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
38383         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38384         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
38385         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
38386         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
38387         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
38388         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38389         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
38390         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
38391         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
38392         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38393         Likewise.
38394         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
38395         Likewise.
38396         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
38397         Likewise.
38398         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
38399         Likewise.
38400         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
38401         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
38402         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
38403         Likewise.
38404         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
38405         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
38406         * sysdeps/posix/opendir.c (__opendirat): Likewise.
38407         * sysdeps/posix/sleep.c: Likewise.
38408         * sysdeps/posix/tempname.c: Likewise.
38409         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
38410         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
38411         Likewise.
38412         * sysdeps/powerpc/powerpc32/dl-machine.h
38413         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
38414         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
38415         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
38416         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
38417         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
38418         Likewise.
38419         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
38420         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
38421         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38422         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
38423         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38424         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
38425         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
38426         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
38427         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
38428         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
38429         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
38430         (elf_machine_lazy_rel): Likewise.
38431         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
38432         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
38433         (elf_machine_lazy_rel): Likewise.
38434         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
38435         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
38436         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
38437         * sysdeps/unix/grantpt.c (grantpt): Likewise.
38438         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
38439         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
38440         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38441         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38442         Likewise.
38443         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38444         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38445         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38446         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38447         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38448         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38449         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38450         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38451         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38452         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38453         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38454         Likewise.
38455         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38456         (__posix_fallocate64_l64): Likewise.
38457         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38458         (posix_fallocate): Likewise.
38459         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38460         Likewise.
38461         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38462         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38463         (getifaddrs_internal): Likewise.
38464         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38465         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38466         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38467         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38468         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38469         (__posix_fallocate64_l64): Likewise.
38470         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38471         Likewise.
38472         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38473         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38474         (__get_clockfreq): Likewise.
38475         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38476         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38477         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38478         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38479         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38480         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38481         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38482         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38483         Likewise.
38484         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38485         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38486         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38487         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38488         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38489         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38490         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38491         Likewise.
38492         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38493         (posix_fallocate): Likewise.
38494         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38495         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38496         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38497         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38498         (elf_machine_rela, elf_machine_rela_relative)
38499         (elf_machine_lazy_rel): Likewise.
38500         * time/asctime.c (asctime_internal): Likewise.
38501         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38502         * time/tzset.c (__tzset_parse_tz): Likewise.
38503         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38504         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38505         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38506         * wcsmbs/wcsmbsload.h: Likewise.
38507
38508         [BZ #15894]
38509         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38510
38511         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38512         (arena_get2): Remove THREAD_STATS conditionals.
38513         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38514         (__malloc_stats, int): Likewise.
38515
38516 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38517
38518         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38519         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38520
38521         * manual/setjmp.texi: Fix typos/grammar errors.
38522
38523         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38524         Only return early when n is <= 0.  Delete unused return statement.
38525
38526         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38527         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38528         * debug/tst-longjmp_chk3.c: New file.
38529
38530         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38531         (test_main): Replace code with set_fortify_handler call.
38532         * debug/test-strcpy_chk.c: Likewise.
38533         * debug/tst-chk1.c: Likewise.
38534         * debug/tst-longjmp_chk.c: Likewise.
38535         * test-skeleton.c: Include fcntl.h & paths.h
38536         (set_fortify_handler): Define.
38537
38538         * debug/tst-longjmp_chk.c: Add header comment and include
38539         ../test-skeleton.c.
38540         (do_test): Mark static.
38541         (TEST_FUNCTION): Define.
38542
38543         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38544         (IP_PMTUDISC_INTERFACE): Likewise.
38545         (IP_MULTICAST_IF): Likewise.
38546         (IP_MULTICAST_TTL): Likewise.
38547         (IP_MULTICAST_LOOP): Likewise.
38548         (IP_ADD_MEMBERSHIP): Likewise.
38549         (IP_DROP_MEMBERSHIP): Likewise.
38550         (IP_UNBLOCK_SOURCE): Likewise.
38551         (IP_BLOCK_SOURCE): Likewise.
38552         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38553         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38554         (IP_MSFILTER): Likewise.
38555         (MCAST_JOIN_GROUP): Likewise.
38556         (MCAST_BLOCK_SOURCE): Likewise.
38557         (MCAST_UNBLOCK_SOURCE): Likewise.
38558         (MCAST_LEAVE_GROUP): Likewise.
38559         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38560         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38561         (MCAST_MSFILTER): Likewise.
38562         (IP_MULTICAST_ALL): Likewise.
38563         (IP_UNICAST_IF): Likewise.
38564
38565         * timezone/Makefile: Delete $(have-ksh) check.
38566         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38567         * timezone/tzselect.ksh: Add +x mode bits.
38568
38569         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38570         (ANON_INODE_FS_MAGIC): Likewise.
38571         (BDEVFS_MAGIC): Likewise.
38572         (BINFMTFS_MAGIC): Likewise.
38573         (BTRFS_TEST_MAGIC): Likewise.
38574         (CRAMFS_MAGIC_WEND): Likewise.
38575         (DEBUGFS_MAGIC): Likewise.
38576         (ECRYPTFS_SUPER_MAGIC): Likewise.
38577         (EXT3_SUPER_MAGIC): Likewise.
38578         (EXT4_SUPER_MAGIC): Likewise.
38579         (FUTEXFS_SUPER_MAGIC): Likewise.
38580         (HOSTFS_SUPER_MAGIC): Likewise.
38581         (HUGETLBFS_MAGIC): Likewise.
38582         (MINIX3_SUPER_MAGIC): Likewise.
38583         (MTD_INODE_FS_MAGIC): Likewise.
38584         (NILFS_SUPER_MAGIC): Likewise.
38585         (OPENPROM_SUPER_MAGIC): Likewise.
38586         (PIPEFS_MAGIC): Likewise.
38587         (PSTOREFS_MAGIC): Likewise.
38588         (QNX6_SUPER_MAGIC): Likewise.
38589         (RAMFS_MAGIC): Likewise.
38590         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38591         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38592         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38593         (SECURITYFS_MAGIC): Likewise.
38594         (SELINUX_MAGIC): Likewise.
38595         (SMACK_MAGIC): Likewise.
38596         (SOCKFS_MAGIC): Likewise.
38597         (SQUASHFS_MAGIC): Likewise.
38598         (STACK_END_MAGIC): Likewise.
38599         (TMPFS_MAGIC): Likewise.
38600         (USBDEVICE_SUPER_MAGIC): Likewise.
38601         (V9FS_MAGIC): Likewise.
38602         (XENFS_SUPER_MAGIC): Likewise.
38603         (CRAMFS_MAGIC): Fix typo in comment.
38604         (EXT2_SUPER_MAGIC): Update comment.
38605         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38606
38607 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38608
38609         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38610         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38611         * sysdeps/unix/sysv/linux/arm: Move directory from
38612         ports/sysdeps/unix/sysv/linux/arm.
38613         * README: Update listing for arm-*-linux-gnueabi.
38614
38615         * README: Remove mention of am33.
38616
38617 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38618
38619         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38620         than the comma operator, to avoid "rhs of comma has no effect"
38621         compiler warnings.
38622         (__sigfillset, __sigandset, __sigorset): Likewise.
38623         * include/signal.h (__sigemptyset): Likewise.
38624         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38625
38626 2014-02-07  Allan McRae  <allan@archlinux.org>
38627
38628         * version.h (RELEASE): Set to "development".
38629         (VERSION): Set to "2.19.90"
38630         * NEWS: Add 2.20 section.
38631
38632 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38633
38634         [BZ #16529]
38635         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38636
38637 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38638
38639         * manual/contrib.texi: Update entry for Carlos O'Donell,
38640         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38641
38642 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38643
38644         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38645
38646         * sysdeps/unix/sysv/linux/kernel-features.h
38647         [__LINUX_KERNEL_VERSION >= 0x020621]
38648         (__ASSUME_PROC_PID_TASK_COMM): Define.
38649
38650 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38651
38652         [BZ #16398]
38653         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38654         conversion when destination buffer does not have enough space.
38655         * libio/tst-ftell-partial-wide.c: New test case.
38656         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38657
38658         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38659         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38660         Leonard and Allan McRae.
38661
38662 2014-02-04  David S. Miller  <davem@davemloft.net>
38663
38664         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38665         32-bit.
38666
38667 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38668
38669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38670         New file
38671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38672         New file
38673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38674         New file.
38675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38676         New file.
38677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38678         New file.
38679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38680         New file.
38681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38682         New file.
38683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38684         New file.
38685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38686         New file.
38687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38688         New file.
38689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38690         New file.
38691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38692         New file.
38693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38694         New file.
38695
38696 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38697
38698         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38699         * shlib-versions: Likewise.
38700
38701 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38702             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38703
38704         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38705         (abilist-pattern): New variable, set to %-le.abilist.
38706
38707         * Makerules (abilist-pattern): New variable.
38708         (vpath): Use $(abilist-pattern) in place of %.abilist.
38709         (check-abi-% pattern rule): Likewise.
38710         (check-abi, update-abi): Likewise.
38711
38712 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38713
38714         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38715
38716 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38717
38718         * manual/startup.texi: Add next, previous, and top entries for
38719         the `Program Arguments' and `Environment Variables' nodes.
38720
38721 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38722
38723         * manual/macros.texi: Add comments before MTASC-safety macros.
38724
38725         * manual/users.texi: Document MTASC-safety properties.
38726
38727         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38728         (pthread_getspecific, pthread_setspecific): Format with
38729         @deftypefun, and add @safety note.
38730         * manual/signal.texi: Move comments that analyze the above
38731         functions to their home place.
38732
38733 2014-02-03  Allan McRae  <allan@archlinux.org>
38734
38735         * po/sl.po: Update Slovenian translation from translation project.
38736
38737 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38738
38739         * manual/time.texi (timegm): Add missing blank after @c.
38740         Reported by Joseph Myers <joseph@codesourcery.com>.
38741
38742 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38743
38744         * manual/check-safety.sh: New.
38745         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38746
38747         * manual/terminal.texi: Document MTASC-safety properties.
38748
38749         * manual/filesys.texi: Document MTASC-safety properties.
38750
38751         * manual/errno.texi: Document MTASC-safety properties.
38752
38753         * manual/intro.texi: Document safety identifiers and
38754         conditionals.
38755
38756         * manual/string.texi (wcstok): Fix prototype.
38757         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38758
38759         * manual/time.texi: Document MTASC-safety properties.
38760
38761         * manual/string.texi: Document MTASC-safety properties.
38762
38763         * manual/threads.texi: Document MTASC-safety properties.
38764
38765         * manual/stdio.texi: Document MTASC-safety properties.
38766
38767         * manual/syslog.texi: Document MTASC-safety properties.
38768
38769         * manual/sysinfo.texi: Document MTASC-safety properties.
38770
38771         * manual/startup.texi: Document MTASC-safety properties.
38772
38773         * manual/socket.texi: Document MTASC-safety properties.
38774
38775         * manual/signal.texi: Document MTASC-safety properties.
38776
38777 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38778
38779         * manual/setjmp.texi: Document MTASC-safety properties.
38780
38781         * manual/search.texi: Document MTASC-safety properties.
38782
38783         * manual/resource.texi: Document MTASC-safety properties.
38784
38785         * manual/process.texi: Document MTASC-safety properties.
38786
38787         * manual/platform.texi: Document MTASC-safety properties.
38788
38789         * manual/pipe.texi: Document MTASC-safety properties.
38790
38791         * manual/pattern.texi: Document MTASC-safety properties.
38792
38793         * manual/message.texi: Document MTASC-safety properties.
38794
38795         [BZ #12751]
38796         * manual/memory.texi: Document MTASC-safety properties.
38797
38798         * manual/math.texi: Document MTASC-safety properties.
38799
38800         * manual/locale.texi: Document MTASC-safety properties.
38801
38802         * manual/llio.texi: Document MTASC-safety properties.
38803
38804         * manual/libdl.texi: New.
38805
38806         * manual/lang.texi: Document MTASC-safety properties.
38807
38808         * manual/job.texi: Document MTASC-safety properties.
38809
38810         * manual/getopt.texi: Document MTASC-safety properties.
38811
38812         * manual/ctype.texi: Document MTASC-safety properties.
38813
38814 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38815
38816         [BZ #16046]
38817         * csu/libc-tls.c (static_map): Remove variable.
38818         (__libc_setup_tls): Use main executable's link map for TLS data.
38819         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38820         casing for LM_ID_BASE and GL(dl_nns).
38821         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38822         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38823         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38824         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38825         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38826         member.
38827         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38828         l_phnum members.
38829
38830 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38831
38832         * manual/debug.texi: Document MTASC-safety properties.
38833
38834 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38835
38836         [BZ #16510]
38837         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38838         of __x86_64__ when disabling x87 inline functions.
38839
38840 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38841
38842         * manual/charset.texi: Document MTASC-safety properties.
38843
38844         * manual/crypt.texi: Document MTASC-safety properties.
38845
38846         * manual/conf.texi: Document MTASC-safety properties.
38847
38848         * manual/arith.texi: Document MTASC-safety properties.
38849
38850         * manual/argp.texi: Document MTASC-safety properties.
38851
38852         * manual/macros.texi: Introduce macros to document multi
38853         thread, asynchronous signal and asynchronous cancellation
38854         safety properties.
38855         * manual/intro.texi: Introduce the properties themselves.
38856
38857 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38858
38859         * sysdeps/sh/sh4/Makefile: New file.
38860
38861 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38862
38863         * math/gen-libm-test.pl ($srcdir): New variable.
38864         ($auto_input): Use it.
38865
38866 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38867
38868         [BZ #16506]
38869         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38870         access beyond array bounds when parsing netgroups file.
38871
38872         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38873         the old buffer before realloc.
38874
38875 2014-01-27  Allan McRae  <allan@archlinux.org>
38876
38877         * po/fr.po: Update French translation from translation project.
38878
38879 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38880
38881         * sysdeps/sh/libm-test-ulps: Regenerate.
38882
38883 2014-01-24  David S. Miller  <davem@davemloft.net>
38884
38885         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38886
38887 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38888
38889         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38890         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38891
38892 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38893
38894         [BZ #16474]
38895         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38896         string pointers after reallocation.
38897
38898 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38899
38900         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38901         __SH4A__ instead of __SH_FPU_ANY__.
38902
38903 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38904
38905         * sysdeps/sh/fpu_control.h: New file.
38906         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
38907         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
38908         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
38909         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
38910         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
38911         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
38912         * sysdeps/sh/sys/ucontext.h: Remove.
38913         * sysdeps/sh/sys: Remove directory.
38914
38915 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38916
38917         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
38918         s390/sys/ucontext.h.
38919         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
38920         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
38921
38922 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
38923
38924         [BZ #15605]
38925         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
38926
38927 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38928
38929         [BZ#16431]
38930         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
38931         Adjust the vDSO correctly for internal calls.
38932         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
38933
38934 2014-01-20  Allan McRae  <allan@archlinux.org>
38935
38936         * po/ca.po: Update Catalan translation from translation project.
38937
38938 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
38939
38940         * sysdeps/s390/sotruss-lib.c: New file.
38941
38942 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38943
38944         [BZ#16430]
38945         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
38946         (__GI___gettimeofday): Alias for a different internal symbol to avoid
38947         local calls issues by not having a PLT stub required for IFUNC calls.
38948         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
38949
38950 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
38951
38952         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
38953         * math/test-fpucw-static.c: Likewise.
38954
38955 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
38956
38957         [BZ #16453]
38958         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38959
38960 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38961
38962         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
38963         implementation for powerpc.
38964
38965 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
38966
38967         [BZ #14782]
38968         * sysdeps/posix/system.c (__libc_system): Do not enable
38969         asynchronous cancellation.
38970
38971 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38972
38973         [BZ #16427]
38974         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
38975         handling only for numbers special also in the IEEE case.
38976
38977 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38978
38979         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
38980
38981 2014-01-11  Allan McRae  <allan@archlinux.org>
38982
38983         * po/bg.po: Update Bulgarian translation from translation project.
38984
38985         * po/de.po: Update German translation from translation project.
38986
38987 2014-01-10  Roland McGrath  <roland@hack.frob.com>
38988
38989         * sysdeps/generic/gcc-compat.h: New file.
38990
38991 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
38992
38993         * benchtests/asin-inputs: Correct slow inputs.
38994         * benchtests/acos-inputs: Likewise.
38995
38996 2014-01-10  Allan McRae  <allan@archlinux.org>
38997
38998         * po:sv.po: Update Swedish translation from translation project.
38999
39000         * po/vi.po: Update Vietnamese translation from translation project.
39001
39002         * po/eo.po: Update Esperanto translation from translation project.
39003
39004         * po/cs.po: Update Czech translation from translation project.
39005
39006         * po/nl.po: Update Dutch translation from translation project.
39007
39008         * po/pl.po: Update Polish translation from translation project.
39009
39010         * po/ru.po: Update Russian translation from translation project.
39011
39012         * po/uk.po: Update Ukrainian translation from translation project.
39013
39014 2014-01-08  Brooks Moses  <bmoses@google.com>
39015
39016         * elf/dl-load.c: Fix comment typo.
39017
39018 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
39019
39020         * po/header.pot: Rename to...
39021         * po/pot.header: ... this.
39022         * po/Makefile: Use pot.header.
39023
39024 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
39025             Maxim Kuvyrkov  <maxim@kugelworks.com>
39026
39027         [BZ #16394]
39028         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
39029         SRC and DEST against LEN.
39030
39031 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39032
39033         [BZ #16414]
39034         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
39035         implementation.
39036         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
39037
39038 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39039
39040         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39041
39042 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
39043
39044         [BZ #16408]
39045         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
39046         for large positive arguments.
39047
39048 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
39049
39050         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39051
39052         * math/auto-libm-test-in: Mark various tests with
39053         xfail-rounding:ldbl-128ibm.
39054         * math/auto-libm-test-out: Regenerated.
39055
39056         [BZ #16407]
39057         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
39058         Increase overflow threshold.
39059
39060 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
39061
39062         [BZ #14286]
39063         * stdio-common/vfprintf.c: Check for integer overflow.
39064
39065 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39066
39067         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
39068         the first argument and return value of __tls_get_addr_internal.
39069
39070 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39071
39072         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
39073         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
39074
39075 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39076
39077         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
39078         * sysdeps/s390/rtld-global-offsets.sym: New file.
39079         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
39080         GLIBC_2.19 symbol.
39081         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
39082         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
39083         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
39084         ... this.
39085         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
39086         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
39087         ... this.
39088         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39089         Regenerate.
39090         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39091         Regenerate.
39092         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
39093         halfs of GPRs for high_gprs contexts.
39094         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
39095         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
39096         field.
39097         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
39098         uc_flags field.
39099         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
39100         64 bit versions:
39101         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
39102         for high GPRs (uc_high_gprs) and for future extensions
39103         (__reserved).
39104         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
39105         for future extensions (__reserved).
39106         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
39107         64 bit versions:
39108         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
39109         SC_HIGHGPRS offset definition.
39110         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
39111         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
39112
39113         * Versions.def: Add GLIBC_2.19 for libpthread.
39114         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
39115         siglongjmp for libpthread with GLIBC_2.19 symver.
39116         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
39117         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
39118         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
39119         * sysdeps/s390/__longjmp.c: New file.
39120         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
39121         * sysdeps/s390/longjmp.c: New file.
39122         * sysdeps/s390/setjmp.S: New file.
39123         * sysdeps/s390/sigjmp.S: New file.
39124         * sysdeps/s390/v1-longjmp.c: New file.
39125         * sysdeps/s390/v1-setjmp.h: New file.
39126         * sysdeps/s390/v1-sigjmp.c: New file.
39127         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
39128         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
39129         GLIBC_2.19 version.
39130         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
39131         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
39132         versioned symbols for ____longjmp_chk.
39133         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
39134         Likewise.
39135         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39136         Regenerate.
39137         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
39138         Regenerate.
39139         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39140         Regenerate.
39141         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
39142         Regenerate.
39143         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
39144         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
39145         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
39146         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
39147         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
39148         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
39149         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
39150         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
39151         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
39152         * sysdeps/s390/rtld-__longjmp.c: New file.
39153         * sysdeps/s390/rtld-setjmp.S: New file.
39154
39155 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
39156
39157         [BZ #16400]
39158         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39159         Return -__logl (x) for small positive arguments without evaluating
39160         a polynomial.
39161
39162 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
39163
39164         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
39165         Rename to ...
39166         (__ptrace_peeksiginfo_args): ... this.
39167         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
39168         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
39169         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
39170
39171 2014-01-06  Allan McRae  <allan@archlinux.org>
39172
39173         * inet/netinet/in.h: Fix typo in comment.
39174
39175 2014-01-05  Andreas Jaeger  <aj@suse.de>
39176
39177         * sysdeps/i386/fpu/libm-test-ulps: Update.
39178
39179 2014-01-05  Allan McRae  <allan@archlinux.org>
39180
39181         * po/libc.pot: Regenerated.
39182
39183         * malloc/memusagestat.c: Fix gettext call formatting.
39184
39185 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
39186
39187         * nscd/nscd.c: Improve usage() output.
39188
39189 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
39190
39191         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
39192         * sysdeps/unix/sysv/linux/configure: Regenerated.
39193         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
39194         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
39195
39196 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39197
39198         [BZ #16390]
39199         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
39200         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
39201
39202 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39203
39204         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
39205         extra tokens at end of #undef directive.
39206         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
39207         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
39208         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
39209
39210 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39211
39212         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39213
39214         * math/auto-libm-test-in: Mark various tests with
39215         xfail-rounding:ldbl-128ibm.
39216         * math/auto-libm-test-out: Regenerated.
39217
39218 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
39219
39220         [BZ #16386]
39221         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
39222         numbers with subnormal high part when calculating exponent.
39223
39224         [BZ #16385]
39225         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
39226         fabs.
39227
39228         [BZ #16384]
39229         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
39230         M_LN2l.
39231         (__ieee754_acoshl): Use __log1pl not __log1p.
39232
39233 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
39234
39235         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
39236         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
39237         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
39238         (grow_heap, heap_trim, _int_new_arena, get_free_list)
39239         (reused_arena, arena_get2): Convert to GNU style.
39240         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
39241         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
39242         (memalign_check, __malloc_set_state): Likewise.
39243         * malloc/mallocbug.c (main): Likewise.
39244         * malloc/malloc.c (__malloc_assert, malloc_init_state)
39245         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
39246         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
39247         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
39248         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
39249         (__posix_memalign, malloc_info): Likewise.
39250         * malloc/malloc.h: Likewise.
39251         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
39252         (mallochook, memalignhook, reallochook, mabort): Likewise.
39253         * malloc/mcheck.h: Likewise.
39254         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
39255         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
39256         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
39257         * malloc/morecore.c (__default_morecore): Likewise.
39258         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
39259         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
39260         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
39261         (print_and_abort): Likewise.
39262         * malloc/obstack.h: Likewise.
39263         * malloc/set-freeres.c (__libc_freeres): Likewise.
39264         * malloc/tst-mallocstate.c (main): Likewise.
39265         * malloc/tst-mtrace.c (main): Likewise.
39266         * malloc/tst-realloc.c (do_test): Likewise.
39267
39268 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
39269
39270         [BZ #16366]
39271         * nscd/netgroupcache.c (do_notfound): New function.
39272         (addgetnetgrentX): Use it.
39273
39274         [BZ # 16365]
39275         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
39276         NSS_STATUS_NOTFOUND.
39277
39278 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
39279
39280         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
39281         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39282
39283 2014-01-01  Allan McRae  <allan@archlinux.org>
39284
39285         * scripts/update-copyrights: Update configure input file suffix.
39286
39287         * NEWS: Update copyright year.
39288         * catgets/gencat.c: Likewise.
39289         * csu/version.c: Likewise.
39290         * debug/catchsegv.sh: Likewise.
39291         * debug/pcprofiledump.c: Likewise.
39292         * debug/xtrace.sh: Likewise.
39293         * elf/ldconfig.c: Likewise.
39294         * elf/ldd.bash.in: Likewise.
39295         * elf/pldd.c: Likewise.
39296         * elf/sotruss.ksh: Likewise.
39297         * elf/sprof.c: Likewise.
39298         * iconv/iconv_prog.c: Likewise.
39299         * iconv/iconvconfig.c: Likewise.
39300         * locale/programs/locale.c: Likewise.
39301         * locale/programs/localedef.c: Likewise.
39302         * login/programs/pt_chown.c: Likewise.
39303         * malloc/memusage.sh: Likewise.
39304         * malloc/memusagestat.c: Likewise.
39305         * malloc/mtrace.pl: Likewise.
39306         * manual/libc.texinfo: Likewise.
39307         * nscd/nscd.c: Likewise.
39308         * nss/getent.c: Likewise.
39309         * nss/makedb.c: Likewise.
39310         * posix/getconf.c: Likewise.
39311         * scripts/test-installation.pl: Likewise.
39312
39313         * All files with FSF copyright notices: Update copyright dates
39314         using scripts/update-copyrights.
39315         * intl/plural.c: Regenerated.
39316         * locale/programs/charmap-kw.h: Likewise.
39317         * locale/programs/locfile-kw.h: Likewise.
39318
39319 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
39320
39321         * sysdeps/unix/sysv/linux/configure: Regenerated.
39322         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
39323         the linux/fanotify.h header.
39324         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
39325         HAVE_LINUX_FANOTIFY_H is defined.
39326
39327 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39328
39329         * benchtests/cos-inputs: New inputs.
39330         * benchtests/sin-inputs: Likewise.
39331
39332         * benchtests/atan-inputs: New inputs. Fix name of multiple
39333         precision fallback inputs.
39334
39335         * benchtests/atanh-inputs: New inputs.
39336         * benchtests/tanh-inputs: Likewise.
39337
39338         * benchtests/acosh-inputs: New inputs.
39339         * benchtests/asinh-inputs: Likewise.
39340
39341         * benchtests/cosh-inputs: New inputs.
39342         * benchtests/sinh-inputs: Likewise.
39343
39344         * benchtests/acos-inputs: Add more inputs.
39345         * benchtests/asin-inputs: Likewise.
39346
39347 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
39348
39349         [BZ #16375]
39350         * manual/arith.texi: Fix spelling.
39351         * manual/charset.texi: Likewise.
39352         * manual/errno.texi: Likewise.
39353         * manual/filesys.texi: Likewise.
39354         * manual/lang.texi: Likewise.
39355         * manual/llio.texi: Likewise.
39356         * manual/locale.texi: Likewise.
39357         * manual/message.texi: Likewise.
39358         * manual/resource.texi: Likewise.
39359         * manual/search.texi: Likewise.
39360         * manual/setjmp.texi: Likewise.
39361         * manual/stdio.texi: Likewise.
39362         * manual/string.texi: Likewise.
39363         * manual/sysinfo.texi: Likewise.
39364         * manual/time.texi: Likewise.
39365
39366 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
39367
39368         * po/sl.po: New file.
39369
39370 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
39371
39372         * .gitignore: Add core/.gdbinit/.gdb_history.
39373
39374 2013-12-27  Allan McRae  <allan@archlinux.org>
39375
39376         [BZ #16369]
39377         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
39378         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
39379
39380 2013-12-24  Brooks Moses  <bmoses@google.com>
39381
39382         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
39383         all compilers that claim C++98 compliance, not just GCC.
39384         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
39385         Likewise.
39386
39387 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39388
39389         * NEWS: Restore accidentally deleted bug-fix entries.
39390
39391 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39392             Ondřej Bílka  <neleai@seznam.cz>
39393
39394         [BZ #15073]
39395         * malloc/malloc.c (_int_free): Perform sanity check only if we
39396         have_lock.
39397
39398 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
39399
39400         [BZ #12986]
39401         * manual/stdio.texi (String Input Conversions): Clarify that character
39402         classes are not supported.
39403
39404 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39405
39406         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39407
39408 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
39409
39410         [BZ #16337]
39411         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39412         Calculate results for small negative arguments directly rather
39413         than using reflection formula with special underflow handling.
39414
39415         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
39416         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
39417         sysdeps/unix/bsd/bsd4.4/syscalls.list.
39418         (fchflags): Likewise.
39419         (revoke): Likewise.
39420         (setlogin): Likewise.
39421         (sigaltstack): Likewise.
39422         (wait4): Likewise.
39423         (sigblock): Remove.
39424         (sigsetmask): Likewise.
39425         (wait3): Likewise.
39426         (waitpid): Likewise.
39427         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
39428         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
39429         file.
39430         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
39431         * sysdeps/unix/bsd/Makefile: ... here.
39432         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
39433         * sysdeps/unix/bsd/Versions: ... here.
39434         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
39435         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
39436         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
39437         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
39438         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
39439         * sysdeps/unix/bsd/sigblock.c: ... here.
39440         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39441         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39442         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39443         * sysdeps/unix/bsd/sigvec.c: ... here.
39444         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39445         * sysdeps/unix/bsd/tcdrain.c: ... here.
39446         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39447         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39448         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39449         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39450         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39451         * sysdeps/unix/bsd/wait.c: ... here.
39452         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39453         * sysdeps/unix/bsd/wait3.c: ... here.
39454         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39455         * sysdeps/unix/bsd/waitpid.c: ... here.
39456
39457 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39458
39459         [BZ #16356]
39460         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39461         round-to-nearest for [!USE_AS_EXPM1L].
39462         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39463         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39464         more tests of exp and exp10.  Expect some exp10 tests to miss
39465         exceptions or fail in directed rounding modes.
39466         * math/auto-libm-test-out: Regenerated.
39467         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39468         (exp10_test_tonearest): New function.
39469         (exp10_towardzero_test_data): New array.
39470         (exp10_test_towardzero): New function.
39471         (exp10_downward_test_data): New array.
39472         (exp10_test_downward): New function.
39473         (exp10_upward_test_data): New array.
39474         (exp10_test_upward): New function.
39475         (main): Call the new functions.
39476         * sysdeps/i386/fpu/libm-test-ulps: Update.
39477         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39478
39479 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39480
39481         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39482         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39483         * math/auto-libm-test-out: Regenerated.
39484         * math/libm-test.inc (acosh_test_data): Add more tests.
39485         (atanh_test_data): Likewise.
39486         (ceil_test_data): Likewise.
39487         (copysign_test_data): Likewise.
39488         * sysdeps/i386/fpu/libm-test-ulps: Update.
39489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39490
39491         * timezone/checktab.awk: Update from tzcode 2013i.
39492         * timezone/private.h: Likewise.
39493         * timezone/scheck.c: Likewise.
39494         * timezone/tzfile.h: Likewise.
39495         * timezone/tzselect.ksh: Likewise.
39496         * timezone/zdump.c: Likewise.
39497         * timezone/zic.c: Likewise.
39498
39499         * math/auto-libm-test-in: Add tests of cpow.
39500         * math/auto-libm-test-out: Regenerated.
39501         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39502         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39503         mpc_cc_c.
39504         (func_calc_desc): Add mpc_cc_c union field.
39505         (test_functions): Add cpow.
39506         (special_fill_2pi): New function.
39507         (special_real_inputs): Add 2pi.
39508         (calc_generic_results): Handle mpc_cc_c.
39509         * sysdeps/i386/fpu/libm-test-ulps: Update.
39510         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39511
39512         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39513         csqrt, ctan and ctanh.
39514         * math/auto-libm-test-out: Regenerated.
39515         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39516         (TEST_COND_x86): Likewise.
39517         (ccos_test_data): Use AUTO_TESTS_c_c.
39518         (ccosh_test_data): Likewise.
39519         (cexp_test_data): Likewise.
39520         (clog_test_data): Likewise.
39521         (csqrt_test_data): Likewise.
39522         (ctan_test_data): Likewise.
39523         (ctan_tonearest_test_data): Likewise.
39524         (ctan_towardzero_test_data): Likewise.
39525         (ctan_downward_test_data): Likewise.
39526         (ctan_upward_test_data): Likewise.
39527         (ctanh_test_data): Likewise.
39528         (ctanh_tonearest_test_data): Likewise.
39529         (ctanh_towardzero_test_data): Likewise.
39530         (ctanh_downward_test_data): Likewise.
39531         (ctanh_upward_test_data): Likewise.
39532         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39533         mpc_c_c.
39534         (func_calc_desc): Add mpc_c_c union field.
39535         (FUNC_mpc_c_c): New macro.
39536         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39537         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39538         ctanh.
39539         (special_fill_min_subnorm_p120): New function.
39540         (special_real_inputs): Add min_subnorm_p120.
39541         (calc_generic_results): Handle mpc_c_c.
39542         * sysdeps/i386/fpu/libm-test-ulps: Update.
39543         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39544
39545 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39546
39547         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39548         (do_sin_slow): New functions.
39549         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39550         (cslow2, csloww1, csloww2): Use the new functions.
39551
39552         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39553         Use M to change sign of result instead of X.  Assume X is
39554         positive.
39555         (csloww1): Likewise.
39556         (__sin): Adjust.
39557         (__cos): Adjust.
39558
39559         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39560         arguments A and DA.
39561         (__sin): Adjust.
39562         (__cos): Likewise.
39563
39564         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39565         (__cos): Likewise.
39566         (sloww1): Don't adjust sign of DX.
39567         (csloww1): Likewise.
39568         (sloww2): Use X directly and don't adjust sign of DX.
39569         (csloww2): Likewise.
39570
39571 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39572
39573         * math/auto-libm-test-in: Add tests of cabs and carg.
39574         * math/auto-libm-test-out: Regenerated.
39575         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39576         (carg_test_data): Likewise.
39577         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39578         mpc_c_f.
39579         (func_calc_desc): Add mpc_c_f union field.
39580         (test_functions): Add cabs and carg.
39581         (calc_generic_results): Handle mpc_c_f.
39582
39583         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39584         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39585         as a macro and a compat symbol.
39586         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39587         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39588         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39589         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39590         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39591         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39592         not use .hidden.
39593         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39594         Likewise.
39595         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39596         Likewise.
39597         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39598         Likewise.
39599         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39600         Likewise.
39601         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39602         Likewise.
39603         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39604         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39605         from GLIBC_2.3.2.
39606
39607 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39608
39609         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39610
39611 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39612
39613         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39614         trailing whitespace removed.
39615         * scripts/config.guess: Update to version 2013-11-29.
39616         * scripts/config.sub: Update to version 2013-10-01.
39617
39618         * math/auto-libm-test-in: Add tests of sincos.
39619         * math/auto-libm-test-out: Regenerated.
39620         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39621         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39622         mpfr_f_11.
39623         (func_calc_desc): Add mpfr_f_11 union field.
39624         (test_functions): Add sincos.
39625         (calc_generic_results): Handle mpfr_f_11.
39626         * sysdeps/i386/fpu/libm-test-ulps: Update.
39627         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39628
39629 2013-12-19  Andreas Schwab  <schwab@suse.de>
39630
39631         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39632         CALL_MCOUNT.
39633         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39634         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39635         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39636
39637 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39638
39639         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39640         * sysdeps/i386/fpu/libm-test-ulps: Update.
39641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39642
39643         [BZ #16293]
39644         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39645         round-to-nearest mode when using frndint.
39646         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39647         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39648         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39649         Likewise.
39650         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39651         sinh test to fail.
39652         * math/auto-libm-test-out: Regenerated.
39653         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39654         (TEST_COND_x86): Likewise.
39655         (expm1_tonearest_test_data): New array.
39656         (expm1_test_tonearest): New function.
39657         (expm1_towardzero_test_data): New array.
39658         (expm1_test_towardzero): New function.
39659         (expm1_downward_test_data): New array.
39660         (expm1_test_downward): New function.
39661         (expm1_upward_test_data): New array.
39662         (expm1_test_upward): New function.
39663         (main): Run the new test functions.
39664         * sysdeps/i386/fpu/libm-test-ulps: Update.
39665         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39666
39667         * include/features.h: Update comment documenting feature test
39668         macros.  Mention _DEFAULT_SOURCE in comment.
39669         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39670         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39671         _BSD_SOURCE and _SVID_SOURCE.
39672         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39673         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39674         !_SVID_SOURCE]: Likewise.
39675         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39676         (__USE_POSIX_IMPLICITLY): Define.
39677         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39678         (_POSIX_SOURCE): Undefine and redefine.
39679         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39680         (_POSIX_C_SOURCE): Likewise.
39681         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39682         (Feature Test Macros): Update documentation of default features.
39683
39684 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39685
39686         * benchtests/Makefile: Add bench-strtok.
39687         * benchtests/bench-strtok.c: New file: strtok benchtest.
39688
39689 2013-12-19  Allan McRae  <allan@archlinux.org>
39690
39691         * manual/install.texi: Suppress menu for plain text output.
39692         * INSTALL: Regenerated.
39693
39694 2013-12-18  Brooks Moses  <bmoses@google.com>
39695
39696         [BZ #15846]
39697         * misc/getauxval.c: Include errno.h.
39698         (__getauxval): Set errno to ENOENT if the requested type is not
39699         found.
39700         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39701         don't declare with __attribute_const__.
39702         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39703         * manual/startup.texi: Document that getauxval sets errno.
39704
39705 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39706
39707         * math/auto-libm-test-in: Add tests of jn and yn.
39708         * math/auto-libm-test-out: Regenerated.
39709         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39710         (yn_test_data): Likewise.
39711         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39712         mpfr_if_f.
39713         (func_calc_desc): Add mpfr_if_f union field.
39714         (FUNC_mpfr_if_f): New macro.
39715         (test_functions): Add jn and yn.
39716         (calc_generic_results): Assert type of second input for
39717         mpfr_ff_f.  Handle mpfr_if_f.
39718         (output_for_one_input_case): Disable all checking for arguments
39719         fitting floating-point types in case of an integer argument.
39720         * sysdeps/i386/fpu/libm-test-ulps: Update.
39721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39722
39723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39724         Don't expect fegetround reference in libm.so.
39725
39726 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39727
39728         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39729         $(config-cflags-nofma).
39730
39731 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39732
39733         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39734         * math/auto-libm-test-out: Regenerated.
39735
39736         [BZ #16338]
39737         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39738         to determine exponent and adjust argument to have exponent of -1.
39739         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39740         log2.
39741         * math/auto-libm-test-out: Regenerated.
39742         * sysdeps/i386/fpu/libm-test-ulps: Update.
39743         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39744
39745 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39746
39747         * manual/probes.texi: Remove cases when per-thread arenas are
39748         disabled.
39749
39750 2013-12-18  Andreas Schwab  <schwab@suse.de>
39751
39752         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39753         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39754         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39755         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39756         * sysdeps/i386/i686/multiarch/Makefile: Update.
39757         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39758
39759 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39760
39761         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39762         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39763
39764 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39765
39766         [BZ #15968]
39767         Support TZ transition times < 00:00:00.
39768         This is needed for version-3 tz-format files; it supports time
39769         stamps past 2037 for America/Godthab (the only entry in the tz
39770         database for which this change is relevant).
39771         * manual/time.texi (TZ Variable): Document transition times
39772         from -167:59:59 through -00:00:01.
39773         * time/tzset.c (tz_rule): Time of day is now signed.
39774         (__tzset_parse_tz): Parse negative time of day.
39775
39776         Document TZ transition times >= 25:00:00.
39777         * manual/time.texi (TZ Variable): Document transition times from
39778         25:00:00 through 167:59:59.  These are already supported, and this
39779         support will help with version-3 tz-format files.
39780
39781         * manual/time.texi (TZ Variable): Modernize North America example
39782         to reflect current (i.e., 2007-and-later) daylight saving rules.
39783
39784         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39785
39786 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39787
39788         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39789         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39790         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39791         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39792         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39793         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39794         * sysdeps/unix/bsd/clock.c: Likewise.
39795         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39796         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39797         * sysdeps/unix/bsd/init-posix.c: Likewise.
39798         * sysdeps/unix/bsd/poll.c: Likewise.
39799         * sysdeps/unix/bsd/ptsname.c: Likewise.
39800         * sysdeps/unix/bsd/seekdir.c: Likewise.
39801         * sysdeps/unix/bsd/setegid.c: Likewise.
39802         * sysdeps/unix/bsd/seteuid.c: Likewise.
39803         * sysdeps/unix/bsd/setgid.c: Likewise.
39804         * sysdeps/unix/bsd/setrgid.c: Likewise.
39805         * sysdeps/unix/bsd/setruid.c: Likewise.
39806         * sysdeps/unix/bsd/setsid.c: Likewise.
39807         * sysdeps/unix/bsd/setuid.c: Likewise.
39808         * sysdeps/unix/bsd/sigaction.c: Likewise.
39809         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39810         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39811         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39812         * sysdeps/unix/bsd/telldir.c: Likewise.
39813         * sysdeps/unix/bsd/times.c: Likewise.
39814         * sysdeps/unix/bsd/usleep.c: Likewise.
39815
39816         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39817         ($(objpfx)libbsd-compat.a): Remove rule.
39818
39819         * include/features.h (__FAVOR_BSD): Do not define.
39820         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39821         features conflicting with POSIX.
39822         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39823         (_BSD_SOURCE): Remove description of not being a subset of other
39824         feature test macros.
39825         * manual/job.texi (getpgrp): Do not document BSD version.
39826         (getpgid): Do not document by reference to BSD getpgrp.
39827         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39828         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39829         * signal/signal.h [__FAVOR_BSD]: Likewise.
39830         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39831         instead of making contents conditional on [__FAVOR_BSD].
39832         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39833
39834 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39835
39836         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39837
39838 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39839
39840         [BZ #16314]
39841         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39842         values below 2**-450, not 2**-500.
39843         * math/auto-libm-test-in: Don't allow spurious underflow from
39844         hypot.
39845         * math/auto-libm-test-out: Regenerated.
39846
39847         [BZ #16316]
39848         [BZ #16330]
39849         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39850         values of ha and hb and sort them after adjusting subnormal
39851         arguments.
39852         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39853         Likewise.
39854         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39855         values of ea and eb and sort them after adjusting subnormal
39856         arguments.
39857         * math/auto-libm-test-in: Do not expect some hypot tests of
39858         subnormals to fail.  Add more hypot tests.
39859         * math/auto-libm-test-out: Regenerated.
39860
39861 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39862
39863         [BZ #13304]
39864         * sysdeps/sh/s_fma.c: New file.
39865         * sysdeps/sh/s_fmaf.c: New file.
39866         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39867         version.
39868         * sysdeps/sh/Implies: Add sh/soft-fp.
39869
39870 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39871
39872         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39873         level of indirection to members `objname', `errstring', `malloced'.
39874         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39875         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39876         it as the __longjmp argument (just pass 1 instead).
39877         (_dl_catch_error): Initialize C with argument pointers and address of
39878         volatile local ERRCODE rather than copying values out of C at return.
39879
39880 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39881
39882         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39883         * math/auto-libm-test-out: Regenerated.
39884         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39885         (hypot_test_data): Likewise.
39886         (pow_test_data): Likewise.
39887         (pow_tonearest_test_data): Likewise.
39888         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39889         mpfr_ff_f.
39890         (func_calc_desc): Add mpfr_ff_f union field.
39891         (FUNC_mpfr_ff_f): New macro.
39892         (test_functions): Add atan2, hypot and pow.
39893         (special_fill_min): New function.
39894         (special_fill_minus_min): Likewise.
39895         (special_fill_min_subnorm): Likewise.
39896         (special_fill_minus_min_subnorm): Likewise.
39897         (special_real_inputs): Add min, -min, min_subnorm and
39898         -min_subnorm.
39899         (calc_generic_results): Handle mpfr_ff_f.
39900         * sysdeps/i386/fpu/libm-test-ulps: Update.
39901         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39902
39903 2013-12-16  Will Newton  <will.newton@linaro.org>
39904
39905         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
39906         (Aligned Memory Blocks): Add documentation for aligned_alloc
39907         and suggest it as an alternative to posix_memalign.
39908         (Hooks for Malloc): Document __memalign_hook is also called
39909         for aligned_alloc.  (Summary of Malloc): Add summary for
39910         aligned alloc.  Document __memalign_hook is also called
39911         for aligned_alloc.
39912
39913 2013-12-16  Will Newton  <will.newton@linaro.org>
39914
39915         * manual/memory.texi (Malloc Examples): Clarify default
39916         alignment documentation.  Suggest posix_memalign rather
39917         than memalign or valloc.
39918         (Aligned Memory Blocks): Remove suggestion to use memalign
39919         or valloc.  Remove obsolete comment about BSD.
39920         Document memalign errno values and mark the function obsolete.
39921         Document posix_memalign returned error codes.  Mark valloc
39922         as obsolete.  (Hooks for Malloc): __memalign_hook is also
39923         called for posix_memalign and valloc.
39924         (Summary of Malloc): Add posix_memalign to function summary.
39925         __memalign_hook is also called for posix_memalign and valloc.
39926
39927 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39928
39929         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
39930         TAYLOR_SIN.
39931         (__sin): Adjust.
39932         (__cos): Likewise.
39933         (sloww): Use mynumber union.  Expand ternary operator into
39934         if-else statements.
39935         (cslow): use mynumber union.
39936
39937 2013-12-16  Allan McRae  <allan@archlinux.org>
39938
39939         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
39940         * configure: Regenerated.
39941
39942         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
39943
39944         [BZ #14120]
39945         * configure.ac: Added --enable-maintainer-mode. Check for
39946         autoconf when enabled.
39947         * configure: Regenerated.
39948
39949         * nscd/nscd.service: New file.
39950         * nscd/nscd.tmpfiles: New file.
39951
39952 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
39953
39954         [BZ #12100]
39955         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
39956         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
39957         * sysdeps/x86_64/multiarch/strstr.c: ... here.
39958         (strstr): Add __strstr_sse2_unaligned ifunc.
39959         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
39960         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
39961         (strcasestr): Remove __strcasestr_sse42 ifunc.
39962         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
39963         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
39964         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
39965
39966 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39967
39968         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
39969         * sysdeps/sh/bits/fenv.h: ... here.
39970         * sysdeps/sh/sh4/fpu/bits: Remove directory.
39971
39972 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39973
39974         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
39975
39976         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
39977         hypotf multiarch implementations.
39978         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
39979         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
39980         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
39981         multiarch hypot for PPC64.
39982         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
39983         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
39984         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
39985         multiarch hypotf for PPC64.
39986
39987         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
39988         modff multiarch implementations.
39989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
39990         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
39991         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
39992         multiarch modf for PPC64.
39993         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
39994         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
39995         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
39996         multiarch modff for PPC64.
39997
39998         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
39999         and logl multiarch implementations.
40000         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
40001         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
40002         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
40003         multiarch logb for PPC64.
40004         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
40005         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
40006         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
40007         multiarch logb for PPC64.
40008         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
40009         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
40010         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
40011         multiarch logb for PPC64.
40012
40013         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
40014         isinff multiarch implementation.
40015         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
40016         file.
40017         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
40018         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
40019         multiarch isinf for PPC64.
40020         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
40021         file.
40022         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
40023         multiarch isinff for PPC64.
40024
40025         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
40026         finitef multiarch implementation.
40027         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
40028         file.
40029         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
40030         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
40031         multiarch finite for PPC64.
40032         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
40033         file.
40034         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
40035         multiarch finitef for PPC64.
40036
40037         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
40038         lrint multiarch implementation.
40039         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
40040         file.
40041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
40042         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
40043         multiarch llrint for PPC64.
40044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
40045         multiarch lrint for PPC64.
40046
40047         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
40048         copysignf multiarch implementation.
40049         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
40050         file.
40051         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
40052         file.
40053         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
40054         multiarch copysign for PPC64.
40055         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
40056         multiarch copysignf for PPC64.
40057
40058         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
40059         multiarch implementation.
40060         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
40061         file.
40062         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
40063         file.
40064         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
40065         file.
40066         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
40067         file.
40068         multiarch llround for PPC64.
40069         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
40070         multiarch trunc for PPC64.
40071         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
40072         multiarch truncf for PPC64.
40073
40074         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
40075         multiarch implementation.
40076         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
40077         file.
40078         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
40079         file.
40080         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
40081         file.
40082         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
40083         file.
40084         multiarch llround for PPC64.
40085         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
40086         multiarch round for PPC64.
40087         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
40088         multiarch roundf for PPC64.
40089
40090         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
40091         multiarch implementation.
40092         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
40093         file.
40094         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
40095         file.
40096         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
40097         file.
40098         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
40099         file.
40100         multiarch llround for PPC64.
40101         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
40102         multiarch floor for PPC64.
40103         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
40104         multiarch floorf for PPC64.
40105
40106         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
40107         multiarch implementation.
40108         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
40109         file.
40110         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
40111         file.
40112         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
40113         file.
40114         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
40115         file.
40116         multiarch llround for PPC64.
40117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
40118         multiarch ceil for PPC64.
40119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
40120         multiarch ceilf for PPC64.
40121
40122         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
40123         multiarch implementation.
40124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
40125         file.
40126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
40127         file.
40128         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
40129         file.
40130         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
40131         multiarch llround for PPC64.
40132         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
40133         multiarch lround for PPC64.
40134
40135         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
40136         multiarch implementation.
40137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
40138         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
40139         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
40140         file.
40141         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
40142         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
40143         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
40144         multiarch isnan for PPC64.
40145         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
40146         multiarch isnanf for PPC64.
40147
40148         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
40149         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
40150         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
40151         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
40152         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
40153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
40154
40155         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
40156         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
40157         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
40158         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
40159
40160         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
40161         multiarch implementations.
40162         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40163         (__libc_ifunc_impl_list): Likewise.
40164         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
40165         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
40166         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
40167         multiarch stpcpy for PPC64.
40168
40169         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
40170         multiarch implementations.
40171         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40172         (__libc_ifunc_impl_list): Likewise.
40173         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
40174         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
40175         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
40176         multiarch strcpy for PPC64.
40177
40178         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
40179         redefine function name.
40180         (_wordcopy_fwd_dest_aligned): Likewise.
40181         (_wordcopy_bwd_aligned): Likewise.
40182         (_wordcopy_bwd_dest_aligned): Likewise.
40183         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
40184         multiarch implementations.
40185         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40186         (__libc_ifunc_impl_list): Likewise.
40187         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
40188         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
40189         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
40190         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
40191         multiarch wcscpy for PPC64.
40192
40193         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
40194         multiarch implementations.
40195         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40196         (__libc_ifunc_impl_list): Likewise.
40197         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
40198         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
40199         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
40200         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
40201         multiarch wcscpy for PPC64.
40202
40203         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
40204         multiarch implementations.
40205         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40206         (__libc_ifunc_impl_list): Likewise.
40207         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
40208         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
40209         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
40210         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
40211         multiarch wcsrchr for PPC64.
40212
40213         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
40214         multiarch implementations.
40215         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40216         (__libc_ifunc_impl_list): Likewise.
40217         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
40218         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
40219         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
40220         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
40221         multiarch wcschr for PPC64.
40222
40223         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
40224         multiarch implementations.
40225         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40226         (__libc_ifunc_impl_list): Likewise.
40227         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
40228         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
40229         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
40230         multiarch strchrnul for PPC64.
40231
40232         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
40233         implementations.
40234         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40235         (__libc_ifunc_impl_list): Likewise.
40236         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
40237         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
40238         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
40239         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
40240         strchr for PPC64.
40241
40242         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
40243         implementations.
40244         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40245         (__libc_ifunc_impl_list): Likewise.
40246         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
40247         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
40248         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
40249         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
40250         strncmp for PPC64.
40251
40252         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
40253         multiarch implementations.
40254         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40255         (__libc_ifunc_impl_list): Likewise.
40256         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
40257         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
40258         strncasecmp for PPC64.
40259         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
40260         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
40261         multiarch strncasecmp_l for PPC64.
40262
40263         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
40264         multiarch implementations.
40265         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40266         (__libc_ifunc_impl_list): Likewise.
40267         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
40268         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
40269         multiarch strcasecmp for PPC64.
40270         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
40271         file.
40272         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
40273         multiarch strcasecmp_l for PPC64.
40274
40275         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
40276         implementations.
40277         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40278         (__libc_ifunc_impl_list): Likewise.
40279         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
40280         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
40281         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
40282         strnlen for PPC64.
40283
40284         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
40285         implementations.
40286         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40287         (__libc_ifunc_impl_list): Likewise.
40288         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
40289         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
40290         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
40291         strlen for PPC64.
40292
40293         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
40294         implementations.
40295         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40296         (__libc_ifunc_impl_list): Likewise.
40297         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
40298         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
40299         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
40300         rawmemrchr for PPC64.
40301
40302         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
40303         implementation.
40304         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40305         (__libc_ifunc_impl_list): Likewise.
40306         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
40307         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
40308         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
40309         memrchr for PPC64.
40310
40311         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
40312         implementation.
40313         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40314         (__libc_ifunc_impl_list): Likewise.
40315         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
40316         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
40317         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
40318         memchr for PPC64.
40319
40320         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
40321         implementation.
40322         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40323         (__libc_ifunc_impl_list): Likewise.
40324         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
40325         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
40326         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
40327         mempcpy for PPC64.
40328
40329         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
40330         avoid cretion of __bzero symbol.
40331         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
40332         Likewise.
40333         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
40334         Likewise.
40335         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
40336         Likewise.
40337         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
40338         multiarch implementations.
40339         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40340         (__libc_ifunc_impl_list): Likewise.
40341         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
40342         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
40343         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
40344         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
40345         bzero for PPC32.
40346         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
40347         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
40348         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
40349         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
40350         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
40351         memset for PPC64.
40352         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
40353
40354         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
40355         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
40356         implementations.
40357         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40358         (__libc_ifunc_impl_list): Likewise.
40359         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
40360         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
40361         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
40362         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
40363         memcmp for PPC64.
40364
40365         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
40366         multiarch for POWER/PPC64.
40367         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
40368         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
40369         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
40370         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
40371         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
40372         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
40373         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
40374         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
40375         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
40376         memcpy for PPC64.
40377
40378         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
40379         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
40380         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
40381         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
40382         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
40383         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
40384         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
40385         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
40386         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
40387         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
40388         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
40389         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
40390         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
40391         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
40392         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
40393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
40394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
40395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
40396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
40397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
40398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
40399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
40400
40401 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40402
40403         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
40404
40405 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40406
40407         * benchtests/Makefile (bench): Add exp2 and log2.
40408         (LDLIBS-bench-exp2): Add -lm.
40409         (LDLIBS-bench-log2): Likewise.
40410         * benchtests/exp2-inputs: New inputs file.
40411         * benchtests/log2-inputs: New inputs file.
40412         * benchtests/log-inputs: Add new inputs.
40413         * benchtests/tan-inputs: Likewise.
40414
40415 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
40416
40417         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
40418         definition...
40419         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
40420         (csloww2): ... from here.
40421
40422         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
40423         instead of structures.
40424         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
40425         (POLYNOMIAL): Likewise.
40426         (TAYLOR_SLOW): Likewise.
40427         (__sin): Likewise.
40428         (__cos): Likewise.
40429         (slow1): Likewise.
40430         (slow2): Likewise.
40431         (sloww): Likewise.
40432         (sloww1); Likewise.
40433         (sloww2): Likewise.
40434         (bsloww1): Likewise.
40435         (bsloww2): Likewise.
40436         (cslow2): Likewise.
40437         (csloww): Likewise.
40438         (csloww1): Likewise.
40439         (csloww2): Likewise.
40440
40441 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40442
40443         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40444         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40445         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40446         * malloc/hooks.c (realloc_check): Likewise.
40447
40448         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40449         * malloc/arena.c: Remove PER_THREAD conditional.
40450         [!PER_THREAD]: Remove code.
40451         (ptmalloc_unlock_all2): Likewise.
40452         (ptmalloc_init): Likewise.
40453         (_int_new_arena): Likewise.
40454         (arena_get2): Likewise.
40455         * malloc/hooks.c (__malloc_get_state): Likewise.
40456         (__malloc_set_state): Likewise.
40457         * malloc/malloc.c: Likewise.
40458         (struct malloc_state): Likewise.
40459         (struct malloc_par): Likewise.
40460         (__libc_realloc): Likewise.
40461         (__libc_mallopt): Likewise.
40462
40463 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40464
40465         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40466
40467 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40468
40469         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40470         macro to a function.  Check for zero perturb_byte.
40471         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40472
40473         * malloc/malloc.c: (force_reg): Remove.
40474         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40475         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40476         force_reg by atomic_forced_read.
40477         * malloc/arena.c (ptmalloc_init): Likewise.
40478         * malloc/hooks.c (top_check): Likewise.
40479
40480 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40481
40482         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40483
40484 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40485
40486         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40487
40488 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40489
40490         * math/auto-libm-test-in: Add tests of lgamma.
40491         * math/auto-libm-test-out: Regenerated.
40492         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40493         (M_LOG_2_SQRT_PIl): Likewise.
40494         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40495         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40496         mpfr_f_f1.
40497         (func_calc_desc): Add mpfr_f_f1 union field.
40498         (ARGS1): New macro.
40499         (ARGS2): Likewise.
40500         (ARGS3): Likewise.
40501         (ARGS4): Likewise.
40502         (RET1): Likewise.
40503         (RET2): Likewise.
40504         (CALC): Likewise.
40505         (FUNC): Likewise.
40506         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40507         (test_functions): Add lgamma.
40508         (calc_generic_results): Handle mpfr_f_f1.
40509         * sysdeps/i386/fpu/libm-test-ulps: Update.
40510         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40511
40512 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40513
40514         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40515         __mpn_add_n for PowerPC64/POWER7.
40516         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40517         __mpn_sub_n for PowerPC64/POWER7.
40518
40519         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40520         __mpn_addmul_1 for PowerPC64.
40521         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40522         __mpn_submul_1 for PowerPC64.
40523         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40524         for PowerPC64.
40525         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40526         for PowerPC64.
40527
40528 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40529
40530         [BZ #15089]
40531         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40532
40533 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40534
40535         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40536
40537         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40538         add multiarch folders.
40539         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40540         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40541         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40542         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40543         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40544         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40545         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40546         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40547         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40548         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40549         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40556
40557         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40558         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40559         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40560         New file.
40561         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40562         New file.
40563         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40564         multiarch __ieee754_hypot for PowerPC32.
40565         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40566         New file.
40567         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40568         New file.
40569         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40570         multiarch __ieee754_hypotf for PowerPC32.
40571
40572         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40573         long_double_symbol only if __logbl is defined.
40574         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40575         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40576         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40577         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40578         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40579         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40580         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40581         path for implementation.
40582         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40583         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40584         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40585         logb, and logbl multiarch implementations for PowerPC32.
40586         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40587         file.
40588         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40589         file.
40590         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40591         multiarch logb for PowerPC32.
40592         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40593         file.
40594         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40595         file.
40596         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40597         multiarch logbf for PowerPC32.
40598         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40599         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40600         file.
40601         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40602         multiarch logbl implementation for PowerPC32.
40603
40604         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40605         and modff multiarch implementations.
40606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40607         New file.
40608         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40609         New file.
40610         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40611         multiarch modf for PowerPC32.
40612         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40613         New file.
40614         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40615         New file.
40616         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40617         multiarch modff for PowerPC32.
40618
40619         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40620         and lrintf multiarch implementations.
40621         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40622         New file.
40623         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40624         New file.
40625         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40626         multiarch lrint for PowerPC32.
40627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40628         file: multiarch lrintf for PowerPC32.
40629
40630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40631         and lroundf multiarch implementations.
40632         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40633         New file.
40634         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40635         New file.
40636         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40637         New file.
40638         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40639         multiarch lround for PowerPC32.
40640         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40641         file: multiarch lroundf for PowerPC32.
40642
40643         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40644         copysign and copysignf multiarch implementations.
40645         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40646         New file.
40647         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40648         New file.
40649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40650         file: multiarch copysign for PowerPC32.
40651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40652         file: multiarch copysignf for PowerPC32.
40653
40654         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40655         and truncf multiarch implementations.
40656         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40657         New file.
40658         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40659         file.
40660         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40661         multiarch trunc for PowerPC32.
40662         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40663         New file.
40664         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40665         New file.
40666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40667         multiarch truncf for PowerPC32.
40668
40669         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40670         and roundf multiarch implementations.
40671         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40672         New file.
40673         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40674         file.
40675         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40676         multiarch round for PowerPC32.
40677         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40678         New file.
40679         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40680         New file.
40681         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40682         multiarch roundf for PowerPC32.
40683
40684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40685         and floorf multiarch implementations.
40686         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40687         New file.
40688         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40689         file.
40690         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40691         multiarch floor for PowerPC32.
40692         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40693         New file.
40694         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40695         New file.
40696         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40697         multiarch floorf for PowerPC32.
40698
40699         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40700         and ceilf multiarch implementations.
40701         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40702         New file.
40703         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40704         file.
40705         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40706         multiarch ceil for PowerPC32.
40707         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40708         New file.
40709         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40710         file.
40711         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40712         multiarch ceilf for PowerPC32.
40713
40714         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40715         is defined.
40716         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40717         FINITEF is defined.
40718         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40719         and finitef multiarch implementations.
40720         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40721         New file.
40722         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40723         file.
40724         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40725         multiarch finite for PowerPC32.
40726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40727         New file.
40728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40729         file: multiarch finitef for PowerPC32.
40730
40731         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40732         and isinff multiarch implementations.
40733         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40734         file.
40735         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40736         file.
40737         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40738         multiarch isinf for PowerPC32.
40739         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40740         New file.
40741         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40742         multiarch isinff for PowerPC32.
40743
40744         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40745         alias when __isnan is defined.
40746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40747         and isnanf multiarch implementations.
40748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40749         file.
40750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40751         file.
40752         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40753         file.
40754         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40755         file.
40756         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40757         multiarch isnan for PowerPC32.
40758         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40759         New file.
40760         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40761         New file.
40762         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40763         multiarch isnanf for PowerPC32.
40764
40765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40766         and sqrtf multiarch implementations.
40767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40768         file.
40769         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40770         file.
40771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40772         multiarch sqrt for PowerPC32.
40773         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40774         file.
40775         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40776         file.
40777         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40778         multiarch sqrtf for PowerPC32.
40779
40780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40781         and llroundf multiarch implementations.
40782         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40783         New file.
40784         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40785         New file.
40786         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40787         New file.
40788         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40789         file: multiarch llround for PowerPC32.
40790         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40791         file: multiarch llroundf for PowerPC32.
40792
40793         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40794         multiarch PowerPC32 fpu implementations.
40795         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40796         New file.
40797         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40798         New file.
40799         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40800         multiarch llrint for PowerPC32.
40801         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40802         New file.
40803         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40804         New file.
40805         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40806         file.
40807
40808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40809
40810         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40811         file.
40812         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40813         file.
40814         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40815         file.
40816         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40817         multiarch wordcopy for PPC32.
40818         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40819         wordcopy objects.
40820         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40821         (__libc_ifunc_impl_list): Likewise.
40822         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40823         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40824         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40825         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40826         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40827         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40828
40829         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40830         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40831         file.
40832         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40833         file.
40834         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40835         file.
40836         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40837         multiarch wcscpy for PPC32.
40838         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40839         multiarch objects.
40840         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40841         (__libc_ifunc_impl_list): Likewise.
40842         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40843         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40844         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40845         sysdeps/powerpc/power6/wcscpy.c.
40846
40847         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40848         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40849         file.
40850         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40851         file.
40852         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40853         file.
40854         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40855         multiarch wcsrchr for PPC32.
40856         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40857         multiarch objects.
40858         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40859         (__libc_ifunc_impl_list): Likewise.
40860         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40861         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40862         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40863         sysdeps/powerpc/power6/wcsrchr.c.
40864
40865         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40866         file.
40867         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40868         file.
40869         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40870         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40871         multiarch wcschr for PPc32.
40872         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40873         multiarch objects.
40874         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40875         (__libc_ifunc_impl_list): Likewise.
40876         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40877         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40878         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40879         sysdeps/powerpc/power6/wcschr.c.
40880
40881         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40882         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40883         file.
40884         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40885         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40886         file: multiarch strchr for PPC32.
40887         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40888         multiarch objects.
40889         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40890         (__libc_ifunc_impl_list): Likewise.
40891
40892         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40893         name.
40894         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40895         file.
40896         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40897         file.
40898         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40899         multiarch strchrnul for PPC32.
40900         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40901         multiarch objects.
40902         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40903         (__libc_ifunc_impl_list): Likewise.
40904
40905         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
40906         file.
40907         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
40908         multiarch strncasecmp for PPC32.
40909         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
40910         file.
40911         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
40912         multiarch strncasecmp_l for PPC32.
40913         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
40914         strncasecmp multiarch objects.
40915         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40916         (__libc_ifunc_impl_list): Likewise.
40917
40918         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
40919         file.
40920         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
40921         multiarch strncasecmp for PPC32.
40922         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40923         New file.
40924         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
40925         multiarch strcasecmp_l for PPC32.
40926         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
40927         multiarch objects.
40928         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40929         (__libc_ifunc_impl_list): Likewise.
40930
40931         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
40932         file.
40933         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
40934         file.
40935         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
40936         multiarch strncmp for PPC32.
40937         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
40938         multiarch objects.
40939         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40940         (__libc_ifunc_impl_list): Likewise.
40941
40942         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
40943         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
40944         file.
40945         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
40946         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
40947         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
40948         multiarch objects.
40949         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40950         (__libc_ifunc_impl_list): Likewise.
40951
40952         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
40953         file.
40954         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
40955         file.
40956         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
40957         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
40958         multiarch objects.
40959         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40960         (__libc_ifunc_impl_list): Likewise.
40961
40962         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
40963         file.
40964         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
40965         file.
40966         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
40967         multiarch rawmemchr for PPC32.
40968         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
40969         multiarch objects.
40970         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40971         (__libc_ifunc_impl_list): Likewise.
40972
40973         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
40974         file.
40975         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
40976         file.
40977         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
40978         file: memrchr multiarch for PPC32.
40979         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
40980         multiarch objects.
40981         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40982         (__libc_ifunc_impl_list): Likewise.
40983
40984         * string/memchr.c (__memchr): Using macro to redefine symbol name.
40985         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
40986         file.
40987         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
40988         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
40989         multiarch memchr for PPC32.
40990         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
40991         multiarch objects.
40992         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
40993         (__libc_ifunc_impl_list): Likewise.
40994
40995         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
40996         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
40997         file.
40998         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
40999         file.
41000         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
41001         file: multiarch mempcpy for PPC32.
41002         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
41003         multiarch objects.
41004         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41005         (__libc_ifunc_impl_list): Likewise.
41006
41007         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
41008         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
41009         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
41010         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
41011         multiarch bzero for PPC32.
41012         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
41013         file.
41014         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
41015         file.
41016         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
41017         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
41018         file: multiarch memset for PPC32.
41019         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
41020         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
41021         memset multiarch objects.
41022         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41023         (__libc_ifunc_impl_list): Likewise.
41024
41025         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
41026         file.
41027         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
41028         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
41029         memcmp for PPC32.
41030         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
41031         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
41032         multiarch objects.
41033         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41034         (__libc_ifunc_impl_list): Likewise.
41035
41036         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
41037         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
41038         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
41039         file.
41040         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
41041         file.
41042         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
41043         file.
41044         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
41045         multiarch memcpy for PPC32.
41046         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
41047         multiarch objects.
41048         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41049         (__libc_ifunc_impl_list): Likewise.
41050
41051         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
41052         support multiarch for POWER/PPC32.
41053         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
41054         Likewise.
41055         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
41056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
41057         Implies file to make multiarch folder appers before the fpu and
41058         default folder for power4 configuration.
41059
41060 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
41061
41062         * scripts/bench.pl: Append volatile keyword to type.
41063
41064 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41065
41066         * sysdeps/sh/sotruss-lib.c: New file.
41067         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
41068
41069 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41070
41071         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41072
41073 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
41074
41075         [BZ #6810]
41076         * math/w_tgamma.c: Include <errno.h>.
41077         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
41078         * math/w_tgammaf.c: Include <errno.h>.
41079         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
41080         * math/w_tgammal.c: Include <errno.h>.
41081         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
41082         * math/auto-libm-test-in: Do not allow missing errno on tgamma
41083         underflow.  Add more tgamma tests.
41084         * math/auto-libm-test-out: Regenerated.
41085         * sysdeps/i386/fpu/libm-test-ulps: Update.
41086         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41087
41088         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
41089         sin, sinh, tan, tanh, tgamma, y0 and y1.
41090         * math/auto-libm-test-out: Regenerated.
41091         * math/libm-test.inc (TEST_COND_x86_64): New macro.
41092         (TEST_COND_x86): Likewise.
41093         (M_E2l): Remove macro.
41094         (M_E3l): Likewise.
41095         (M_2_SQRT_PIl): Likewise.
41096         (M_SQRT_PIl): Likewise.
41097         (M_1_DIV_El): Likewise.
41098         (log_test_data): Use AUTO_TESTS_f_f.
41099         (log10_test_data): Likewise.
41100         (log1p_test_data): Likewise.
41101         (log2_test_data): Likewise.
41102         (sin_test_data): Likewise.
41103         (sin_tonearest_test_data): Likewise.
41104         (sin_towardzero_test_data): Likewise.
41105         (sin_downward_test_data): Likewise.
41106         (sin_upward_test_data): Likewise.
41107         (sinh_test_data): Likewise.
41108         (sinh_tonearest_test_data): Likewise.
41109         (sinh_towardzero_test_data): Likewise.
41110         (sinh_downward_test_data): Likewise.
41111         (sinh_upward_test_data): Likewise.
41112         (tan_test_data): Likewise.
41113         (tan_tonearest_test_data): Likewise.
41114         (tan_towardzero_test_data): Likewise.
41115         (tan_downward_test_data): Likewise.
41116         (tan_upward_test_data): Likewise.
41117         (tanh_test_data): Likewise.
41118         (tgamma_test_data): Likewise.
41119         (y0_test_data): Likewise.
41120         (y1_test_data): Likewise.
41121         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
41122         (special_real_inputs): Add pi/4.
41123         * sysdeps/i386/fpu/libm-test-ulps: Update.
41124         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41125
41126 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41127
41128         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
41129         "longjmp_target" static probes.
41130         (__longjmp): Rename to __longjmp_symbol.
41131         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
41132         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
41133         on which longjmp to generate.
41134         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
41135         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
41136         probe.
41137         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41138         (__sigjmp_save): Rename to __sigjmp_save_symbol.
41139         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
41140         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
41141         and __sigjmp_save_symbol based on which sigsetjmp to generated.
41142         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
41143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
41144         __longjmp_symbol based on which __longjmp to generate.
41145         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
41146         probe.
41147         (setjmp): Rename to setjmp_symbol.
41148         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41149         (_setjmp): Rename to _setjmp_symbol.
41150         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41151         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
41152         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
41153         which setjmp to generate.
41154         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
41155         "longjmp_target" static probes.
41156
41157 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
41158
41159         * benchtests/README: Add note about output arguments.
41160         * benchtests/bench-sincos.c: Remove file.
41161         * benchtests/sincos-inputs: New file.
41162         * scripts/bench.pl: Identify output arguments and define
41163         static variables for them.
41164
41165         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
41166
41167         [BZ #15941]
41168         * Makefile (INSTALL): Add install-plain.texi as the primary
41169         dependency.
41170         * manual/install-plain.texi: New file.
41171         * manual/install.texi: Include node directive only for
41172         non-plaintext output.
41173
41174 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
41175
41176         * stdlib/longlong.h: Update from GCC.
41177
41178         [BZ #6807]
41179         [BZ #15901]
41180         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
41181         * math/w_j0f.c (y0f): Likewise.
41182         * math/w_j0l.c (__y0l): Likewise.
41183         * math/w_j1.c (y1): Likewise.
41184         * math/w_j1f.c (y1f): Likewise.
41185         * math/w_j1l.c (__y1l): Likewise.
41186         * math/w_jn.c (yn): Likewise.
41187         * math/w_jnf.c (ynf): Likewise.
41188         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
41189         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
41190         value for Bessel function domain errors outside _SVID_ mode.
41191         Adjust sign of return value for yn (negative integer, 0).
41192         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
41193         by zero in return for negative x and set sign appropriately for
41194         negative n.
41195         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
41196         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
41197         * math/libm-test.inc (y0_test_data): Add more tests and adjust
41198         expectations in error cases.
41199         (y1_test_data): Likewise.
41200         (yn_test_data): Likewise.
41201         * sysdeps/i386/fpu/libm-test-ulps: Update.
41202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41203
41204 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41205
41206         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
41207         "64" to "64-v1".  Add "64-v2".
41208         (abi-64-options): Rename to ...
41209         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
41210         (abi-64-condition): Rename to ...
41211         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
41212         (abi-64-ld-soname): Rename to ...
41213         (abi-64-v1-ld-soname): ... this.
41214         (abi-64-v2-options): Define.
41215         (abi-64-v2-condition): Likewise.
41216         (abi-64-v2-ld-soname): Likewise.
41217         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
41218         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
41219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
41220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
41221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
41222
41223 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41224             Alan Modra  <amodra@gmail.com>
41225
41226         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
41227         New versions for use with the ELFv2 ABI.
41228         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
41229         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
41230         declaration.
41231         (struct La_ppc64v2_retval): Likewise.
41232         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
41233         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
41234         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
41235         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
41236         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
41237         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
41238         Do not save or restore CR.
41239         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
41240         (_dl_profile_resolve): Do no save or restore CR.  Support extended
41241         return values for ELFv2 ABI.  Fix location of FPR return registers.
41242         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
41243         updated values for _CALL_ELF == 2.
41244         (La_regs, La_retval, int_retval): Likewise.
41245
41246 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41247
41248         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
41249         (FRAME_MIN_SIZE_PARM): Likewise.
41250         (FRAME_BACKCHAIN): Likewise.
41251         (FRAME_CR_SAVE): Likewise.
41252         (FRAME_LR_SAVE): Likewise.
41253         (FRAME_TOC_SAVE): Likewise.
41254         (FRAME_PARM_SAVE): Likewise.
41255         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
41256         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
41257         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41258         (call_mcount_parm_offset): New macro.
41259         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
41260         (PROF): Use symbolic stack frame offsets.
41261         (TAIL_CALL_SYSCALL_ERROR): Likewise.
41262         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
41263         Redefine in terms of FRAME_MIN_SIZE.
41264         (_dl_runtime_resolve): Use symbolic stack frame offsets.
41265         (_dl_profile_resolve): Likewise.  Update comment.
41266         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
41267         symbols stack frame offsets.
41268         (__sigsetjmp): Likewise.
41269         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
41270         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
41271         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
41272         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
41273
41274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
41275         (FRAME_BACKCHAIN): Remove.
41276         (FRAME_CR_SAVE): Likewise.
41277         (FRAME_LR_SAVE): Likewise.
41278         (FRAME_COMPILER_DW): Likewise.
41279         (FRAME_LINKER_DW): Likewise.
41280         (FRAME_TOC_SAVE): Likewise.
41281         (FRAME_PARM_SAVE): Likewise.
41282         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
41283         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
41284         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
41286         (CHECK_SP): Use symbolic stack frame offsets.
41287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
41288         zone" instead of caller's parameter save area for temp storage.
41289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
41290         Likewise.  Also, use symbolic stack frame offsets.
41291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
41292         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
41293         our own stack frame instead of the caller's.
41294         (__socket): Use symbolic stack frame offsets.
41295
41296 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41297             Alan Modra  <amodra@gmail.com>
41298
41299         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
41300         Define.
41301         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
41302         (PPC64_LOCAL_ENTRY_OFFSET): Define.
41303         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
41304         New function.
41305         (elf_machine_fixup_plt): Call it.
41306         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
41307         reloc arguments.
41308         (elf_machine_rela): Update call to elf_machine_plt_conflict.
41309         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41310         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
41311         r2 before calling target.
41312
41313 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41314             Alan Modra  <amodra@gmail.com>
41315
41316         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
41317         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
41318         versions of macros to support ELFv2 ABI.
41319         (LOCALENTRY): New macro.
41320         (ENTRY, EALIGN): Use it.
41321         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
41322         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
41323         fall through into ENTRY entry point.
41324         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
41325         Only define if _CALL_ELF != 2.
41326
41327         (elf_machine_matches_host): Verify ABI version matches.
41328         (RTLD_START): Use LOCALENTRY.
41329         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
41330         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
41331         (PLT_ENTRY_WORDS): New macro.
41332         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
41333         (elf_machine_runtime_setup): Support ELFv2 ABI.
41334         (elf_machine_fixup_plt): Likewise.
41335         (elf_machine_plt_conflict): Likewise.
41336         (resolve_ifunc): Likewise.
41337         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41338         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41339         Likewise.
41340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
41341         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
41342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41343         (makecontext): Support ELFv2 ABI.
41344         * elf/elf.h (EF_PPC64_ABI): Define.
41345
41346 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41347
41348         * sysdeps/powerpc/powerpc64/sysdep.h
41349         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
41350         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
41351         (ENTRY) [ASSEMBLER]: ... but instead here ...
41352         (EALIGN) [ASSEMBLER]: ... and here.
41353         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
41354         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
41355         (ENTRY_2) [!ASSEMBLER]: Use it.
41356         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
41357         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
41358         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41359         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
41360         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
41361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
41362         Use PPC64_LOAD_FUNCPTR.
41363
41364         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
41365
41366 2013-12-04  Alan Modra  <amodra@gmail.com>
41367
41368         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
41369         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
41370         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
41371         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
41372
41373         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
41374         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
41375         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
41376         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
41377         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
41378         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
41379
41380 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41381
41382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41383         (__makecontext): Fix incorrect CFI when backtracing out of
41384         context created via makecontext.
41385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
41386         (__setcontext): Fix incorrect CFI during switch to new context.
41387         (__novec_setcontext): Likewise.
41388
41389 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41390
41391         [BZ #4772]
41392         * time/strptime_l.c (__strptime_internal): Allow modifiers
41393         in strptime.
41394         * time/tst-strptime.c (day_tests): Add testcase.
41395
41396 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41397
41398         * scripts/bench.pl: Skip over blank lines.
41399
41400 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41401
41402         [BZ #926]
41403         * manual/time.texi (Calendar Time): Clarify what timezone functions
41404         use.
41405
41406 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41407
41408         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41409
41410 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41411
41412         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
41413         implementation.
41414         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
41415         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
41416         * debug/memset_chk.c (__memset_chk): Likewise.
41417         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
41418         * debug/strncpy_chk.c: Likewise.
41419
41420 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41421
41422         [BZ #15268]
41423         [BZ #15425]
41424         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
41425         (__ieee754_exp): For possibly underflowing results, check size of
41426         result and force underflow exception if required.
41427         * math/auto-libm-test-in: Add more tests of exp.
41428         * math/auto-libm-test-out: Regenerated.
41429         * sysdeps/i386/fpu/libm-test-ulps: Update.
41430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41431
41432         [BZ #16283]
41433         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
41434         * math/w_exp2f.c (__exp2f): Likewise.
41435         * math/w_exp2l.c (__exp2l): Likewise.
41436         * math/auto-libm-test-in: Do not allow missing errno on exp2
41437         underflow.
41438         * math/auto-libm-test-out: Regenerated.
41439
41440 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41441
41442         [BZ #16274]
41443         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41444         handle filename validation.
41445         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41446         (do_open): Delete.
41447
41448 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41449
41450         [BZ #6786]
41451         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41452         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41453         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41454         <float.h>.
41455         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41456         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41457         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41458         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41459         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41460         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41461         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41462         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41463         Add more erfc tests.
41464         * math/auto-libm-test-out: Regenerated.
41465         * sysdeps/i386/fpu/libm-test-ulps: Update.
41466         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41467
41468         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41469         exp2, expm1, j0 and j1.
41470         * math/auto-libm-test-out: Regenerated.
41471         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41472         (erfc_test_data): Likewise.
41473         (exp_test_data): Likewise.
41474         (exp_tonearest_test_data): Likewise.
41475         (exp_towardzero_test_data): Likewise.
41476         (exp_downward_test_data): Likewise.
41477         (exp_upward_test_data): Likewise.
41478         (exp10_test_data): Likewise.
41479         (exp2_test_data): Likewise.
41480         (expm1_test_data): Likewise.
41481         (j0_test_data): Likewise.
41482         (j1_test_data): Likewise.
41483         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41484         (input_flag_type): Add flag_xfail_rounding.
41485         (input_flags): Add xfail-rounding.
41486         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41487         (output_for_one_input_case): Handle flag_xfail_rounding.
41488         * sysdeps/i386/fpu/libm-test-ulps: Update.
41489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41490
41491 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41492
41493         [BZ #16289]
41494         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41495         division by 0.
41496
41497 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41498
41499         [BZ #16195]
41500         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41501         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41502         (STAP_PROBE0): New macro.
41503         (STAP_PROBE1): Likewise.
41504         (STAP_PROBE2): Likewise.
41505         (STAP_PROBE3): Likewise.
41506         (STAP_PROBE4): Likewise.
41507
41508 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41509
41510         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41511
41512 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41513
41514         * benchtests/Makefile (bench): Add sqrt.
41515         (LDLIBS-bench-sqrt): New.
41516         * benchtests/sqrt-input: New.
41517
41518 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41519
41520         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41521         (GAIH_EAI): Likewise.
41522         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41523         (gaih_inet): Likewise.
41524         (getaddrinfo): Don't use GAIH_EAI.
41525
41526         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41527         (struct gaih): Remove definition.
41528
41529 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41530
41531         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41532         Use HERRNOP directly.
41533
41534 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41535
41536         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41537
41538 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41539
41540         * math/gen-auto-libm-tests.c (test_functions): Add more
41541         single-argument functions.
41542         (special_fill_pi_2): New function.
41543         (special_fill_minus_pi_2): Likewise.
41544         (special_fill_pi_6): Likewise.
41545         (special_fill_minus_pi_6): Likewise.
41546         (special_fill_pi_3): Likewise.
41547         (special_fill_2pi_3): Likewise.
41548         (special_fill_e): Likewise.
41549         (special_fill_1_e): Likewise.
41550         (special_fill_e_minus_1): Likewise.
41551         (special_real_inputs): Add more special inputs.
41552         (output_for_one_input_case): Do not require ERANGE on underflow to
41553         zero if round-to-nearest result does not underflow to zero, unless
41554         exact results required.
41555         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41556         atan, atanh, cbrt, cos and cosh.
41557         * math/auto-libm-test-out: Regenerated.
41558         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41559         (acos_tonearest_test_data): Likewise.
41560         (acos_towardzero_test_data): Likewise.
41561         (acos_downward_test_data): Likewise.
41562         (acos_upward_test_data): Likewise.
41563         (acosh_test_data): Likewise.
41564         (asin_test_data): Likewise.
41565         (asin_tonearest_test_data): Likewise.
41566         (asin_towardzero_test_data): Likewise.
41567         (asin_upward_test_data): Likewise.
41568         (asinh_test_data): Likewise.
41569         (atan_test_data): Likewise.
41570         (atanh_test_data): Likewise.
41571         (cbrt_test_data): Likewise.
41572         (cos_test_data): Likewise.
41573         (cos_tonearest_test_data): Likewise.
41574         (cos_towardzero_test_data): Likewise.
41575         (cos_downward_test_data): Likewise.
41576         (cos_upward_test_data): Likewise.
41577         (cosh_test_data): Likewise.
41578         (cosh_tonearest_test_data): Likewise.
41579         (cosh_towardzero_test_data): Likewise.
41580         (cosh_downward_test_data): Likewise.
41581         (cosh_upward_test_data): Likewise.
41582         * sysdeps/i386/fpu/libm-test-ulps: Update.
41583         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41584
41585 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41586
41587         [BZ #6787]
41588         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41589         * math/w_exp10f.c (__exp10f): Likewise.
41590         * math/w_exp10l.c (__exp10l): Likewise.
41591         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41592         errno settings in existing tests.
41593
41594         [BZ #14032]
41595         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41596         precision control set to double precision.
41597         * sysdeps/i386/fpu/w_sqrt.c: New file.
41598         * math/auto-libm-test-in: Add more tests.
41599         * math/auto-libm-test-out: Update.
41600
41601         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41602         (sqrt_test_tonearest): New function.
41603         (sqrt_towardzero_test_data): New variable.
41604         (sqrt_test_towardzero): New function.
41605         (sqrt_downward_test_data): New variable.
41606         (sqrt_test_downward): New function.
41607         (sqrt_upward_test_data): New variable.
41608         (sqrt_test_upward): New function.
41609         (main): Call the new functions.
41610
41611         * math/gen-auto-libm-tests.c: New file.
41612         * math/auto-libm-test-in: Likewise.
41613         * math/auto-libm-test-out: New generated file.
41614         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41615         variables.
41616         (%beautify): Add generated representations of zero.
41617         (top level): Set $auto_input and call parse_auto_input.
41618         (beautify): Remove trailing "f" from hex float constants.
41619         (parse_args): Handle XFAIL_TEST.
41620         (convert_condition): New function.
41621         (or_value): Likewise.
41622         (or_cond_value): Likewise.
41623         (generate_testfile): Handle AUTO_TESTS_* lines.
41624         (parse_auto_input): New function.
41625         * math/libm-test.inc (XFAIL_TEST): New macro.
41626         (ERRNO_UNCHANGED): Update value.
41627         (ERRNO_EDOM): Likewise.
41628         (ERRNO_ERANGE): Likewise.
41629         (IGNORE_RESULT): Likewise.
41630         (TEST_COND_flt_32): New macro.
41631         (TEST_COND_dbl_64): Likewise.
41632         (TEST_COND_ldbl_96_intel): Likewise.
41633         (TEST_COND_ldbl_96_m68k): Likewise.
41634         (TEST_COND_ldbl_128): Likewise.
41635         (TEST_COND_ldbl_128ibm): Likewise.
41636         (TEST_COND_long32): Likewise.
41637         (TEST_COND_long64): Likewise.
41638         (TEST_COND_before_rounding): Likewise.
41639         (TEST_COND_after_rounding): Likewise.
41640         (enable_test): Handle XFAIL_TEST flag.
41641         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41642         with finite results.
41643         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41644         auto-libm-test-out.
41645
41646 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41647             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41648
41649         [BZ #16214]
41650         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41651         __tls_get_addr_internal instead of __tls_get_offset in order to
41652         avoid GOT pointer dependency.  Make rtld export
41653         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41654         __tls_get_addr since we are a __tls_get_offset platform.
41655         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41656         GOT pointer being set up before.
41657         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41658
41659 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41660
41661         * manual/math.texi (Errors in Math Functions): Document accuracy
41662         goals.
41663
41664         [BZ #15004]
41665         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41666         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41667         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41668         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41669         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41670         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41671         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41672         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41673         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41674         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41675         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41676         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41677         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41678         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41679         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41680         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41681
41682         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41683         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41684         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41685         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41686         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41687         Likewise.
41688         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41689         Likewise.
41690         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41691         Likewise.
41692         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41693         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41694         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41695         atomic-feupdateenv and flt-rounds.
41696         * sysdeps/powerpc/nofpu/Versions (libc): Add
41697         __atomic_feholdexcept, __atomic_feclearexcept,
41698         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41699         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41700         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41701         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41702         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41703         here.
41704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41705         Update.
41706
41707         * manual/arith.texi (FP Exceptions): Document that exceptions may
41708         not be raised when matherr is used.
41709         (Math Error Reporting): Document overflow in directed rounding
41710         modes.  Document that errno may not be set when finite values are
41711         returned on overflow.  Document intent to set errno on underflow
41712         only for underflow to zero.
41713
41714         [BZ #16271]
41715         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41716         round-to-nearest then adjust result for other rounding modes.
41717         * include/fenv.h (fegetround): Use libm_hidden_proto.
41718         * math/fegetround.c (fegetround): Use libm_hidden_def.
41719         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41720         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41721         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41722         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41723         Likewise.
41724         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41725         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41726         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41727         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41728
41729 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41730
41731         [BZ #16077]
41732         * nss/Versions (libnss_files): Add
41733         _nss_files_gethostbyname3_r.
41734         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41735         New function.
41736         (HOST_DB_LOOKUP): Remove macro.
41737         (_nss_files_gethostbyname_r): Implement function without the
41738         HOST_DB_LOOKUP macro.
41739         (_nss_files_gethostbyname2_r): Likewise.
41740
41741 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41742
41743         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41744
41745 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41746
41747         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41748         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41749         warning.
41750
41751 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41752
41753         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41754         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41755         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41756         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41757         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41758         __fe_nomask_env_priv and attribute_hidden.
41759         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41760         (libc_feupdateenv_test_ppc): Likewise.
41761         (libc_feresetround_ppc): Likewise.
41762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41763         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41764         compat_symbol macro.
41765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41766         (__fe_nomask_env): Likewise.
41767         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41768
41769 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41770
41771         * string/Makefile: Remove ifunc tests.
41772         * string/test-string.h: Define TEST_IFUNC.
41773         * string/test-bcopy-ifunc.c: Remove.
41774         * string/test-bzero-ifunc.c: Likewise.
41775         * string/test-memccpy-ifunc.c: Likewise.
41776         * string/test-memchr-ifunc.c: Likewise.
41777         * string/test-memcmp-ifunc.c: Likewise.
41778         * string/test-memcpy-ifunc.c: Likewise.
41779         * string/test-memmem-ifunc.c: Likewise.
41780         * string/test-memmove-ifunc.c: Likewise.
41781         * string/test-mempcpy-ifunc.c: Likewise.
41782         * string/test-memrchr-ifunc.c: Likewise.
41783         * string/test-memset-ifunc.c: Likewise.
41784         * string/test-rawmemchr-ifunc.c: Likewise.
41785         * string/test-stpcpy-ifunc.c: Likewise.
41786         * string/test-stpncpy-ifunc.c: Likewise.
41787         * string/test-strcasecmp-ifunc.c: Likewise.
41788         * string/test-strcasestr-ifunc.c: Likewise.
41789         * string/test-strcat-ifunc.c: Likewise.
41790         * string/test-strchr-ifunc.c: Likewise.
41791         * string/test-strchrnul-ifunc.c: Likewise.
41792         * string/test-strcmp-ifunc.c: Likewise.
41793         * string/test-strcpy-ifunc.c: Likewise.
41794         * string/test-strcspn-ifunc.c: Likewise.
41795         * string/test-strlen-ifunc.c: Likewise.
41796         * string/test-strncasecmp-ifunc.c: Likewise.
41797         * string/test-strncat-ifunc.c: Likewise.
41798         * string/test-strncmp-ifunc.c: Likewise.
41799         * string/test-strncpy-ifunc.c: Likewise.
41800         * string/test-strnlen-ifunc.c: Likewise.
41801         * string/test-strpbrk-ifunc.c: Likewise.
41802         * string/test-strrchr-ifunc.c: Likewise.
41803         * string/test-strspn-ifunc.c: Likewise.
41804         * string/test-strstr-ifunc.c: Likewise.
41805
41806 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41807
41808         * benchtests/Makefile: Remove ifunc tests.
41809         * benchtests/bench-string.h: Define TEST_IFUNC.
41810         * benchtests/bench-bcopy-ifunc.c: Remove.
41811         * benchtests/bench-bzero-ifunc.c: Likewise.
41812         * benchtests/bench-memccpy-ifunc.c: Likewise.
41813         * benchtests/bench-memchr-ifunc.c: Likewise.
41814         * benchtests/bench-memcmp-ifunc.c: Likewise.
41815         * benchtests/bench-memcpy-ifunc.c: Likewise.
41816         * benchtests/bench-memmem-ifunc.c: Likewise.
41817         * benchtests/bench-memmove-ifunc.c: Likewise.
41818         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41819         * benchtests/bench-memrchr-ifunc.c: Likewise.
41820         * benchtests/bench-memset-ifunc.c: Likewise.
41821         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41822         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41823         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41824         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41825         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41826         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41827         * benchtests/bench-strcat-ifunc.c: Likewise.
41828         * benchtests/bench-strchr-ifunc.c: Likewise.
41829         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41830         * benchtests/bench-strcmp-ifunc.c: Likewise.
41831         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41832         * benchtests/bench-strcpy-ifunc.c: Likewise.
41833         * benchtests/bench-strcspn-ifunc.c: Likewise.
41834         * benchtests/bench-strlen-ifunc.c: Likewise.
41835         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41836         * benchtests/bench-strncat-ifunc.c: Likewise.
41837         * benchtests/bench-strncmp-ifunc.c: Likewise.
41838         * benchtests/bench-strncpy-ifunc.c: Likewise.
41839         * benchtests/bench-strnlen-ifunc.c: Likewise.
41840         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41841         * benchtests/bench-strrchr-ifunc.c: Likewise.
41842         * benchtests/bench-strsep-ifunc.c: Likewise.
41843         * benchtests/bench-strspn-ifunc.c: Likewise.
41844         * benchtests/bench-strstr-ifunc.c: Likewise.
41845
41846 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41847
41848         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41849
41850 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41851
41852         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41853         * rt/aio.h: Likewise.
41854         * sysdeps/gnu/bits/utmp.h: Likewise.
41855         * sysdeps/gnu/bits/utmpx.h: Likewise.
41856         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41857         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41858         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41859         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41860         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41861         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41862         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41863         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41864         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41865         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41866         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41867         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41868         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41870         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41871         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41872         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41873         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41874         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41875         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41876         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41877         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41878         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41879         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41880         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41881         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41882         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41883         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41884         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41885         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41886         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41887         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41888         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41889         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41890         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41891         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41892         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41893         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41894         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41895         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41896         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41897         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41898
41899 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41900
41901         [BZ #16245]
41902         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41903         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
41904
41905 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
41906
41907         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
41908         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
41909         Likewise.
41910
41911 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41912
41913         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
41914         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
41915         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
41916         (__fesetround): Remove define.
41917         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
41918         rounding and exceptions handling.
41919         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
41920         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
41921         (__fe_nomask_env): Likewise.
41922         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
41923         __fegetround instead of fegetround.
41924         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41925         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
41926
41927 2013-11-21  Roland McGrath  <roland@hack.frob.com>
41928
41929         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
41930         it's there.
41931
41932         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
41933
41934 2013-11-21  Meador Inge  <meadori@codesourcery.com>
41935
41936         [BZ #11157]
41937         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
41938         (encrypt_r): Likewise.
41939         * malloc/obstack.h (obstack_free): Likewise.
41940         * posix/unistd.h (encrypt): Likewise.
41941
41942 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
41943
41944         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
41945         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
41946         DL_CALL_DT_FINI() that call the functions directly.
41947         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
41948         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
41949         * elf/dl-fini.c: Likewise.
41950
41951 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
41952
41953         * malloc/hooks.c (memalign_check): Add alignment rounding.
41954         * malloc/malloc.c (_mid_memalign): New function.
41955         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
41956         Implement by calling _mid_memalign.
41957         * manual/probes.texi (Memory Allocation Probes): Remove
41958         memory_valloc_retry and memory_pvalloc_retry.
41959
41960 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
41961
41962         * locale/programs/locarchive.c (open_archive): Add const
41963         qualifier to ARCHIVEFNAME and copy default fname to
41964         DEFAULT_FNAME.
41965
41966         [BZ #15601]
41967         * libio/tst-widetext.input: Rename Oriya to Odia.
41968         * locale/iso-639.def: Likewise.
41969
41970         * manual/probes.texi (Mathematical Function Probes): Add
41971         documentation for sin, cos, asin and acos probes.
41972         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
41973         (__sin32): Add slowasin probe.
41974         (__cos32): Add slowacos probe.
41975         (__mpsin): Add slowsin probe.
41976         (__mpcos): Add slowcos probe.
41977
41978 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
41979
41980         [BZ #15483]
41981         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
41982         thread-local __sim_exceptions_thread and global
41983         __sim_exceptions_global.
41984         (__sim_disabled_exceptions): Change to thread-local
41985         __sim_disabled_exceptions_thread and global
41986         __sim_disabled_exceptions_global.
41987         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
41988         and global __sim_round_mode_global.
41989         (__simulate_exceptions): Use thread-local floating-point state and
41990         set global state from it as needed.
41991         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
41992         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
41993         __sim_round_mode_thread.
41994         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
41995         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
41996         and global __sim_exceptions_global.
41997         (__sim_disabled_exceptions): Change to thread-local
41998         __sim_disabled_exceptions_thread and global
41999         __sim_disabled_exceptions_global.
42000         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42001         and global __sim_round_mode_global.
42002         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
42003         (SIM_SET_GLOBAL): Likewise.
42004         * sysdeps/powerpc/soft-fp/sfp-machine.h
42005         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
42006         __sim_round_mode_thread.
42007         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
42008         __sim_disabled_exceptions_thread.
42009         (__sim_exceptions): Change to __sim_exceptions_thread.
42010         (__sim_disabled_exceptions): Change to
42011         __sim_disabled_exceptions_thread.
42012         (__sim_round_mode): Change to __sim_round_mode_thread.
42013         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
42014         thread-local floating-point state and set global state from it as
42015         needed.
42016         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
42017         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
42018         (__sim_disabled_exceptions): Remove extern declaration.
42019         (feenableexcept): Use thread-local floating-point state and set
42020         global state from it as needed.
42021         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
42022         extern declaration.
42023         (__sim_disabled_exceptions): Likewise.
42024         (__sim_round_mode): Likewise.
42025         (__fegetenv): Use thread-local floating-point state.
42026         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
42027         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
42028         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
42029         floating-point state and set global state from it as needed.
42030         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
42031         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
42032         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
42033         Likewise.
42034         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
42035         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
42036         Likewise.
42037         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
42038         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
42039         Use __sim_round_mode_thread.
42040         * math/test-fenv-tls.c: New file.
42041         * math/Makefile (tests): Add test-fenv-tls.
42042         ($(objpfx)test-fenv-tls): Depend on
42043         $(common-objpfx)nptl/libpthread.so.
42044
42045 2013-11-19  Andreas Schwab  <schwab@suse.de>
42046
42047         * locale/programs/locale.c (show_info): Decode wordarray elements.
42048         * locale/categories.def (LC_MONETARY): Add element for
42049         _NL_MONETARY_CRNCYSTR.
42050         * locale/C-monetary.c (conversion_rate): New variable.
42051         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
42052         element.
42053
42054 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
42055
42056         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
42057         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
42058
42059 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42060
42061         * elf/Makefile (tst-auxv): New test.
42062         * elf/tst-auxv.c: New
42063         * elf/rtld.c (dl_main): Adjust AT_EXECFN
42064
42065 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
42066
42067         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
42068         (hidden_proto): Caller changed.
42069         (hidden_tls_proto): New macro.
42070         (libc_hidden_tls_proto): Likewise.
42071         (rtld_hidden_tls_proto): Likewise.
42072         (libm_hidden_tls_proto): Likewise.
42073         (libresolv_hidden_tls_proto): Likewise.
42074         (librt_hidden_tls_proto): Likewise.
42075         (libdl_hidden_tls_proto): Likewise.
42076         (libnss_files_hidden_tls_proto): Likewise.
42077         (libnsl_hidden_tls_proto): Likewise.
42078         (libnss_nisplus_hidden_tls_proto): Likewise.
42079         (libutil_hidden_tls_proto): Likewise.
42080
42081 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
42082
42083         [BZ #10253]
42084         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
42085         (decompose_rpath): Defer expansion to fillin_rpath.
42086         (_dl_init_paths): Pass linkmap to fillin_rpath.
42087
42088 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
42089
42090         * benchtests/Makefile: Add strsep.
42091         * benchtests/bench-strsep.c: New file: strsep benchtest.
42092         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
42093
42094 2013-11-18  Andreas Schwab  <schwab@suse.de>
42095
42096         * locale/programs/locale.c (show_info) [case byte]: Check for
42097         '\377' instead of '\177'.
42098         * locale/C-monetary.c (not_available): Always use "\377".
42099         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
42100         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
42101         detect unavailable sign_posn locale elements.
42102         * locale/localeconv.c (__localeconv): For grouping and
42103         mon_grouping handle "\177" and "\377" like no grouping.
42104         (INT_ELEM): New macro.  Use it to set all numeric members.
42105         * locale/programs/ld-monetary.c (monetary_read)
42106         <tok_mon_grouping>: Normalize single -1 to the empty string.
42107         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
42108         Likewise.
42109
42110 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42111
42112         [BZ #16055]
42113         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
42114         when we match (nil).
42115         * stdio-common/tst-sscanf.c (struct test): Add testcase.
42116
42117 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
42118
42119         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
42120         (NO_TEST_INLINE): Update value.
42121         (ERRNO_UNCHANGED): Likewise.
42122         (ERRNO_EDOM): Likewise.
42123         (ERRNO_ERANGE): Likewise.
42124         (IGNORE_RESULT): Likewise.
42125         (check_float_internal): Check signs of NaN results if
42126         TEST_NAN_SIGN used.
42127         (check_complex): Pass TEST_NAN_SIGN flag through to second
42128         check_float_internal call.
42129         (copysign_test_data): Add tests with quiet NaNs as second
42130         argument.  Use TEST_NAN_SIGN.
42131         (fabs_test_data): Add test of negative quiet NaN argument.  Use
42132         TEST_NAN_SIGN.
42133         (signbit_test_data): Add tests of quiet NaN argument.
42134         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
42135
42136         * math/gen-libm-test.pl (show_exceptions): Take extra argument
42137         $ignore_result.
42138         (parse_args): Handle function results specified as IGNORE.
42139         * math/libm-test.inc (IGNORE_RESULT): New macro.
42140         (check_float_internal): Do not check numerical result if flag
42141         IGNORE_RESULT set.
42142         (check_complex): Pass through IGNORE_RESULT to second
42143         check_float_internal call.
42144         (check_int): Do not check numerical result if flag IGNORE_RESULT
42145         set.
42146         (check_long): Likewise.
42147         (check_bool): Likewise.
42148         (check_longlong): Likewise.
42149         (lrint_test_data): Add tests of infinite and NaN arguments.
42150         (lrint_tonearest_test_data): Likewise.
42151         (lrint_towardzero_test_data): Likewise.
42152         (lrint_downward_test_data): Likewise.
42153         (lrint_upward_test_data): Likewise.
42154         (llrint_test_data): Likewise.
42155         (llrint_tonearest_test_data): Likewise.
42156         (llrint_towardzero_test_data): Likewise.
42157         (llrint_downward_test_data): Likewise.
42158         (llrint_upward_test_data): Likewise.
42159         (lround_test_data): Likewise.
42160         (llround_test_data): Likewise.
42161
42162         * math/libm-test.inc (NO_TEST_INLINE): New macro.
42163         (ERRNO_UNCHANGED): Update value.
42164         (ERRNO_EDOM): Likewise.
42165         (ERRNO_ERANGE): Likewise.
42166         (NO_TEST_INLINE_FLOAT): New macro.
42167         (NO_TEST_INLINE_DOUBLE): Likewise.
42168         (enable_test): New function.
42169         (RUN_TEST_f_f): Check enable_test before running test.
42170         (RUN_TEST_2_f): Likewise.
42171         (RUN_TEST_fff_f): Likewise.
42172         (RUN_TEST_c_f): Likewise.
42173         (RUN_TEST_f_f1): Likewise.
42174         (RUN_TEST_fF_f1): Likewise.
42175         (RUN_TEST_fI_f1): Likewise.
42176         (RUN_TEST_ffI_f1): Likewise.
42177         (RUN_TEST_c_c): Likewise.
42178         (RUN_TEST_cc_c): Likewise.
42179         (RUN_TEST_f_i): Likewise.
42180         (RUN_TEST_f_i_tg): Likewise.
42181         (RUN_TEST_ff_i_tg): Likewise.
42182         (RUN_TEST_f_b): Likewise.
42183         (RUN_TEST_f_b_tg): Likewise.
42184         (RUN_TEST_f_l): Likewise.
42185         (RUN_TEST_f_L): Likewise.
42186         (RUN_TEST_fFF_11): Likewise.
42187         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
42188         conditionals.
42189         (cosh_test_data): Likewise.
42190         (exp_test_data): Likewise.
42191         (expm1_test_data): Likewise.
42192         (hypot_test_data): Likewise.
42193         (pow_test_data): Likewise.
42194         (sinh_test_data): Likewise.
42195         (tanh_test_data): Likewise.
42196         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
42197         flags argument.
42198
42199         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
42200         tests with quiet NaN input and output.
42201         (acosh_test_data): Likewise.
42202         (asin_test_data): Likewise.
42203         (asinh_test_data): Likewise.
42204         (atan_test_data): Likewise.
42205         (atanh_test_data): Likewise.
42206         (atan2_test_data): Likewise.
42207         (cbrt_test_data): Likewise.
42208         (cos_test_data): Likewise.
42209         (cosh_test_data): Likewise.
42210         (erf_test_data): Likewise.
42211         (erfc_test_data): Likewise.
42212         (exp_test_data): Likewise.
42213         (exp10_test_data): Likewise.
42214         (exp2_test_data): Likewise.
42215         (expm1_test_data): Likewise.
42216         (hypot_test_data): Likewise.
42217         (j0_test_data): Likewise.
42218         (j1_test_data): Likewise.
42219         (jn_test_data): Likewise.
42220         (lgamma_test_data): Likewise.
42221         (log_test_data): Likewise.
42222         (log10_test_data): Likewise.
42223         (log1p_test_data): Likewise.
42224         (log2_test_data): Likewise.
42225         (pow_test_data): Likewise.
42226         (scalb_test_data): Likewise.
42227         (sin_test_data): Likewise.
42228         (sincos_test_data): Likewise.
42229         (sinh_test_data): Likewise.
42230         (tan_test_data): Likewise.
42231         (tanh_test_data): Likewise.
42232         (tgamma_test_data): Likewise.
42233         (y0_test_data): Likewise.
42234         (y1_test_data): Likewise.
42235         (yn_test_data): Likewise.
42236
42237         [BZ #16167]
42238         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
42239         argument being NaN and avoid computations with second argument in
42240         that case.
42241         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
42242         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
42243         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
42244
42245 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
42246
42247         * locale/iso-639.def: Add Chitwani Tharu (the).
42248
42249 2013-11-14  Andreas Schwab  <schwab@suse.de>
42250
42251         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
42252         word instead of empty string.
42253
42254 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42255
42256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42257         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
42258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42259         (__fe_nomask_env): Likewise.
42260
42261 2013-11-13  Steve Ellcey  <sellcey@mips.com>
42262
42263         * benchtests/bench-timing.h: Include time.h.
42264
42265 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
42266
42267         [BZ #15997]
42268         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
42269         to 3.4.0 for x32.
42270         * sysdeps/unix/sysv/linux/configure: Regenerated.
42271
42272 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
42273
42274         [BZ #16151]
42275         * stdlib/strtod_l.c (round_and_return): Do not consider
42276         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
42277         exponent one less than half the least subnormal exponent.
42278         * stdlib/test-strtod-round-data: Add more tests.
42279         * stdlib/tst-strtod-round.c (tests): Regenerated.
42280
42281 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42282
42283         [BZ #14143]
42284         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
42285         (__fe_mask_env): Likewise.
42286         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
42287         libm_hidden_proto and add function prototype.
42288         (__fe_mask_env): Add function prototype.
42289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42290         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
42291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
42292         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
42293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42294         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
42295
42296 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42297
42298         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
42299         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
42300
42301 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42302
42303         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
42304         of htab_find_slot().
42305
42306 2013-11-11  David S. Miller  <davem@davemloft.net>
42307
42308         [BZ #16150]
42309         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
42310         symbol in the non-vis3 case in static builds.
42311         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
42312         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
42313         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
42314         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
42315
42316 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
42317
42318         [BZ #387]
42319         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
42320         it is empty.
42321
42322 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42323
42324         * benchtests/Makefile: Add bench-strtod.
42325         * benchtests/bench-strtod.c: New file: strtod benchtest
42326
42327 2013-11-11  Andreas Schwab  <schwab@suse.de>
42328
42329         [BZ #16153]
42330         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
42331         terminating NUL in key length.
42332
42333 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42334
42335         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
42336         Add artificial ODP entry for vDSO symbol for PPC64.
42337         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
42338         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
42339
42340 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42341
42342         [BZ #15374]
42343         * nss/getent.c (services_keys): Recognize services starting with digit.
42344
42345 2013-11-06  David S. Miller  <davem@davemloft.net>
42346
42347         [BZ #15985]
42348         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
42349         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
42350
42351 2013-11-06  Will Newton  <will.newton@linaro.org>
42352
42353         * manual/memory.texi (Malloc Examples): Remove register
42354         keyword from examples.
42355
42356 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
42357
42358         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
42359
42360 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
42361
42362         [BZ #6981]
42363         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
42364         depending on [__GCC_IEC_559 > 0].
42365         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
42366         depending on [__GCC_IEC_559_COMPLEX > 0].
42367
42368 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
42369
42370         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
42371         to iso-639.def.
42372
42373 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
42374
42375         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
42376
42377 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
42378
42379         [BZ #16112]
42380         * malloc/malloc (malloc_info): Do not handle first bin as
42381         special case.
42382
42383 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
42384
42385         * locale/iso-639.def: Add Central Nahuatl (nhn).
42386
42387 2013-11-01  Bruno Haible  <bruno@clisp.org>
42388
42389         [BZ #7003]
42390         * manual/math.texi (BSD Random): Specify range upper bound as
42391         in POSIX.
42392
42393 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
42394
42395         * locale/iso-639.def: Add Meadow Mari (mhr).
42396
42397 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
42398
42399         [BZ #14752], [BZ #15763]
42400         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
42401         Validate name.
42402         * rt/tst_shm.c: Add test for escaping directory.
42403
42404 2013-10-31  Andreas Schwab  <schwab@suse.de>
42405
42406         [BZ #15917]
42407         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
42408         followed by 'x' as part of digit sequence.
42409         * stdio-common/tst-sscanf.c (double_tests2): New tests.
42410
42411 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
42412
42413         [BZ #16037]
42414         * configure.ac: allow GNU Make 4.0 and greater.
42415         * configure: Regenerated.
42416
42417 2013-10-30  Will Newton  <will.newton@linaro.org>
42418
42419         [BZ #16038]
42420         * malloc/hooks.c (memalign_check): Limit alignment to the
42421         maximum representable power of two.
42422         * malloc/malloc.c (__libc_memalign): Likewise.
42423         * malloc/tst-memalign.c (do_test): Add test for very
42424         large alignment values.
42425         * malloc/tst-posix_memalign.c (do_test): Likewise.
42426
42427 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42428
42429         [BZ #11087]
42430         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
42431         (munmap_chunk): Likewise.
42432         (mremap_chunk): Likewise.
42433
42434 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42435
42436         [BZ #15799]
42437         * stdlib/div.c (div): Remove obsolete code.
42438         * stdlib/ldiv.c (ldiv): Likewise.
42439         * stdlib/lldiv.c (lldiv): Likewise.
42440
42441 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42442
42443         [BZ #16071]
42444         * nss/nss_files/files-XXX.c (get_contents_ret): New
42445         enumerator.
42446         (get_contents): New function.
42447         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42448
42449 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42450
42451         * configure.in: Moved to ...
42452         * configure.ac: ... here. Change reference to configure.in
42453         to configure.ac.
42454         * sysdeps/arm/preconfigure.ac: ... here.
42455         configure.in to configure.ac.
42456         * sysdeps/gnu/configure.in: Moved to ...
42457         * sysdeps/gnu/configure.ac: ... here.
42458         * sysdeps/i386/configure.in: Moved to ...
42459         * sysdeps/i386/configure.ac: ... here.
42460         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42461         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42462         * sysdeps/mach/configure.in: Moved to ...
42463         * sysdeps/mach/configure.ac: ... here.
42464         * sysdeps/mach/hurd/configure.in: Moved to ...
42465         * sysdeps/mach/hurd/configure.ac: ... here.
42466         * sysdeps/powerpc/configure.in: Moved to ...
42467         * sysdeps/powerpc/configure.ac: ... here.
42468         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42469         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42470         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42471         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42472         * sysdeps/s390/s390-32/configure.in: Moved to ...
42473         * sysdeps/s390/s390-32/configure.ac: ... here.
42474         * sysdeps/s390/s390-64/configure.in: Moved to ...
42475         * sysdeps/s390/s390-64/configure.ac: ... here.
42476         * sysdeps/sh/configure.in: Moved to ...
42477         * sysdeps/sh/configure.ac: ... here.
42478         * sysdeps/sparc/configure.in: Moved to ...
42479         * sysdeps/sparc/configure.ac: ... here.
42480         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42481         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42482         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42483         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42484         * sysdeps/x86_64/configure.in: Moved to ...
42485         * sysdeps/x86_64/configure.ac: ... here.
42486         * sysdeps/x86_64/preconfigure.in: Moved to ...
42487         * sysdeps/x86_64/preconfigure.ac: ... here.
42488         * aclocal.m4: Change reference to configure.in to configure.ac.
42489         * config.h.in: Likewise.
42490         * manual/install.texi: Likewise.
42491         * manual/maint.texi: Likewise.
42492         * Makefile: Likewise.
42493         * malloc/Makefile: Likewise.
42494         * nscd/Makefile: Likewise.
42495         * Makeconfig: Change reference to configure.in and
42496         preconfigure.in to configure.ac and preconfigure.ac
42497         respectively.
42498         * INSTALL: Regenerated.
42499         * configure: Likewise.
42500         * sysdeps/gnu/configure: Likewise.
42501         * sysdeps/i386/configure: Likewise.
42502         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42503         * sysdeps/mach/configure: Likewise.
42504         * sysdeps/mach/hurd/configure: Likewise.
42505         * sysdeps/powerpc/configure: Likewise.
42506         * sysdeps/powerpc/powerpc32/configure: Likewise.
42507         * sysdeps/powerpc/powerpc64/configure: Likewise.
42508         * sysdeps/s390/s390-32/configure: Likewise.
42509         * sysdeps/s390/s390-64/configure: Likewise.
42510         * sysdeps/sh/configure: Likewise.
42511         * sysdeps/sparc/configure: Likewise.
42512         * sysdeps/unix/sysv/linux/configure: Likewise.
42513         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42514         * sysdeps/x86_64/configure: Likewise.
42515         * sysdeps/x86_64/preconfigure: Likewise.
42516
42517 2013-10-29  Andreas Schwab  <schwab@suse.de>
42518
42519         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42520
42521 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42522
42523         * benchtests/pow-inputs: Add new inputs.
42524
42525         * benchtests/exp-inputs: Add new inputs.
42526
42527         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42528         conditional check for return value.
42529         (__cos32): Likewise.
42530
42531 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42532
42533         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42534         to provide a boost for large inputs with word alignment.
42535         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42536         implementation based on optimized PPC64 strcpy.
42537         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42538         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42539         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42540         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42541
42542 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42543
42544         [BZ #2801]
42545         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42546
42547 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42548
42549         [BZ #14876]
42550         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42551         * time/tst-strptime.c (day_tests): Add testcase.
42552
42553 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42554
42555         [BZ #14029]
42556         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42557
42558 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42559
42560         [BZ #16074]
42561         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42562         MAP_FAILED on error.
42563
42564 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42565
42566         [BZ #16072]
42567         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42568         heap for large requests.
42569
42570 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42571
42572         [BZ #9954]
42573         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42574         result if the result has no associated interface.
42575         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42576         interface for all 127.X.Y.Z addresses.
42577
42578 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42579
42580         * locale/iso-639.def: Add Ligurian (lij)
42581
42582 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42583
42584         [BZ #15825]
42585         * sunrpc/rpc_main.c: Document rpcgen -5.
42586
42587 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42588
42589         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42590
42591 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42592
42593         [BZ #10278]
42594         * posix/glob.c: Match only directories when trailing slash is present.
42595         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42596         (main): Add testcase.
42597
42598 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42599
42600         [BZ #15670]
42601         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42602
42603 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42604
42605         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42606         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42607         AUTH_DES and cindex for FIPS 140-2.
42608         (DES Encryption): Add cindex FIPS 46-3.
42609
42610         * locale/locarchive.h (struct locarhandle): Add fname.
42611         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42612         if an optional argument was specified to --list-archive,
42613         otherwise NULL.
42614         * locale/programs/locarchive.c (show_archive_content): Take new
42615         argument fname and pass it via ah.fname to open_archive.
42616         * locale/programs/localedef.h: Update decl.
42617         (open_archive): If AH->fname is non-null, open that file
42618         rather than the default file name, and don't ignore ENOENT.
42619         (create_archive): Set AH.fname to NULL.
42620         (delete_locales_from_archive): Likewise.
42621         (add_locales_to_archive): Likewise.
42622         * locale/programs/locfile.c (write_all_categories): Likewise.
42623
42624 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42625             Aldy Hernandez  <aldyh@redhat.com>
42626
42627         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42628         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42629         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42630         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42631         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42632         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42633         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42634         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42635         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42636         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42637         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42638         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42639         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42640         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42641         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42642         Likewise.
42643         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42644         Likewise.
42645         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42646         Likewise.
42647         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42648         Likewise.
42649         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42650         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42651         Likewise.
42652         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42653         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42654         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42655         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42656         Likewise.
42657         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42658         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42659         * sysdeps/powerpc/preconfigure: Likewise.
42660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42661         Likewise.
42662         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42663         Replace contents of file by #include of <fenv_libc.h>.
42664         * sysdeps/powerpc/soft-fp/sfp-machine.h
42665         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42666         and <sys/prctl.h>.
42667         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42668         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42669         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42670         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42671         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42672         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42673         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42674         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42675         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42676         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42677         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42678         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42680         Allow copysignl PLT reference to be missing.
42681
42682 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42683             Joseph Myers  <joseph@codesourcery.com
42684
42685         [BZ #15948]
42686         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42687         single character.
42688         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42689
42690 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42691
42692         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42693         * elf/tst-tls1.c: Likewise.
42694         * elf/tst-tls10.h: Likewise.
42695         * elf/tst-tls14.c: Likewise.
42696         * elf/tst-tls2.c: Likewise.
42697         * elf/tst-tls3.c: Likewise.
42698         * elf/tst-tls4.c: Likewise.
42699         * elf/tst-tls5.c: Likewise.
42700         * elf/tst-tls6.c: Likewise.
42701         * elf/tst-tls7.c: Likewise.
42702         * elf/tst-tls8.c: Likewise.
42703         * elf/tst-tls9.c: Likewise.
42704         * elf/tst-tlsmod1.c: Likewise.
42705         * elf/tst-tlsmod13.c: Likewise.
42706         * elf/tst-tlsmod13a.c: Likewise.
42707         * elf/tst-tlsmod14a.c: Likewise.
42708         * elf/tst-tlsmod16a.c: Likewise.
42709         * elf/tst-tlsmod16b.c: Likewise.
42710         * elf/tst-tlsmod2.c: Likewise.
42711         * elf/tst-tlsmod3.c: Likewise.
42712         * elf/tst-tlsmod4.c: Likewise.
42713         * elf/tst-tlsmod5.c: Likewise.
42714         * elf/tst-tlsmod6.c: Likewise.
42715
42716 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42717
42718         [BZ #12486]
42719         * malloc/malloc.c: remove checks for statistics.
42720
42721 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42722
42723         [BZ #15277]
42724         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42725         * inet/tst-network.c: Add testcase.
42726
42727 2013-10-17  Andreas Schwab  <schwab@suse.de>
42728
42729         [BZ #15218]
42730         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42731         to determine canonical name.
42732
42733 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42734
42735         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42736         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42737         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42738         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42739         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42740         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42741         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42742         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42743         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42744         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42745         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42746         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42747         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42748         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42749         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42750         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42751         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42752         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42753         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42754         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42755         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42756         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42757         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42758         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42759         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42760         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42761         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42762         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42763         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42764         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42765         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42766         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42767         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42768         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42769         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42770         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42771         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42772         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42773         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42774         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42775         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42776         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42777         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42778         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42779         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42780         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42781         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42782         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42783         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42784         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42785         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42786         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42787         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42788         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42789         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42790         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42791         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42792         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42793
42794 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42795
42796         [BZ #16041]
42797         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42798         make result into a quiet NaN.
42799
42800 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42801
42802         * soft-fp/adddf3.c: Fix horizontal whitespace.
42803         * soft-fp/addsf3.c: Likewise.
42804         * soft-fp/addtf3.c: Likewise.
42805         * soft-fp/divdf3.c: Likewise.
42806         * soft-fp/divsf3.c: Likewise.
42807         * soft-fp/divtf3.c: Likewise.
42808         * soft-fp/double.h: Likewise.
42809         * soft-fp/eqdf2.c: Likewise.
42810         * soft-fp/eqsf2.c: Likewise.
42811         * soft-fp/eqtf2.c: Likewise.
42812         * soft-fp/extenddftf2.c: Likewise.
42813         * soft-fp/extended.h: Likewise.
42814         * soft-fp/extendsfdf2.c: Likewise.
42815         * soft-fp/extendsftf2.c: Likewise.
42816         * soft-fp/extendxftf2.c: Likewise.
42817         * soft-fp/fixdfdi.c: Likewise.
42818         * soft-fp/fixdfsi.c: Likewise.
42819         * soft-fp/fixdfti.c: Likewise.
42820         * soft-fp/fixsfdi.c: Likewise.
42821         * soft-fp/fixsfsi.c: Likewise.
42822         * soft-fp/fixsfti.c: Likewise.
42823         * soft-fp/fixtfdi.c: Likewise.
42824         * soft-fp/fixtfsi.c: Likewise.
42825         * soft-fp/fixtfti.c: Likewise.
42826         * soft-fp/fixunsdfdi.c: Likewise.
42827         * soft-fp/fixunsdfsi.c: Likewise.
42828         * soft-fp/fixunsdfti.c: Likewise.
42829         * soft-fp/fixunssfdi.c: Likewise.
42830         * soft-fp/fixunssfsi.c: Likewise.
42831         * soft-fp/fixunssfti.c: Likewise.
42832         * soft-fp/fixunstfdi.c: Likewise.
42833         * soft-fp/fixunstfsi.c: Likewise.
42834         * soft-fp/fixunstfti.c: Likewise.
42835         * soft-fp/floatdidf.c: Likewise.
42836         * soft-fp/floatdisf.c: Likewise.
42837         * soft-fp/floatditf.c: Likewise.
42838         * soft-fp/floatsidf.c: Likewise.
42839         * soft-fp/floatsisf.c: Likewise.
42840         * soft-fp/floatsitf.c: Likewise.
42841         * soft-fp/floattidf.c: Likewise.
42842         * soft-fp/floattisf.c: Likewise.
42843         * soft-fp/floattitf.c: Likewise.
42844         * soft-fp/floatundidf.c: Likewise.
42845         * soft-fp/floatundisf.c: Likewise.
42846         * soft-fp/floatunditf.c: Likewise.
42847         * soft-fp/floatunsidf.c: Likewise.
42848         * soft-fp/floatunsisf.c: Likewise.
42849         * soft-fp/floatunsitf.c: Likewise.
42850         * soft-fp/floatuntidf.c: Likewise.
42851         * soft-fp/floatuntisf.c: Likewise.
42852         * soft-fp/floatuntitf.c: Likewise.
42853         * soft-fp/fmadf4.c: Likewise.
42854         * soft-fp/fmasf4.c: Likewise.
42855         * soft-fp/fmatf4.c: Likewise.
42856         * soft-fp/gedf2.c: Likewise.
42857         * soft-fp/gesf2.c: Likewise.
42858         * soft-fp/getf2.c: Likewise.
42859         * soft-fp/ledf2.c: Likewise.
42860         * soft-fp/lesf2.c: Likewise.
42861         * soft-fp/letf2.c: Likewise.
42862         * soft-fp/muldf3.c: Likewise.
42863         * soft-fp/mulsf3.c: Likewise.
42864         * soft-fp/multf3.c: Likewise.
42865         * soft-fp/negdf2.c: Likewise.
42866         * soft-fp/negsf2.c: Likewise.
42867         * soft-fp/negtf2.c: Likewise.
42868         * soft-fp/op-1.h: Likewise.
42869         * soft-fp/op-2.h: Likewise.
42870         * soft-fp/op-4.h: Likewise.
42871         * soft-fp/op-8.h: Likewise.
42872         * soft-fp/op-common.h: Likewise.
42873         * soft-fp/quad.h: Likewise.
42874         * soft-fp/single.h: Likewise.
42875         * soft-fp/soft-fp.h: Likewise.
42876         * soft-fp/sqrtdf2.c: Likewise.
42877         * soft-fp/sqrtsf2.c: Likewise.
42878         * soft-fp/sqrttf2.c: Likewise.
42879         * soft-fp/subdf3.c: Likewise.
42880         * soft-fp/subsf3.c: Likewise.
42881         * soft-fp/subtf3.c: Likewise.
42882         * soft-fp/truncdfsf2.c: Likewise.
42883         * soft-fp/trunctfdf2.c: Likewise.
42884         * soft-fp/trunctfsf2.c: Likewise.
42885         * soft-fp/trunctfxf2.c: Likewise.
42886         * soft-fp/unorddf2.c: Likewise.
42887         * soft-fp/unordsf2.c: Likewise.
42888         * soft-fp/unordtf2.c: Likewise.
42889
42890 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42891
42892         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42893         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42894
42895 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42896
42897         * elf/dl-libc.c: Clear initfini list after freeing.
42898
42899 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42900
42901         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42902         * soft-fp/addsf3.c: Likewise.
42903         * soft-fp/addtf3.c: Likewise.
42904         * soft-fp/divdf3.c: Likewise.
42905         * soft-fp/divsf3.c: Likewise.
42906         * soft-fp/divtf3.c: Likewise.
42907         * soft-fp/double.h: Likewise.
42908         * soft-fp/eqdf2.c: Likewise.
42909         * soft-fp/eqsf2.c: Likewise.
42910         * soft-fp/eqtf2.c: Likewise.
42911         * soft-fp/extenddftf2.c: Likewise.
42912         * soft-fp/extended.h: Likewise.
42913         * soft-fp/extendsfdf2.c: Likewise.
42914         * soft-fp/extendsftf2.c: Likewise.
42915         * soft-fp/extendxftf2.c: Likewise.
42916         * soft-fp/fixdfdi.c: Likewise.
42917         * soft-fp/fixdfsi.c: Likewise.
42918         * soft-fp/fixdfti.c: Likewise.
42919         * soft-fp/fixsfdi.c: Likewise.
42920         * soft-fp/fixsfsi.c: Likewise.
42921         * soft-fp/fixsfti.c: Likewise.
42922         * soft-fp/fixtfdi.c: Likewise.
42923         * soft-fp/fixtfsi.c: Likewise.
42924         * soft-fp/fixtfti.c: Likewise.
42925         * soft-fp/fixunsdfdi.c: Likewise.
42926         * soft-fp/fixunsdfsi.c: Likewise.
42927         * soft-fp/fixunsdfti.c: Likewise.
42928         * soft-fp/fixunssfdi.c: Likewise.
42929         * soft-fp/fixunssfsi.c: Likewise.
42930         * soft-fp/fixunssfti.c: Likewise.
42931         * soft-fp/fixunstfdi.c: Likewise.
42932         * soft-fp/fixunstfsi.c: Likewise.
42933         * soft-fp/fixunstfti.c: Likewise.
42934         * soft-fp/floatdidf.c: Likewise.
42935         * soft-fp/floatdisf.c: Likewise.
42936         * soft-fp/floatditf.c: Likewise.
42937         * soft-fp/floatsidf.c: Likewise.
42938         * soft-fp/floatsisf.c: Likewise.
42939         * soft-fp/floatsitf.c: Likewise.
42940         * soft-fp/floattidf.c: Likewise.
42941         * soft-fp/floattisf.c: Likewise.
42942         * soft-fp/floattitf.c: Likewise.
42943         * soft-fp/floatundidf.c: Likewise.
42944         * soft-fp/floatundisf.c: Likewise.
42945         * soft-fp/floatunsidf.c: Likewise.
42946         * soft-fp/floatunsisf.c: Likewise.
42947         * soft-fp/floatuntidf.c: Likewise.
42948         * soft-fp/floatuntisf.c: Likewise.
42949         * soft-fp/floatuntitf.c: Likewise.
42950         * soft-fp/fmadf4.c: Likewise.
42951         * soft-fp/fmasf4.c: Likewise.
42952         * soft-fp/fmatf4.c: Likewise.
42953         * soft-fp/gedf2.c: Likewise.
42954         * soft-fp/gesf2.c: Likewise.
42955         * soft-fp/getf2.c: Likewise.
42956         * soft-fp/ledf2.c: Likewise.
42957         * soft-fp/lesf2.c: Likewise.
42958         * soft-fp/letf2.c: Likewise.
42959         * soft-fp/muldf3.c: Likewise.
42960         * soft-fp/mulsf3.c: Likewise.
42961         * soft-fp/multf3.c: Likewise.
42962         * soft-fp/negdf2.c: Likewise.
42963         * soft-fp/negsf2.c: Likewise.
42964         * soft-fp/negtf2.c: Likewise.
42965         * soft-fp/op-1.h: Likewise.
42966         * soft-fp/op-2.h: Likewise.
42967         * soft-fp/op-4.h: Likewise.
42968         * soft-fp/op-8.h: Likewise.
42969         * soft-fp/op-common.h: Likewise.
42970         * soft-fp/quad.h: Likewise.
42971         * soft-fp/single.h: Likewise.
42972         * soft-fp/soft-fp.h: Likewise.
42973         * soft-fp/sqrtdf2.c: Likewise.
42974         * soft-fp/sqrtsf2.c: Likewise.
42975         * soft-fp/sqrttf2.c: Likewise.
42976         * soft-fp/subdf3.c: Likewise.
42977         * soft-fp/subsf3.c: Likewise.
42978         * soft-fp/subtf3.c: Likewise.
42979         * soft-fp/truncdfsf2.c: Likewise.
42980         * soft-fp/trunctfdf2.c: Likewise.
42981         * soft-fp/trunctfsf2.c: Likewise.
42982         * soft-fp/trunctfxf2.c: Likewise.
42983         * soft-fp/unorddf2.c: Likewise.
42984         * soft-fp/unordsf2.c: Likewise.
42985         * soft-fp/unordtf2.c: Likewise.
42986
42987 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
42988
42989         [BZ #15672]
42990         * misc/error.c (error_tail): Fix possible buffer overflow.
42991
42992 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
42993
42994         [BZ #13028]
42995         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
42996         address.
42997
42998 2013-10-14  P. J. McDermott  <pj@pehjota.net>
42999
43000         [BZ #832]
43001         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
43002         testing pipefail option.
43003
43004 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43005
43006         * soft-fp/double.h: Indent preprocessor directives inside #if.
43007         * soft-fp/extended.h: Likewise.
43008         * soft-fp/op-2.h: Likewise.
43009         * soft-fp/op-4.h: Likewise.
43010         * soft-fp/op-common.h: Likewise.
43011         * soft-fp/quad.h: Likewise.
43012         * soft-fp/single.h: Likewise.
43013         * soft-fp/soft-fp.h: Likewise.
43014
43015 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
43016
43017         * iconv/iconv_prog.c: Fix typos.
43018         * stdio-common/psiginfo-data.h: Likewise.
43019
43020 2013-10-12   Reuben Thomas <rrt@sc3d.org>
43021
43022         [BZ #15764]
43023         * locale/setlocale.c: Fix typo.
43024
43025 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43026
43027         [BZ #16036]
43028         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
43029         signaling NaN arguments.
43030         * soft-fp/unordsf2.c (__unordsf2): Likewise.
43031         * soft-fp/unordtf2.c (__unordtf2): Likewise.
43032
43033         [BZ #14910]
43034         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
43035         unordered operands.
43036         * soft-fp/gesf2.c (__gesf2): Likewise.
43037         * soft-fp/getf2.c (__getf2): Likewise.
43038         * soft-fp/ledf2.c (__ledf2): Likewise.
43039         * soft-fp/lesf2.c (__lesf2): Likewise.
43040         * soft-fp/letf2.c (__letf2): Likewise.
43041
43042         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
43043         * soft-fp/eqsf2.c (__eqsf2): Likewise.
43044         * soft-fp/eqtf2.c (__eqtf2): Likewise.
43045         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
43046         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
43047         * soft-fp/fixdfti.c (__fixdfti): Likewise.
43048         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
43049         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
43050         * soft-fp/fixsfti.c (__fixsfti): Likewise.
43051         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
43052         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
43053         * soft-fp/fixtfti.c (__fixtfti): Likewise.
43054         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
43055         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
43056         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
43057         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
43058         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
43059         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
43060         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
43061         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
43062         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
43063         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
43064         * soft-fp/floatdisf.c (__floatdisf): Likewise.
43065         * soft-fp/floatsisf.c (__floatsisf): Likewise.
43066         * soft-fp/floattidf.c (__floattidf): Likewise.
43067         * soft-fp/floattisf.c (__floattisf): Likewise.
43068         * soft-fp/floattitf.c (__floattitf): Likewise.
43069         * soft-fp/floatundidf.c (__floatundidf): Likewise.
43070         * soft-fp/floatundisf.c (__floatundisf): Likewise.
43071         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
43072         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
43073         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
43074         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
43075         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
43076         * soft-fp/gesf2.c (__gesf2): Likewise.
43077         * soft-fp/getf2.c (__getf2): Likewise.
43078         * soft-fp/ledf2.c (__ledf2): Likewise.
43079         * soft-fp/lesf2.c (__lesf2): Likewise.
43080         * soft-fp/letf2.c (__letf2): Likewise.
43081
43082         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
43083         Undefine and redefine.
43084         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
43085         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
43086         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
43087         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
43088         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43089         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
43090         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43091         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
43092         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43093         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
43094         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43095         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
43096         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43097         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
43098         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43099
43100         [BZ #16032]
43101         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
43102         without decrementing exponent if mantissa >= that for the
43103         denominator, not >.
43104         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
43105         denominator, not >.  Decrement exponent in < case instead of
43106         incrementing in >= case.
43107         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
43108         without decrementing exponent if mantissa >= that for the
43109         denominator, not >.
43110
43111         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
43112         computing saturated result for unsigned overflow.
43113
43114 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
43115             Jeff Law  <law@redhat.com>
43116
43117         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
43118         (atan2Mp): Add systemtap probe marker.
43119         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
43120         (__ieee754_log): Add systemtap probe marker.
43121         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
43122         (atanMp): Add systemtap probe marker.
43123         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
43124         (tanMp): Add systemtap probe marker.
43125         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
43126         (__slowexp): Add systemtap probe marker.
43127         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
43128         (__slowpow): Add systemtap probe marker.
43129         * manual/probes.texi: Document probes.
43130
43131 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
43132
43133         [BZ #15362]
43134         * libio/fileops.c (_IO_new_file_write): Return count of bytes
43135         written.
43136         (_IO_new_file_xsputn): Don't return EOF if nothing has been
43137         written.
43138         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
43139         written to buffer but not flushed.
43140         * libio/iofwrite_u.c:  Likewise.
43141         * libio/iopadn.c:  Return bytes returned even if EOF was
43142         encountered.
43143         * libio/iowpadn.c:  Likewise.
43144         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
43145         if _IO_padn does not write the whole buffer.
43146         [!COMPILE_WPRINTF] (PAD): Likewise.
43147
43148 2013-10-10  David S. Miller  <davem@davemloft.net>
43149
43150         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
43151         directory block.
43152
43153 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43154
43155         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
43156         instead of FSF address.
43157         * soft-fp/fixdfti.c: Likewise.
43158         * soft-fp/fixsfti.c: Likewise.
43159         * soft-fp/fixtfti.c: Likewise.
43160         * soft-fp/fixunsdfti.c: Likewise.
43161         * soft-fp/fixunssfti.c: Likewise.
43162         * soft-fp/fixunstfti.c: Likewise.
43163         * soft-fp/floattidf.c: Likewise.
43164         * soft-fp/floattisf.c: Likewise.
43165         * soft-fp/floattitf.c: Likewise.
43166         * soft-fp/floatuntidf.c: Likewise.
43167         * soft-fp/floatuntisf.c: Likewise.
43168         * soft-fp/floatuntitf.c: Likewise.
43169         * soft-fp/trunctfxf2.c: Likewise.
43170
43171         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
43172         * soft-fp/fixdfti.c: Likewise.
43173         * soft-fp/fixsfti.c: Likewise.
43174         * soft-fp/fixtfti.c: Likewise.
43175         * soft-fp/fixunsdfti.c: Likewise.
43176         * soft-fp/fixunssfti.c: Likewise.
43177         * soft-fp/fixunstfti.c: Likewise.
43178         * soft-fp/floattidf.c: Likewise.
43179         * soft-fp/floattisf.c: Likewise.
43180         * soft-fp/floattitf.c: Likewise.
43181         * soft-fp/floatuntidf.c: Likewise.
43182         * soft-fp/floatuntisf.c: Likewise.
43183         * soft-fp/floatuntitf.c: Likewise.
43184         * soft-fp/trunctfxf2.c: Likewise.
43185
43186 2013-10-10  David S. Miller  <davem@davemloft.net>
43187
43188         * sysdeps/sparc/fpu/libm-test-ulps: Update.
43189
43190 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
43191
43192         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
43193         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
43194         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
43195         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
43196         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
43197         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
43198         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
43199
43200         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
43201         for NaNs before doing comparisons on argument.
43202         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
43203         Likewise.
43204
43205 2013-10-10  Will Newton  <will.newton@linaro.org>
43206
43207         * malloc/hooks.c (memalign_check): Ensure the value of bytes
43208         passed to _int_memalign does not overflow.
43209
43210 2013-10-10  Torvald Riegel  <triegel@redhat.com>
43211
43212         * scripts/bench.pl: Add include-sources directive.
43213         * benchtests/README: Update documentation.
43214
43215 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43216
43217         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
43218         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
43219         instead of FP_INIT_ROUNDMODE.
43220         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
43221         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
43222
43223         [BZ #16034]
43224         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
43225         copy class of input value.
43226         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
43227         not handle exceptions.
43228         * soft-fp/negsf2.c (__negsf2): Likewise.
43229         * soft-fp/negtf2.c (__negtf2): Likewise.
43230         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
43231
43232 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
43233
43234         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
43235         semicolon.  From Linux kernel.
43236
43237 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
43238
43239         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
43240
43241 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
43242
43243         [BZ #156]
43244         * manual/socket.texi: Added statement about buffer
43245         for gethostbyname2_r.
43246
43247 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
43248
43249         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
43250         Use .p2align directive instead, throughout.
43251         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
43252         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
43253         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
43254         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
43255         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
43256         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
43257         * sysdeps/x86_64/strchr.S: Likewise.
43258         * sysdeps/x86_64/strrchr.S: Likewise.
43259
43260 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
43261
43262         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
43263
43264         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
43265
43266         * sysdeps/generic/math_private.h (__mpsin1): Remove
43267         declaration.
43268         (__mpcos1): Likewise.
43269         (__mpsin): New argument __range_reduce.
43270         (__mpcos): Likewise.
43271         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43272         (slow): Use __mpsin and __mpcos.
43273         (slow1): Likewise.
43274         (slow2): Likewise.
43275         (sloww): Likewise.
43276         (sloww1): Likewise.
43277         (sloww2): Likewise.
43278         (bsloww): Likewise.
43279         (bsloww1): Likewise.
43280         (bsloww2): Likewise.
43281         (cslow2): Likewise.
43282         (csloww): Likewise.
43283         (csloww1): Likewise.
43284         (csloww2): Likewise.
43285         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
43286         range_reduce.  Merge in __mpsin1.
43287         (__mpcos): Likewise.
43288         (__mpsin1): Remove.
43289         (__mpcos1): Likewise.
43290
43291 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
43292
43293         * locale/loadlocale.c (_nl_intern_locale_data): Use
43294         LOCFILE_ALIGNED_P.
43295         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
43296         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
43297         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
43298         obstack data is appropriately aligned.
43299         (obstack_int32_grow_fast): Likewise.
43300         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
43301         * locale/programs/locfile.c (add_locale_uint32): Likewise.
43302         (add_locale_uint32_array): Likewise.
43303
43304 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
43305
43306         * benchtests/Makefile: Remove ARGLIST and RET variables.
43307         ($(objpfx)bench-%.c): Pass only function name to the script.
43308         * benchtests/README: Update documentation.
43309         * benchtests/acos-inputs: Add new directives.
43310         * benchtests/acosh-inputs: Likewise.
43311         * benchtests/asin-inputs: Likewise.
43312         * benchtests/asinh-inputs: Likewise.
43313         * benchtests/atan-inputs: Likewise.
43314         * benchtests/atanh-inputs: Likewise.
43315         * benchtests/cos-inputs: Likewise.
43316         * benchtests/cosh-inputs: Likewise.
43317         * benchtests/exp-inputs: Likewise.
43318         * benchtests/log-inputs: Likewise.
43319         * benchtests/pow-inputs: Likewise.
43320         * benchtests/rint-inputs: Likewise.
43321         * benchtests/sin-inputs: Likewise.
43322         * benchtests/sinh-inputs: Likewise.
43323         * benchtests/tan-inputs: Likewise.
43324         * benchtests/tanh-inputs: Likewise.
43325         * scripts/bench.pl: Add support for new directives.
43326
43327 2013-10-07  Alan Modra  <amodra@gmail.com>
43328
43329         * README: Fix careless merge.
43330
43331 2013-10-05  Alan Modra  <amodra@gmail.com>
43332
43333         * NEWS: Mention powerpc64le support and bugs fixed.
43334         * README: Both big-endian and little-endian powerpc64 supported.
43335
43336 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43337
43338         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
43339         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
43340         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
43341         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
43342
43343 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
43344
43345         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
43346         match prototype.
43347
43348 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
43349
43350         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
43351         Move -mhard-float appending from
43352         ports/sysdeps/powerpc/powerpc32/Makefile.
43353         [$(with-fp) = yes] (ASFLAGS): Likewise.
43354         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
43355         * sysdeps/powerpc/nofpu: Move directory from
43356         ports/sysdeps/powerpc/nofpu.
43357         * sysdeps/powerpc/soft-fp: Move directory from
43358         ports/sysdeps/powerpc/soft-fp.
43359         * sysdeps/powerpc/powerpc32/405: Move directory from
43360         ports/sysdeps/powerpc/powerpc32/405.
43361         * sysdeps/powerpc/powerpc32/440: Move directory from
43362         ports/sysdeps/powerpc/powerpc32/440.
43363         * sysdeps/powerpc/powerpc32/464: Move directory from
43364         ports/sysdeps/powerpc/powerpc32/464.
43365         * sysdeps/powerpc/powerpc32/476: Move directory from
43366         ports/sysdeps/powerpc/powerpc32/476.
43367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
43368         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
43370         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
43371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
43372         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
43373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
43374         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
43375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
43376         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
43377         * README: Update for powerpc-*-linux-gnu software floating point
43378         support in libc.
43379
43380         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
43381         case to powerpc/powerpc32*.
43382         * sysdeps/unix/sysv/linux/configure: Regenerated.
43383
43384         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
43385         (_FPU_MASK_OM): Define as 0x04.
43386         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
43387         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
43388         0x00c10080.
43389         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
43390         0x0000003c.
43391         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
43392
43393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
43394         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43395         getcontext_e500.
43396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43397         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43398         setcontext_e500.
43399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
43400         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
43401         and setcontext_e500.
43402
43403 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
43404
43405         * locale/iso-3166.def: Update iso-1366.def and related occurrences
43406
43407 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43408
43409         * manual/threads.texi (Default Thread Attributes): Fix typo.
43410
43411 2013-10-04  Will Newton  <will.newton@linaro.org>
43412
43413         * malloc/Makefile: Add tst-memalign.
43414         * malloc/tst-memalign.c: New file.
43415
43416         * malloc/tst-posix_memalign.c: Add comments.
43417         (do_test): Add comments and call free on all potentially
43418         allocated pointers. Add space after cast.
43419
43420         * malloc/tst-pvalloc.c: Add comments.
43421         (do_test): Add comments and call free on all potentially
43422         allocated pointers. Remove duplicate check for NULL pointer.
43423         Add space after cast.
43424
43425         * malloc/tst-valloc.c: Add comments.
43426         (do_test): Add comments and call free on all potentially
43427         allocated pointers. Remove duplicate check for NULL pointer.
43428         Add space after cast.
43429
43430 2013-10-04  Alan Modra  <amodra@gmail.com>
43431
43432         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43433         Use stdint types in rather than __attribute__((mode())).
43434         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43435
43436 2013-10-04  Alan Modra  <amodra@gmail.com>
43437
43438         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43439         Correct handling of unaligned relocs for little-endian.
43440         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43441
43442 2013-10-04  Alan Modra  <amodra@gmail.com>
43443
43444         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43445         * configure: Regenerate.
43446         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43447         * shlib-versions: Likewise.
43448
43449 2013-10-04  Alan Modra  <amodra@gmail.com>
43450
43451         * string/tester.c (test_memrchr): Increment reported test cycle.
43452
43453 2013-10-04  Alan Modra  <amodra@gmail.com>
43454
43455         * string/test-memcpy.c (do_one_test): When reporting errors, print
43456         string address and don't overrun end of string.
43457
43458 2013-10-04  Alan Modra  <amodra@gmail.com>
43459
43460         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43461         insrdi.  Make better use of reg selection to speed exit slightly.
43462         Schedule entry path a little better.  Remove useless "are we done"
43463         checks on entry to main loop.  Handle wrapping around zero address.
43464         Correct main loop count.  Handle single left-over word from main
43465         loop inline rather than by using loop_small.  Remove extra word
43466         case in loop_small caused by wrong loop count.  Add little-endian
43467         support.
43468         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43469         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43470         cache hint.
43471         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43472         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43473         support.  Avoid rlwimi.
43474         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43475
43476 2013-10-04  Alan Modra  <amodra@gmail.com>
43477
43478         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43479         insrdi.  Formatting.
43480         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43481         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43482         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43483         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43484         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43485         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43486
43487 2013-10-04  Alan Modra  <amodra@gmail.com>
43488
43489         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43490         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43491         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43492         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43493         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43494         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43495         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43496         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43497         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43498         use of regs.  Use power7 mtocrf.  Tidy function tails.
43499
43500 2013-10-04  Alan Modra  <amodra@gmail.com>
43501
43502         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43503         Formatting.  Consistently use rXXX register defines or rN defines.
43504         Use early exit labels that avoid restoring unused non-volatile regs.
43505         Make cr field use more consistent with rWORDn compares.  Rename
43506         regs used as shift registers for unaligned loop, using rN defines
43507         for short lifetime/multiple use regs.
43508         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43509         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43510         addi 1,1,64 to pop stack frame.  Simplify return value code.
43511         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43512
43513 2013-10-04  Alan Modra  <amodra@gmail.com>
43514
43515         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43516         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43517         rather than rlwimi.
43518         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43519         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43520         little-endian support.  Correct typos.
43521         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43522         rather than rlwimi.
43523         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43524         in loop and entry code to keep "and." results.
43525         (strchr): Add little-endian support.  Comment.  Move cntlzd
43526         earlier in tail.
43527         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43528
43529 2013-10-04  Alan Modra  <amodra@gmail.com>
43530
43531         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43532         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43533         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43534         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43535
43536 2013-10-04  Alan Modra  <amodra@gmail.com>
43537
43538         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43539         (rTMP): Define as r11.
43540         (strcmp): Add little-endian support.  Optimise tail.
43541         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43542         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43543         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43544         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43545         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43546         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43547         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43548
43549 2013-10-04  Alan Modra  <amodra@gmail.com>
43550
43551         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43552         little-endian support.  Remove unnecessary "are we done" tests.
43553         Handle "s" wrapping around zero and extremely large "size".
43554         Correct main loop count.  Handle single left-over word from main
43555         loop inline rather than by using small_loop.  Correct comments.
43556         Delete "zero" tail, use "end_max" instead.
43557         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43558
43559 2013-10-04  Alan Modra  <amodra@gmail.com>
43560
43561         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43562         support.  Don't branch over align.
43563         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43564         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43565         support.  Rearrange tmp reg use to suit.  Comment.
43566         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43567
43568 2013-10-04  Alan Modra  <amodra@gmail.com>
43569
43570         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43571
43572 2013-10-04  Alan Modra  <amodra@gmail.com>
43573
43574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43575         conditional form of branch and link when obtaining pc.
43576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43577
43578 2013-10-04  Alan Modra  <amodra@gmail.com>
43579
43580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43581         HIWORD/LOWORD.
43582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43584
43585 2013-10-04  Alan Modra  <amodra@gmail.com>
43586
43587         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43588         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43589         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43590         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43591         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43592         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43593         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43594         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43595         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43596         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43597
43598 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43599             Alistair Popple <alistair@ozlabs.au.ibm.com>
43600             Alan Modra <amodra@gmail.com>
43601
43602         [BZ #15723]
43603         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43604         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43605         _dl_hwcap access for little-endian.
43606         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43607         destroy vmx regs when saving unaligned.
43608         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43609         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43610         destroy vmx regs when saving unaligned.
43611
43612 2013-10-04  Alan Modra  <amodra@gmail.com>
43613
43614         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43615         Don't use a union to pack hi/low value.
43616
43617 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43618
43619         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43620         for little-endian.
43621         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43622         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43623         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43624         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43625         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43626
43627 2013-10-04  Alan Modra  <amodra@gmail.com>
43628
43629         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43630         constants to usual value for .cst8 section, and remove redundant
43631         high address load.
43632         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43633         constant for 0x1p52.  Load little-endian words of double from
43634         correct stack offsets.
43635
43636 2013-10-04  Alan Modra  <amodra@gmail.com>
43637
43638         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43639         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43640         words of double from correct stack offsets.
43641         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43642         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43643         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43644         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43645         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43646         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43647         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43648         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43649         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43650         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43651         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43652         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43653         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43654         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43655         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43656         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43657         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43658
43659 2013-10-04  Alan Modra  <amodra@gmail.com>
43660
43661         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43662         64-bit int/double union.
43663         (_FPU_SETCW): Likewise.
43664         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43665         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43666
43667 2013-10-04  Alan Modra  <amodra@gmail.com>
43668
43669         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43670         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43671
43672 2013-10-04  Alan Modra  <amodra@gmail.com>
43673
43674         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43675         use vector int constants.
43676         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43677
43678 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43679
43680         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43681         array with long long.
43682         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43683         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43684         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43685         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43686         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43687         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43688         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43689         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43690         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43691         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43692         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43693         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43694         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43695
43696 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43697
43698         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43699         (__signbit): Likewise.  Correct for little-endian.
43700         (__signbitl): Call __signbit.
43701         (lrint): Correct for little-endian.
43702         (lrintf): Call lrint.
43703
43704 2013-10-04  Alan Modra  <amodra@gmail.com>
43705
43706         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43707         union 32-bit int array member with 64-bit int array.
43708         (t515, tm256): Double rather than long double.
43709         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43710
43711 2013-10-04  Alan Modra  <amodra@gmail.com>
43712
43713         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43714         Delete.
43715         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43716         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43717         version of math_ldbl.h.
43718
43719 2013-10-04  Alan Modra  <amodra@gmail.com>
43720
43721         [BZ #15734], [BZ #15735]
43722         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43723         all uses of ieee875 long double macros and unions.  Simplify test
43724         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43725         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43726         normalize after ldbl_extract_mantissa, and don't add hidden bit
43727         already handled.  Don't treat low word of ieee854 mantissa like
43728         low word of IBM long double and mask off bit when testing for
43729         zero.
43730         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43731         all uses of ieee875 long double macros and unions.  Simplify tests
43732         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43733         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43734         two1022, instead use their values.  Recognise that tests for large
43735         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43736         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43737         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43738         test for 0.0L and nan.  Correct negation.
43739         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43740         ieee875 long double macros and unions.  Correct output for large
43741         magnitude x.  Correct absolute value calculation.
43742         (__erfcl): Likewise.
43743         * math/libm-test.inc: Add tests for errors discovered in IBM long
43744         double versions of fmodl, remainderl, erfl and erfcl.
43745
43746 2013-10-04  Alan Modra  <amodra@gmail.com>
43747
43748         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43749         all uses of ieee854 long double macros and unions.  Simplify tests
43750         for long doubles that are fully specified by the high double.
43751         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43752         Likewise.
43753         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43754         Remove dead code too.
43755         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43756         (__ieee754_ynl): Likewise.
43757         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43758         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43759         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43760         Remove dead code too.
43761         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43762         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43763         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43764         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43765         Simplify.
43766         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43767         Simplify.
43768         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43769         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43770         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43771         Comment on variable precision.
43772         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43773         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43774         Likewise.
43775         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43776         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43777         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43778         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43779         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43780
43781 2013-10-04  Alan Modra  <amodra@gmail.com>
43782
43783         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43784         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43785         all uses of ieee854 long double macros and unions.
43786         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43787         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43788         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43789         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43790         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43791         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43792         Likewise.
43793         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43794         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43795         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43796         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43797         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43798         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43799         Simplify sign and nan test too.
43800         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43801         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43802         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43803         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43804         Likewise.
43805         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43806         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43807         Likewise.
43808         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43809         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43810         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43811         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43812         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43813         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43814
43815 2013-10-04  Alan Modra  <amodra@gmail.com>
43816
43817         * stdio-common/printf_size.c (__printf_size): Don't use
43818         union ieee854_long_double in fpnum union.
43819         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43820         signbit macro to retrieve sign from long double.
43821         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43822         retrieve sign from long double.
43823         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43824         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43825         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43826         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43827         * math/test-misc.c (main): Don't use union ieee854_long_double.
43828
43829 2013-10-04  Alan Modra  <amodra@gmail.com>
43830
43831         [BZ #15680]
43832         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43833         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43834         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43835         calculation.  Remove unnecessary test for denormal exponent.
43836         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43837         Correct handling of denormals.  Avoid undefined shift behaviour.
43838         Correct normalisation of low mantissa when low double is denormal.
43839         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43840         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43841         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43842         Correct normalisation of low mantissa.  Test for overflow of high
43843         mantissa and normalise.
43844         (ldbl_nearbyint): Use more readable constant for two52.
43845         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43846         (__mpn_construct_long_double): Fix test for overflow of high
43847         mantissa and correct normalisation.  Avoid undefined shift.
43848
43849 2013-10-04  Alan Modra  <amodra@gmail.com>
43850
43851         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43852         (union ibm_extended_long_double): Define as an array of ieee754_double.
43853         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43854         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43855         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43856         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43857         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43858         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43859         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43860         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43861         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43862         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43863         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43864
43865 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43866
43867         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43868         page size instead of calling getpagesize.
43869
43870         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43871         (LOCFILE_ALIGN_MASK): Likewise.
43872         (LOCFILE_ALIGN_UP): Likewise.
43873         (LOCFILE_ALIGNED_P): Likewise.
43874         * locale/programs/ld-collate.c (collate_output): Use the new
43875         macros instead of __alignof__ (int32_t).
43876         * locale/weight.h (findidx): Likewise.
43877
43878 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43879
43880         [BZ #431]
43881         * manual/string.texi: Fix strncat and wcsncat.
43882
43883 2013-10-03  Brooks Moses  <bmoses@google.com>
43884
43885         [BZ #15915]
43886         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43887         * Makerules: ...here, and adjust associated comments.
43888
43889 2013-10-02  Will Newton  <will.newton@linaro.org>
43890
43891         * malloc/Makefile: Add tst-pvalloc.
43892         * malloc/tst-pvalloc.c: New file.
43893
43894 2013-10-02  Will Newton  <will.newton@linaro.org>
43895
43896         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43897         improve test coverage.
43898
43899 2013-10-02  Will Newton  <will.newton@linaro.org>
43900
43901         * malloc/Makefile: Add tst-posix_memalign.
43902         * malloc/tst-posix_memalign.c: New file.
43903
43904 2013-10-01  Eric Blake  <eblake@redhat.com>
43905
43906         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
43907         Use __THROWNL rather than __THROW on static functions.
43908
43909 2013-09-30  Petr Machata  <pmachata@redhat.com>
43910
43911         * elf/elf.h (R_AARCH64_ABS16): New macro.
43912         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
43913         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
43914         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
43915         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
43916         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
43917         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
43918         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
43919         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
43920         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
43921         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
43922         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
43923         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
43924         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
43925         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
43926         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
43927         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
43928         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
43929         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
43930         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
43931         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
43932         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
43933         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
43934         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
43935         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
43936         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
43937         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
43938         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
43939         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
43940         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
43941         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
43942         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
43943         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
43944         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
43945         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
43946         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
43947         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
43948         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
43949         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
43950         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
43951         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
43952         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
43953         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
43954         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
43955         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
43956         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
43957         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
43958         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
43959         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
43960         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
43961         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
43962         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
43963         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
43964         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
43965         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
43966         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
43967         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
43968         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
43969         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
43970         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
43971         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
43972         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
43973         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
43974         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
43975         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
43976         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
43977         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
43978         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
43979         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
43980         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
43981         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
43982         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
43983         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
43984         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
43985         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
43986         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
43987         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
43988         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
43989         (R_AARCH64_TLSDESC_LDR): Likewise.
43990         (R_AARCH64_TLSDESC_ADD): Likewise.
43991         (R_AARCH64_TLSDESC_CALL): Likewise.
43992
43993 2013-09-30  Andreas Schwab  <schwab@suse.de>
43994
43995         [BZ #15048]
43996         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
43997         the nss database lookup.
43998         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43999         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44000
44001 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
44002
44003         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
44004
44005 2013-09-28  P. J. McDermott  <pj@pehjota.net>
44006
44007         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
44008         ${Bash-specific parameter/pattern/string} parameter expansion.
44009         * sysdeps/unix/make-syscalls.sh: Likewise.
44010
44011 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44012
44013         * sysdeps/sh/stackguard-macros.h: New file.
44014
44015 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
44016
44017         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
44018         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
44019         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
44020         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
44021         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44022         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
44023
44024 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44025
44026         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
44027         Fix thread ID register.
44028
44029 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
44030
44031         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
44032         [POSIX || UNIX98]: Require rather than permitting all symbols from
44033         <time.h>.
44034         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
44035         element of struct sched_param.
44036         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
44037         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
44038         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
44039         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
44040         constant.
44041
44042 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
44043
44044         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
44045         argument calculation.
44046
44047 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44048
44049         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
44050         Expect macro.
44051         [POSIX] (pthread_attr_t): Do not require type.
44052         [POSIX] (pthread_cond_t): Likewise.
44053         [POSIX] (pthread_condattr_t): Likewise.
44054         [POSIX] (pthread_key_t): Likewise.
44055         [POSIX] (pthread_mutex_t): Likewise.
44056         [POSIX] (pthread_mutexattr_t): Likewise.
44057         [POSIX] (pthread_once_t): Likewise.
44058         [POSIX] (pthread_t): Likewise.
44059         [POSIX-based standards] (pthread_atfork): Expect function.
44060
44061 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44062             Richard Sandiford  <richard@codesourcery.com>
44063
44064         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
44065         (swap_endianness_p): New extern variable.
44066         (set_big_endian): New inline function.
44067         (maybe_swap_uint32): Likewise.
44068         (maybe_swap_uint32_array): Likewise.
44069         (maybe_swap_uint32_obstack): Likewise.
44070         * locale/programs/locfile.c: Include <stdbool.h>.
44071         (swap_endianness_p): New variable.
44072         (add_locale_uint32): Call maybe_swap_uint32.
44073         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
44074         (write_locale_data): Call maybe_swap_uint32_array.
44075         * locale/programs/ld-collate.c (obstack_int32_grow): Call
44076         maybe_swap_uint32.
44077         (obstack_int32_grow_fast): Likewise.
44078         (output_weightwc): Call maybe_swap_uint32_obstack.
44079         (collate_output): Likewise.
44080         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
44081         (OPT_LITTLE_ENDIAN): Likewise.
44082         (options): Add --little-endian and --big-endian options.
44083         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
44084         * locale/programs/locarchive.c: Include "locfile.h".
44085         (GET): New macro.
44086         (SET): Likewise.
44087         (INC): Likewise.
44088         (create_archive): Use the new macros to access fields of
44089         structures directly mapped from or written to locale archives.
44090         (oldlocrecentcmp): Likewise.
44091         (enlarge_archive): Likewise.
44092         (insert_name): Likewise.
44093         (add_alias): Likewise.
44094         (add_locale): Likewise.
44095         (delete_locales_from_archive): Likewise.
44096         (show_archive_content): Likewise.
44097         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
44098         locale data.
44099
44100 2013-09-24  Roland McGrath  <roland@hack.frob.com>
44101
44102         * manual/freemanuals.texi: Updated from (newly) canonical copy at
44103         http://www.gnu.org/doc/freemanuals.texi.
44104         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
44105
44106 2013-09-24  Will Newton  <will.newton@linaro.org>
44107
44108         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
44109         macro.
44110
44111 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
44112
44113         * locale/hashval.h (compute_hashval): Interpret bytes of key as
44114         unsigned char.
44115
44116 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
44117
44118         * manual/threads.texi (POSIX Threads): Fix a typo.
44119
44120 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
44121
44122         [BZ #14547]
44123         * string/tst-strcoll-overflow.c: New test case.
44124         * string/Makefile (xtests): Add tst-strcoll-overflow.
44125         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
44126         cache if string sizes may cause integer overflow.
44127
44128         [BZ #14547]
44129         * string/strcoll_l.c (coll_seq): New members rule, idx,
44130         save_idx and back_us.
44131         (get_next_seq_nocache): New function.
44132         (do_compare_nocache): New function.
44133         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
44134         when malloc fails.
44135
44136 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
44137
44138         [BZ #15754]
44139         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
44140         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
44141         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
44142
44143         [BZ #15754]
44144         * elf/Makefile (tests): Add tst-ptrguard1.
44145         (tests-static): Add tst-ptrguard1-static.
44146         (tst-ptrguard1-ARGS): Define.
44147         (tst-ptrguard1-static-ARGS): Define.
44148         * elf/tst-ptrguard1.c: New file.
44149         * elf/tst-ptrguard1-static.c: New file.
44150         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
44151         * sysdeps/i386/stackguard-macros.h: Likewise.
44152         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
44153         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
44154         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
44155         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
44156         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
44157         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
44158
44159 2013-09-23  Hector Marco  <hecmargi@upv.es>
44160             Ismael Ripoll  <iripoll@disca.upv.es>
44161             Carlos O'Donell  <carlos@redhat.com>
44162
44163         [BZ #15754]
44164         * sysdeps/generic/stackguard-macros.h: Define
44165         __pointer_chk_guard_local and POINTER_CHK_GUARD.
44166         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
44167         Define __pointer_chk_guard_local.
44168         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
44169         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
44170
44171 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
44172
44173         [BZ #15859]
44174         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
44175
44176 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
44177
44178         * include/string.h (__ffs): Declare as hidden.
44179         * string/ffs.c (__ffs): Define as hidden.
44180         * sysdeps/i386/ffs.c (__ffs): Likewise.
44181         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
44182         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
44183         * sysdeps/s390/ffs.c (__ffs): Likewise.
44184         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
44185
44186 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
44187
44188         * NEWS: Mention malloc probes.
44189
44190         * malloc/arena.c (new_heap): New memory_heap_new probe.
44191         (grow_heap): New memory_heap_more probe.
44192         (shrink_heap): New memory_heap_less probe.
44193         (heap_trim): New memory_heap_free probe.
44194         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
44195         (systrim): New memory_sbrk_less probe.
44196         * manual/probes.texi: Document them.
44197
44198         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
44199         * manual/probes.texi: Document it.
44200
44201         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
44202         (__libc_realloc): Add memory_realloc_retry probe.
44203         (__libc_memalign): Add memory_memalign_retry probe.
44204         (__libc_valloc): Add memory_valloc_retry probe.
44205         (__libc_pvalloc): Add memory_pvalloc_retry probe.
44206         (__libc_calloc): Add memory_calloc_retry probe.
44207         * manual/probes.texi: Document them.
44208
44209         * malloc/arena.c (get_free_list): Add probe
44210         memory_arena_reuse_free_list.
44211         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
44212         and memory_arena_reuse.
44213         (arena_get2) [!PER_THREAD]: Likewise.
44214         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
44215         memory_arena_reuse_realloc.
44216         * manual/probes.texi: Document them.
44217
44218         * malloc/malloc.c (__libc_free): Add
44219         memory_mallopt_free_dyn_thresholds probe.
44220         (__libc_mallopt): Add multiple memory_mallopt probes.
44221         * manual/probes.texi: Document them.
44222
44223         * malloc/malloc.c: Include stap-probe.h.
44224         (__libc_mallopt): Add memory_mallopt probe.
44225         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
44226         * manual/probes.texi: New.
44227         * manual/Makefile (chapters): Add probes.
44228         * manual/threads.texi: Set next node.
44229
44230 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
44231
44232         [BZ #15963, #13985]
44233         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
44234         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
44235         Add `Chinese' to `nan' entry name.
44236
44237 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44238
44239         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
44240         (POLYNOMIAL): Likewise.
44241         (TAYLOR_SINCOS): Likewise.
44242         (TAYLOR_SLOW): Likewise.
44243         (__sin): Use TAYLOR_SINCOS.
44244         (__cos): Likewise.
44245         (slow): Use TAYLOR_SLOW.
44246         (sloww): Likewise.
44247         (bsloww): Likewise.
44248         (csloww): Likewise.
44249
44250 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44251
44252         * stdlib/strtod_l.c: Fix buffer overrun.
44253
44254 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44255
44256         * benchtests/Makefile (bench): Add sincos.
44257         * benchtests/bench-sincos.c: New file.
44258
44259         * math/libm-test.inc (cos_test_data): New test inputs.
44260         (sin_test_data): Likewise.
44261
44262         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
44263         macro.
44264         (__sin): Use it.
44265         (__cos): Likewise.
44266         (slow1): Likewise.
44267         (slow2): Likewise.
44268         (sloww1): Likewise.
44269         (sloww2): Likewise.
44270         (bsloww1): Likewise.
44271         (bsloww2): Likewise.
44272         (cslow2): Likewise.
44273         (csloww1): Likewise.
44274         (csloww2): Likewise.
44275
44276         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
44277         function.
44278         (__sin): Use it.
44279         (__cos): Likewise.
44280
44281         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
44282         gotos.
44283         (__cos): Likewise.
44284
44285 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
44286
44287         * config.h.in (HAVE_MIPS_NAN2008): New macro.
44288         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
44289         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
44290         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
44291         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
44292         * elf/cache.c (print_entry): Handle the new cache flags.
44293
44294 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44295             Aldy Hernandez  <aldyh@redhat.com>
44296
44297         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
44298         Change condition to [_SOFT_FLOAT].
44299         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
44300         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
44301         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
44302         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
44303         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
44304         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
44305         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
44306         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
44307         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
44308         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
44309         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
44310         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
44311         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
44312         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
44313         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
44314         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
44315         declaration.
44316
44317 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44318
44319         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
44320         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44321         (__longjmp): Use LOAD_GP to load saved GPRs.
44322         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
44323         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44324         (__sigsetjmp): Use SAVE_GP to save GPRs.
44325
44326         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
44327         Do not append -msoft-float.
44328         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
44329
44330 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
44331
44332         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
44333
44334 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
44335
44336         [BZ #15966]
44337         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
44338         (_FPU_GETCW): Use initial "__" on variable and field names but not
44339         on macro parameter name.
44340         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
44341         parentheses around reference to macro parameter.
44342
44343 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
44344
44345         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
44346         prototype.
44347         (ctype_startup): Use uint32_t in cast and sizeof for
44348         ctype->charnames.
44349
44350 2013-09-11  Jia Liu  <proljc@gmail.com>
44351
44352         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
44353         __daddr_t_defined.
44354         [__FreeBSD__]: Likewise.
44355
44356 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
44357
44358         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
44359         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
44360         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
44361         (strchr): Remove __strchr_sse42 ifunc selection.
44362         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
44363         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
44364
44365 2013-09-11  Will Newton  <will.newton@linaro.org>
44366
44367         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
44368         parameter to RES. Remove hardcoded 1000 value.
44369         * benchtests/bench-skeleton.c (main): Pass RES parameter
44370         to TIMING_INIT and multiply result by 1000.
44371
44372 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44373
44374         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44375
44376 2013-09-11  Andreas Schwab  <schwab@suse.de>
44377
44378         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
44379         if not defined.
44380         (O_TMPFILE) [__USE_GNU]: Define.
44381         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
44382         Define.
44383
44384 2013-09-11  Will Newton  <will.newton@linaro.org>
44385
44386         [BZ #15857]
44387         * malloc/malloc.c (__libc_memalign): Check the value of bytes
44388         does not overflow.
44389
44390 2013-09-11  Will Newton  <will.newton@linaro.org>
44391
44392         [BZ #15856]
44393         * malloc/malloc.c (__libc_valloc): Check the value of bytes
44394         does not overflow.
44395
44396 2013-09-11  Will Newton  <will.newton@linaro.org>
44397
44398         [BZ #15855]
44399         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
44400         does not overflow.
44401
44402 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
44403
44404         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
44405         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44406         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44407         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44408         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44409
44410 2013-09-10  Allan McRae  <allan@archlinux.org>
44411
44412         [BZ #15748]
44413         * manual/arith.texi (Parsing of Floats): Clarify
44414         cross-reference.
44415
44416         [BZ #15849]
44417         * manual/install.texi (Running make install): Mention
44418         --enable-pt-chown.
44419         * INSTALL: Regenerated.
44420
44421 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
44422
44423         * csu/init-first.c (_init): Remove the !SHARED condition around
44424         FPU control word initialization.
44425         * elf/dl-support.c (_dl_fpu_control): New variable.
44426         (_dl_aux_init) <AT_FPUCW>: Initialize it.
44427         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
44428         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
44429         * math/test-fpucw-static.c: New file.
44430         * math/test-fpucw-ieee.c: New file.
44431         * math/test-fpucw-ieee-static.c: New file.
44432         * math/Makefile (tests): Add `test-fpucw-ieee' and
44433         `$(tests-static)'.
44434         (tests-static): New variable.
44435         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
44436         dependency to...
44437         [($(build-shared),yes)]
44438         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
44439         ... this.
44440         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44441         New dependency.
44442
44443 2013-09-09  Allan McRae  <allan@archlinux.org>
44444
44445         [BZ #15939]
44446         * manual/string.texi (Collation Functions): Fix typo in
44447         strcoll example.
44448         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44449
44450         [BZ #15893]
44451         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44452
44453         [BZ #15892]
44454         * libio/memstream.c (open_memstream): Fix memory leak.
44455         * libio/wmemstream.c (open_wmemstream): Likewise.
44456
44457         [BZ #15895]
44458         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44459
44460 2013-09-09  Will Newton  <will.newton@linaro.org>
44461
44462         * malloc/Makefile: Add tst-realloc to tests.
44463         * malloc/tst-realloc.c: New file.
44464
44465 2013-09-09  Allan McRae  <allan@archlinux.org>
44466
44467         [BZ #15844]
44468         * COPYING: Update from GNU website to fix FSF address.
44469         * COPYING.LIB: Likewise.
44470
44471 2013-09-06  David S. Miller  <davem@davemloft.net>
44472
44473         * po/zh_TW.po: Update Chinese (traditional) translation from
44474         translation project.
44475
44476 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44477             Joseph Myers  <joseph@codesourcery.com>
44478
44479         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44480         "localeinfo.h".
44481         (obstack_chunk_alloc): New macro.
44482         (obstack_chunk_free): Likewise.
44483         (record_offset): New function.
44484         (init_locale_data): Likewise.
44485         (align_locale_data): Likewise.
44486         (add_locale_empty): Likewise.
44487         (add_locale_raw_data): Likewise.
44488         (add_locale_raw_obstack): Likewise.
44489         (add_locale_string): Likewise.
44490         (add_locale_wstring): Likewise.
44491         (add_locale_uint32): Likewise.
44492         (add_locale_uint32_array): Likewise.
44493         (add_locale_char): Likewise.
44494         (start_locale_structure): Likewise.
44495         (end_locale_structure): Likewise.
44496         (start_locale_prelude): Likewise.
44497         (end_locale_prelude): Likewise.
44498         (write_locale_data): Take locale_file structure rather than an
44499         iovec.
44500         * locale/programs/locfile.h: Include "obstack.h".
44501         (struct locale_file): Change to store locale file contents instead
44502         of header.
44503         (init_locale_data): New prototype.
44504         (align_locale_data): Likewise.
44505         (add_locale_empty): Likewise.
44506         (add_locale_raw_data): Likewise.
44507         (add_locale_raw_obstack): Likewise.
44508         (add_locale_string): Likewise.
44509         (add_locale_wstring): Likewise.
44510         (add_locale_uint32): Likewise.
44511         (add_locale_uint32_array): Likewise.
44512         (add_locale_char): Likewise.
44513         (start_locale_structure): Likewise.
44514         (end_locale_structure): Likewise.
44515         (start_locale_prelude): Likewise.
44516         (end_locale_prelude): Likewise.
44517         (write_locale_data): Update prototype.
44518         * locale/programs/3level.h (struct TABLE): Remove result field.
44519         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44520         Use new locale_file interface.
44521         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44522         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44523         * locale/programs/ld-address.c (address_output): Use new
44524         locale_file interface.
44525         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44526         NO_ADD_LOCALE.
44527         (collate_finish): Don't call collseq_table_finalize.
44528         (collate_output): Use new locale_file interface.
44529         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44530         in file.
44531         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44532         (TABLE): Move defines earlier in file.
44533         (ELEMENT): Likewise.
44534         (DEFAULT): Likewise.
44535         (wctrans_table_add): Move macro and inline function earlier in
44536         file.
44537         (struct wctype_table): Move type earlier in file.
44538         (add_locale_wctype_table): New static prototype.
44539         (struct locale_ctype_t): Use logical types instead of struct iovec
44540         pointers for members.
44541         (ctype_output): Use new locale_file interface.
44542         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44543         new locale_file interface.
44544         (allocate_arrays): Update for use of new locale_file interface.
44545         * locale/programs/ld-identification.c (identification_output): Use
44546         new locale_file interface.
44547         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44548         * locale/programs/ld-messages.c (messages_output): Likewise.
44549         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44550         * locale/programs/ld-name.c (name_output): Likewise.
44551         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44552         * locale/programs/ld-paper.c (paper_output): Likewise.
44553         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44554         * locale/programs/ld-time.c (time_output): Likewise.
44555
44556 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44557
44558         * benchtests/Makefile: Add memrchr benchmark.
44559         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44560         benchmark as memrchr.
44561         * benchtests/bench-memrchr-ifunc.c: New file.
44562         * benchtests/bench-memrchr.c: New file.
44563
44564 2013-09-06   Will Newton  <will.newton@linaro.org>
44565
44566         * benchtests/Makefile (string-bench): Add memcpy.
44567
44568 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44569             Cong Wang  <amwang@redhat.com>
44570
44571         [BZ #15850]
44572         * sysdeps/unix/sysv/linux/bits/in.h
44573         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44574         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44575         before __USE_KERNEL_IPV6_DEFS uses.
44576         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44577         IPPROTO_BEETPH.
44578         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44579         sockaddr_in6, or ipv6_mreq.
44580
44581 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44582
44583         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44584         memory access for final bytes in some large inputs.
44585         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44586
44587 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44588
44589         * string/test-memrchr.c: New file.
44590         * string/test-memrchr-ifunc.c: New file.
44591         * string/Makefile: Add new memrchr testcase.
44592
44593 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44594
44595         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44596         fanotify_init returns EPERM.
44597
44598 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44599
44600         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44601         errors.
44602         (top level): Treat second token from macro or constant entries for
44603         allowed headers as allowed.
44604         * include/complex.h: Condition internal declarations on
44605         [!_ISOMAC].
44606         * include/fenv.h: Condition include of <stdbool.h> and internal
44607         declarations on [!_ISOMAC].
44608
44609 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44610
44611         [BZ #15923]
44612         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44613
44614 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44615
44616         * configure.in (--enable-versioning): Remove configure option.
44617         (libc_cv_asm_symver_directive): Remove configure test.
44618         (libc_cv_ld_version_script_option): Likewise.
44619         (VERSIONING): Remove variable and AC_SUBST.
44620         (DO_VERSIONING): Remove AC_DEFINE.
44621         * configure: Regenerated.
44622         * config.h.in (DO_VERSIONING): Remove macro.
44623         * Makerules [$(versioning) = yes]: Change conditionals to
44624         [$(build-shared) = yes].
44625         * config.make.in (versioning): Remove variable.
44626         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44627         [$(build-shared) = yes].
44628         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44629         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44630         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44631         [$(build-shared) = yes].
44632         * extra-lib.mk [$(versioning) = yes]: Likewise.
44633         * hurd/Makefile [$(versioning) = yes]: Likewise.
44634         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44635         [SHARED].
44636         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44637         [SHARED].
44638         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44639         [SHARED && !NO_HIDDEN].
44640         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44641         [SHARED].
44642         [SHARED && DO_VERSIONING]: Likewise..
44643         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44644         [$(build-shared) = yes].
44645         * manual/install.texi (--disable-versioning): Remove
44646         documentation.
44647         * INSTALL: Regenerated.
44648         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44649         to [SHARED].
44650         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44651         [$(build-shared) = yes].
44652         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44653         * sysdeps/i386/i686/multiarch/strstr-c.c
44654         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44655         [SHARED && !NO_HIDDEN].
44656         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44657         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44658         * sysdeps/powerpc/powerpc32/dl-machine.c
44659         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44660         * sysdeps/powerpc/powerpc32/sysdep.h
44661         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44662         to [SHARED && PIC && !NO_HIDDEN].
44663         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44664         conditional to [SHARED].
44665
44666 2013-09-04   Will Newton  <will.newton@linaro.org>
44667
44668         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44669         * benchtests/bench-string.h: Include bench-timing.h instead
44670         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44671         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44672         call to HP_TIMING_DIFF_INIT.
44673         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44674         instead of hp-timing.h macros.
44675         * benchtests/bench-memchr.c: Likewise.
44676         * benchtests/bench-memcmp.c: Likewise.
44677         * benchtests/bench-memcpy.c: Likewise.
44678         * benchtests/bench-memmem.c: Likewise.
44679         * benchtests/bench-memmove.c: Likewise.
44680         * benchtests/bench-memset.c: Likewise.
44681         * benchtests/bench-rawmemchr.c: Likewise.
44682         * benchtests/bench-strcasecmp.c: Likewise.
44683         * benchtests/bench-strcasestr.c: Likewise.
44684         * benchtests/bench-strcat.c: Likewise.
44685         * benchtests/bench-strchr.c: Likewise.
44686         * benchtests/bench-strcmp.c: Likewise.
44687         * benchtests/bench-strcpy.c: Likewise.
44688         * benchtests/bench-strcpy_chk.c: Likewise.
44689         * benchtests/bench-strlen.c: Likewise.
44690         * benchtests/bench-strncasecmp.c: Likewise.
44691         * benchtests/bench-strncat.c: Likewise.
44692         * benchtests/bench-strncmp.c: Likewise.
44693         * benchtests/bench-strncpy.c: Likewise.
44694         * benchtests/bench-strnlen.c: Likewise.
44695         * benchtests/bench-strpbrk.c: Likewise.
44696         * benchtests/bench-strrchr.c: Likewise.
44697         * benchtests/bench-strspn.c: Likewise.
44698         * benchtests/bench-strstr.c: Likewise.
44699
44700 2013-09-04  Will Newton  <will.newton@linaro.org>
44701
44702         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44703
44704 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44705
44706         [BZ #15427]
44707         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44708         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44709         * math/libm-test.inc (lgamma_test_data): Add more tests.
44710         * sysdeps/i386/fpu/libm-test-ulps: Update.
44711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44712
44713 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44714
44715         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44716         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44717         Add ifunc.
44718         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44719         Add strcmp-sse2-unaligned
44720         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44721
44722 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44723
44724         * Versions.def (libc): Add GLIBC_2.19.
44725
44726 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44727
44728         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44729         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44730
44731 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44732
44733         [BZ #14155]
44734         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44735         intermediate calculations in recurrence.
44736         (__ieee754_ynf): Likewise.
44737         * math/libm-test.inc (jn_test_data): Do not allow spurious
44738         underflow exception.  Add more tests.
44739         (yn_test_data): Add more tests.
44740         * sysdeps/i386/fpu/libm-test-ulps: Update.
44741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44742
44743 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44744
44745         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44746
44747 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44748
44749         * csu/init-first.c: Fix then/than typos.
44750         * locale/programs/ld-collate.c: Likewise.
44751         * locale/programs/linereader.h: Likewise.
44752         * manual/charset.texi: Likewise.
44753         * manual/filesys.texi: Likewise.
44754         * manual/stdio.texi: Likewise.
44755         * manual/string.texi: Likewise.
44756         * stdlib/fmtmsg.c: Likewise.
44757         * sysdeps/i386/stpncpy.S: Likewise.
44758         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44759         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44760         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44761         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44762
44763 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44764
44765         * elf/dl-open.c: Fix typos.
44766         * iconvdata/gbbig5.c: Likewise.
44767         * iconvdata/iso-2022-jp.c: Likewise.
44768         * iconv/gconv_int.h: Likewise.
44769         * iconv/loop.c: Likewise.
44770         * nis/rpcsvc/nis.h: Likewise.
44771         * resolv/ns_name.c: Likewise.
44772         * stdio-common/vfscanf.c: Likewise.
44773         * streams/stropts.h: Likewise.
44774         * sunrpc/rpc_thread.c: Likewise.
44775         * sysdeps/i386/strpbrk.S: Likewise.
44776         * sysdeps/ieee754/k_standard.c: Likewise.
44777         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44778         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44779         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44780         * sysdeps/mach/hurd/profil.c: Likewise.
44781         * sysdeps/s390/dl-procinfo.h: Likewise.
44782         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44783         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44784         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44785         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44786         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44787
44788 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44789
44790         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44791         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44792
44793 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44794
44795         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44796         aix specific files.
44797         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44798         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44799         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44800         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44801         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44802         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44803         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44804         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44805
44806 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44807             Roland McGrath  <roland@hack.frob.com>
44808
44809         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44810         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44811
44812 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44813
44814         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44815         __executable_start symbol instead of _start.
44816
44817 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44818
44819         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44820         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44821         Move macros to...
44822         * sysdeps/gnu/ldsodefs.h: ... this new file.
44823
44824         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44825         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44826         instead of ELFOSABI_LINUX.
44827
44828         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44829         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44830         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44831         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44832         Likewise.
44833         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44834         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44835         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44836         Likewise.
44837         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44838         (ibm_extended_long_double): Add ieee_nan member.
44839         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44840         (do_test): New function.
44841
44842         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44843         TEST_TRUNC.
44844         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44845         functions, renamed from truncdfsf_test, trunctfsf_test,
44846         trunctfdf_test.
44847         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44848         functions.
44849         (do_test): Run all these.
44850
44851 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44852
44853         * argp/argp-help.c: Fix typos.
44854         * argp/argp-parse.c: Likewise.
44855         * debug/backtracesyms.c: Likewise.
44856         * elf/elf.h: Likewise.
44857         * malloc/malloc.c: Likewise.
44858         * nis/nis_print.c: Likewise.
44859         * resolv/res_comp.c: Likewise.
44860         * stdlib/stdlib.h: Likewise.
44861         * sunrpc/clnt_tcp.c: Likewise.
44862         * sunrpc/clnt_udp.c: Likewise.
44863         * sunrpc/clnt_unix.c: Likewise.
44864         * sysdeps/unix/bsd/ptsname.c: Likewise.
44865         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44866         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44868         Likewise.
44869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44870         Likewise.
44871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44872         Likewise.
44873         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44874
44875 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44876
44877         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44878         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44879
44880 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44881
44882         [BZ #15897]
44883         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44884         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44885         ($(objpfx)bug-dl-leaf): New rule.
44886         ($(objpfx)bug-dl-leaf.so): Likewise.
44887         ($(objpfx)bug-dl-leaf.out): Likewise.
44888         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44889         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44890         * dlfcn/bug-dl-leaf.c: New test.
44891         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44892         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44893         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44894         (dlclose): Likewise.
44895         (dlmopen): Likewise.
44896
44897 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44898
44899         * include/netdb.h [!_ISOMAC]:
44900         Don't include <tls.h>.
44901         (h_errno, __libc_h_errno): Move declaration and macros out of
44902         [_LIBC_REENTRANT].
44903
44904         * include/resolv.h [_RESOLV_H_]:
44905         Don't include <tls.h>.
44906         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
44907         * resolv/res_libc.c: Don't include <tls.h>.
44908         (_res): Use __attribute__ ((nocommon)) in place of
44909         __attribute__ ((section (".bss"))).
44910
44911         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
44912         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
44913
44914         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
44915
44916         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
44917         only under [SIOCGIFCONF && SIOCGIFNETMASK].
44918
44919         * resolv/res_mkquery.c: Include <sys/time.h>.
44920
44921         * inet/ifreq.c: Moved to ...
44922         * sysdeps/unix/ifreq.c: ... here.
44923         * inet/ifreq.c: New file, true stub version.
44924
44925         * socket/sa_len.c: New file.
44926         * socket/Makefile (aux): Add it.
44927         * sysdeps/unix/sysv/linux/Makefile
44928         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
44929         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
44930         and #include <socket/sa_len.c>.
44931         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
44932         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
44933
44934         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
44935         * bits/socket.h: ... here.
44936
44937         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
44938         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
44939         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
44940
44941 2013-08-27  Andreas Schwab  <schwab@suse.de>
44942
44943         [BZ #15736]
44944         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
44945         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
44946         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
44947         * string/test-strcasecmp.c (test_main): Run tests in several
44948         locales.
44949         * string/test-strncasecmp.c (test_main): Likewise.
44950
44951         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
44952         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
44953         to __strcasecmp_nonascii and __strncasecmp_nonascii.
44954         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
44955         (__strncasecmp_ssse3) [PIC]: Likewise.
44956
44957 2013-08-26  Roland McGrath  <roland@hack.frob.com>
44958
44959         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
44960
44961         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
44962         instead of explicitly declaring xdecrypt.
44963         * nis/nss_nis/nis-publickey.c: Likewise.
44964
44965 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44966
44967         [BZ #15890]
44968         * nscd/aicache.c: Include res_hconf.h.
44969         (addhstaiX): Initialize res_hconf.
44970
44971 2013-08-26  Andreas Schwab  <schwab@suse.de>
44972
44973         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
44974         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
44975
44976 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44977
44978         * nscd/aicache.c (addhstaiX): Fix indentation.
44979
44980 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
44981
44982         * configure.ac: Quote $build_pt_chown test.
44983         * configure: Regenerated.
44984
44985 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
44986
44987         [BZ #15532]
44988         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
44989         * math/s_cexpf.c (__cexpf): Likewise.
44990         * math/s_cexpl.c (__cexpl): Likewise.
44991         * math/libm-test.inc (cexp_test_data): Correct expected return
44992         value for NaN + i0.  Add another test.
44993
44994 2013-08-22  David S. Miller  <davem@davemloft.net>
44995
44996         * po/ca.po: Update Catalan translation from translation project.
44997         * po/uk.po: Add Ukrainian translations from translation project.
44998
44999 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
45000
45001         [BZ #15797]
45002         * math/s_fdim.c (__fdim): Check for infinite arguments if result
45003         is infinite, not alongside NaN test.
45004         * math/s_fdimf.c (__fdimf): Likewise.
45005         * math/s_fdiml.c (__fdiml): Likewise.
45006         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
45007         errno is unchanged.
45008
45009 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
45010
45011         * argp/argp-help.c: Fix typos.
45012         * crypt/speeds.c: Likewise.
45013         * csu/check_fds.c: Likewise.
45014         * elf/dl-load.c: Likewise.
45015         * elf/dl-open.c: Likewise.
45016         * elf/reldep3.c: Likewise.
45017         * elf/reldep.c: Likewise.
45018         * elf/sprof.c: Likewise.
45019         * iconv/iconv_charmap.c: Likewise.
45020         * iconv/skeleton.c: Likewise.
45021         * iconv/strtab.c: Likewise.
45022         * io/lockf64.c: Likewise.
45023         * libio/libioP.h: Likewise.
45024         * resolv/gai_notify.c: Likewise.
45025         * resolv/ns_name.c: Likewise.
45026         * resolv/ns_samedomain.c: Likewise.
45027         * resolv/res_send.c: Likewise.
45028         * stdlib/random.c: Likewise.
45029         * sunrpc/rpc/xdr.h: Likewise.
45030         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
45031         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
45032         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
45033         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
45034         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
45035         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
45036         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
45037         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
45038         * sysdeps/mach/hurd/check_fds.c: Likewise.
45039         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
45040         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
45041         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45042         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
45043         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
45044         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
45045         * sysdeps/pthread/aio_notify.c: Likewise.
45046         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
45047         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
45048         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
45049         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
45050         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
45051
45052 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45053
45054         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
45055         version if bit_Slow_SSE4_2 is set.
45056         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
45057         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
45058
45059 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45060
45061         [BZ #15867]
45062         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
45063         trampoline stack frame information.
45064         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
45065         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
45066         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
45067         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
45068         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
45069         * sysdeps/unix/sysv/linux/powerpc/init-first.c
45070         (_libc_vdso_platform_setup): Initialize the signal trampolines.
45071         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
45072         sa_flags value.
45073         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
45074         interrupting a syscall and set with option SA_SIGINFO.
45075
45076 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45077
45078         [BZ #15531]
45079         * math/s_cproj.c (__cproj): Only return an infinity if one part of
45080         argument is infinite.
45081         * math/s_cprojf.c (__cprojf): Likewise.
45082         * math/s_cprojl.c (__cprojl): Likewise.
45083         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
45084         * math/libm-test.inc (cproj_test_data): Add more tests.
45085
45086         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
45087
45088         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
45089         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
45090         size.  Use __ffs to determine corresponding shift.
45091
45092 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45093             Roland McGrath  <roland@hack.frob.com>
45094
45095         * Makefile (INSTALL): Remove trailing blank lines from output of
45096         makeinfo.
45097
45098 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45099
45100         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
45101         Align 32 bit compat elf_greg to 8 bytes.
45102
45103 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
45104
45105         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
45106
45107 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45108
45109         * string/strcoll_l.c (coll_seq): New structure.
45110         (get_next_seq_cached): New function.
45111         (get_next_seq): New function.
45112         (do_compare): New function.
45113         (STRCOLL): Use GNU style definition.  Simplify implementation
45114         by using get_next_seq, get_next_seq_cached and do_compare.
45115
45116 2013-08-16  Florian Weimer  <fweimer@redhat.com>
45117
45118         [BZ #14699]
45119         CVE-2013-4237
45120         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
45121         member.
45122         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
45123         member.
45124         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
45125         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
45126         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
45127         conditional.
45128         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
45129         GETDENTS_64BIT_ALIGNED.
45130         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
45131         * manual/filesys.texi (Reading/Closing Directory): Document
45132         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
45133         strongly.
45134         * manual/conf.texi (Limits for Files): Add portability note to
45135         NAME_MAX, PATH_MAX.
45136         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
45137
45138 2013-08-13  Andreas Schwab  <schwab@suse.de>
45139
45140         [BZ #15749]
45141         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
45142         of fabs.
45143         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
45144         LDBL_MAX_EXP >= 16384]: Add tests for it.
45145
45146 2013-08-12  David S. Miller  <davem@davemloft.net>
45147
45148         * version.h (RELEASE): Set to "development".
45149         (VERSION): Set to "2.18.90".
45150         * NEWS: Add 2.19 section.
45151
45152 2013-08-03  David S. Miller  <davem@davemloft.net>
45153
45154         * po/ko.po: Update Korean translation from translation project.
45155
45156 2013-08-01  David S. Miller  <davem@davemloft.net>
45157
45158         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
45159         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
45160         Bilka.
45161
45162 2013-07-30  David S. Miller  <davem@davemloft.net>
45163
45164         * po/fr.po: Update French translation from translation project.
45165
45166 2013-07-28  David S. Miller  <davem@davemloft.net>
45167
45168         * po/cs.po: Update Czech translation from translation project.
45169
45170         * po/sv.po: Update Swedish translation from translation project.
45171
45172 2013-07-27  David S. Miller  <davem@davemloft.net>
45173
45174         * po/eo.po: Update Esperanto translation from translation project.
45175
45176         * po/vi.po: Update Vietnamese translation from translation project.
45177
45178         * po/de.po: Update German translation from translation project.
45179
45180 2013-07-26  David S. Miller  <davem@davemloft.net>
45181
45182         * po/bg.po: Update Bulgarian translation from translation project.
45183
45184         * po/nl.po: Update Dutch translation from translation project.
45185         * po/pl.po: Update Polish translation from translation project.
45186         * po/ru.po: Update Russian translation from translation project.
45187
45188 2013-07-24  David S. Miller  <davem@davemloft.net>
45189
45190         * po/libc.pot: Update.
45191
45192 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45193
45194         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
45195         variable page size.
45196         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
45197         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
45198         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
45199
45200 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45201
45202         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
45203
45204 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
45205             Andreas Schwab  <schwab@suse.de>
45206             Roland McGrath  <roland@hack.frob.com>
45207             Joseph Myers  <joseph@codesourcery.com>
45208             Carlos O'Donell  <carlos@redhat.com>
45209
45210         [BZ #15755]
45211         * config.h.in: Define HAVE_PT_CHOWN.
45212         * config.make.in (build-pt-chown): New variable.
45213         * configure.in (--enable-pt_chown): New configure option.
45214         * configure: Regenerate.
45215         * login/Makefile: Include Makeconfig.  Build pt_chown only if
45216         build-pt-chown is enabled.
45217         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
45218         pt_chown to fix pty ownership.
45219         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
45220         CLOSE_ALL_FDS.
45221         * manual/install.texi (Configuring and compiling): Mention
45222         --enable-pt_chown. Add @findex for grantpt.
45223         * INSTALL: Regenerate.
45224
45225 2013-07-20  David S. Miller  <davem@davemloft.net>
45226
45227         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
45228         difference between 32-bit and 64-bit.
45229
45230 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
45231
45232         [BZ #15711]
45233         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
45234         Avoid system header dependency with -ffreestanding.
45235         ($(objpfx)bits/syscall%d): Likewise.
45236
45237 2013-07-13  David S. Miller  <davem@davemloft.net>
45238
45239         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
45240         underflows from atanl/atan2l due to bug 15319.
45241         (casinh_test_data): Likewise.
45242
45243 2013-07-07  David S. Miller  <davem@davemloft.net>
45244
45245         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
45246
45247 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
45248
45249         * sysdeps/i386/fpu/libm-test-ulps: Update.
45250         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45251
45252 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
45253
45254         * configure.in (--enable-lock-elision): Fix message text.
45255         * INSTALL: Regenerate.
45256         * configure: Regenerate.
45257
45258 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45259
45260         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45261
45262 2013-07-03  Andreas Jaeger  <aj@suse.de>
45263
45264         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
45265         define.
45266         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
45267         (ptrace_peeksiginfo_args): Add.
45268         (__ptrace_peeksiginfo_flags): Add.
45269         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45270         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45271         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45272
45273 2013-07-03  Allan McRae  <allan@archlinux.org>
45274
45275         * sysdeps/i386/fpu/libm-test-ulps: Update.
45276
45277 2013-07-02  David S. Miller  <davem@davemloft.net>
45278
45279         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45280
45281 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
45282
45283         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
45284
45285 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45286
45287         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45288         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45289
45290 2013-07-02  Andi Kleen <ak@linux.intel.com>
45291
45292         * config.h.in (ENABLE_LOCK_ELISION): Add.
45293         * configure.in (--enable-lock-elision): Add option.
45294         * manual/install.texi: Document --enable lock elision.
45295         * configure: Regenerate
45296         * INSTALL: Regenerate.
45297
45298 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
45299
45300         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
45301         SSE4.2 strcasecmp for libc.a.
45302         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
45303
45304 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45305
45306         [BZ #13304]
45307         * soft-fp/op-common.h (_FP_FMA): New macro.
45308         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
45309         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
45310         (_FP_MUL_MEAT_1_imm): ... here.
45311         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
45312         (_FP_MUL_MEAT_1_wide): ... here.
45313         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
45314         (_FP_MUL_MEAT_1_hard): ... here.
45315         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
45316         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
45317         (_FP_MUL_MEAT_2_wide): ... here.
45318         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
45319         (_FP_MUL_MEAT_2_wide_3mul): ... here.
45320         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
45321         (_FP_MUL_MEAT_2_gmp): ... here.
45322         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
45323         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
45324         (_FP_MUL_MEAT_4_wide): ... here.
45325         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
45326         (_FP_MUL_MEAT_4_gmp): ... here.
45327         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
45328         (_FP_WFRACBITS_DW_S): Likewise.
45329         (_FP_WFRACXBITS_DW_S): Likewise.
45330         (_FP_HIGHBIT_DW_S): Likewise.
45331         (FP_FMA_S): Likewise.
45332         (_FP_FRAC_HIGH_DW_S): Likewise.
45333         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
45334         (_FP_WFRACBITS_DW_D): Likewise.
45335         (_FP_WFRACXBITS_DW_D): Likewise.
45336         (_FP_HIGHBIT_DW_D): Likewise.
45337         (FP_FMA_D): Likewise.
45338         (_FP_FRAC_HIGH_DW_D): Likewise.
45339         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
45340         (_FP_WFRACBITS_DW_E): Likewise.
45341         (_FP_WFRACXBITS_DW_E): Likewise.
45342         (_FP_HIGHBIT_DW_E): Likewise.
45343         (FP_FMA_E): Likewise.
45344         (_FP_FRAC_HIGH_DW_E): Likewise.
45345         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
45346         (_FP_WFRACBITS_DW_Q): Likewise.
45347         (_FP_WFRACXBITS_DW_Q): Likewise.
45348         (_FP_HIGHBIT_DW_Q): Likewise.
45349         (FP_FMA_Q): Likewise.
45350         (_FP_FRAC_HIGH_DW_Q): Likewise.
45351         * soft-fp/fmasf4.c: New file.
45352         * soft-fp/fmadf4.c: Likewise.
45353         * soft-fp/fmatf4.c: Likewise.
45354
45355 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45356
45357         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45358         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
45359         Silvermont.
45360         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
45361         macro.
45362         (index_Slow_SSE4_2): Likewise.
45363         (index_Prefer_PMINUB_for_stringop): Likewise.
45364         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
45365         bit_Slow_SSE4_2 is set.
45366         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
45367         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
45368
45369 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45370
45371         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
45372         rtld_global._dl_hwcap2.
45373         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
45374         POWER8.
45375         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
45376         POWER8 feature descriptions defined in _dl_hwcap2.
45377         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
45378         string handling for POWER8 feature bits.
45379         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
45380         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
45381         _dl_powerpc_cap_flags.
45382         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
45383         * sysdeps/powerpc/rtld-global-offsets.sym
45384         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
45385         _dl_hwcap2 in the rtld_global_ro structure.
45386
45387 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45388
45389         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
45390         hardware capabilities in support of AT_HWCAP2.
45391         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
45392         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
45393         GLRO(dl_hwcap2).
45394         (_dl_show_auxv): Add support for calling _dl_procinfo to display
45395         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
45396         explicitly the unknown a_type display mechanism is used.
45397         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
45398         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
45399         struct member.
45400         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
45401         to macro prototype for AT_HWCAP2 support.
45402         * sysdeps/i386/dl-procinfo.h: Likewise.
45403         * sysdeps/s390/dl-procinfo.h: Likewise.
45404         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
45405         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
45406         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
45407         return -1 for unknown a_type display fallback.
45408         * sysdeps/sparc/dl-procinfo.h: Likewise.
45409         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
45410         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
45411
45412 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
45413
45414         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
45415         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
45416
45417 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
45418
45419         [BZ #12492]
45420         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
45421         mprotect making __stack_prot writable.
45422
45423 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
45424             Joseph Myers  <joseph@codesourcery.com>
45425
45426         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
45427         as being properly aligned.
45428
45429 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
45430
45431         * dlfcn/modstatic5.c: New file.
45432         * dlfcn/tststatic5.c: New file.
45433         * dlfcn/Makefile (tests): Add tststatic5.
45434         (tests-static): Likewise.
45435         (modules-names): Add modstatic5.
45436         (tststatic5-ENV): New variable.
45437         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
45438
45439         [BZ #15022]
45440         * elf/dl-support.c (_dl_main_map): New variable.
45441         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45442         (_dl_nns, _dl_load_adds): Set to 1.
45443         (_dl_initial_searchlist): Refer to _dl_main_map.
45444         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45445         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45446         call to _dl_get_origin.
45447         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45448         around call_map.
45449         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45450         * dlfcn/modstatic3.c: New file.
45451         * dlfcn/tststatic3.c: New file.
45452         * dlfcn/tststatic4.c: New file.
45453         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45454         (tests-static): Likewise.
45455         (modules-names): Add modstatic3.
45456         (tststatic3-ENV, tststatic4-ENV): New variables.
45457         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45458         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45459
45460 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45461
45462         * configure.in (CC): Require GCC version 4.4 or later.
45463         * configure: Regenerated.
45464         * manual/install.texi (Tools for Compilation): Update GCC version
45465         requirement.
45466         * INSTALL: Regenerated.
45467
45468 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45469
45470         [BZ #15674]
45471         * string/test-memcmp.c (check2): New.
45472         (main): Call check2.
45473
45474         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45475
45476 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45477
45478         [BZ #15022]
45479         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45480         over to...
45481         (dl_open_worker) [!SHARED]: ... here.
45482
45483 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45484
45485         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45486
45487 2013-06-25  Richard Henderson  <rth@redhat.com>
45488
45489         * locale/programs/locarchive.c: Include <libc-internal.h>
45490
45491 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45492
45493         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45494         trailing whitespace removed.
45495
45496 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45497
45498         [BZ #10283]
45499         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45500         * locale/programs/locarchive.c: Include libc-mmap.h.
45501         (prepare_address_space): Take two new outputs (the mmap base and len).
45502         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45503         values.
45504         (create_archive): Declare new mmap base and len values for
45505         prepare_address_space, and store the result in ah.
45506         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45507         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45508         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45509         Declare new mmap base and len values for
45510         prepare_address_space, and store the result in new_ah.
45511         (open_archive): Declare new mmap base and len values for
45512         prepare_address_space, and store the result in ah.
45513         (close_archive): If ah->mmap_base is not NULL, use that and
45514         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45515         * sysdeps/generic/libc-mmap.h: New file.
45516
45517 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45518
45519         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45520         (ALIGN_UP): Likewise.
45521         (PTR_ALIGN_DOWN): Likewise.
45522         (PTR_ALIGN_UP): Likewise.
45523
45524 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45525
45526         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45527         entry mapped to PPC_PLATFORM_POWER8.
45528         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45529         POWER8.
45530         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45531         (_dl_string_platform): Add case for exporting platform position for
45532         POWER8.
45533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45534         search path to sysdeps/powerpc/powerpc32/power8 directory.
45535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45536         search path to sysdeps/powerpc/powerpc64/power8 directory.
45537         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45538         power7 directories.
45539         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45540         power7 directories.
45541
45542 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45543
45544         * INSTALL: Regenerate.
45545
45546         * nscd/connections.c (nscd_init): Fix comment.
45547
45548 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45549
45550         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45551
45552         [BZ #15667]
45553         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45554         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45555
45556 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45557
45558         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45559         DL_DST_REQ_STATIC.
45560         (DL_DST_REQ_STATIC): Remove macro.
45561
45562 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45563
45564         [BZ #7006]
45565         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45566         with a shift of 0 bits.
45567
45568 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45569
45570         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45571         $(tststatic-ENV).
45572
45573 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45574
45575         [BZ #15655]
45576         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45577
45578 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45579
45580         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45581         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45582         accepts -fno-tree-loop-distribute-patterns.
45583         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45584         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45585         recursive call.
45586         * string/memset.c (memset): Likewise.
45587         * string/test-memmove.c (simple_memmove): Disable loop transformation
45588         to library calls.
45589         * string/test-memset.c (simple_memset): Likewise.
45590         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45591         * benchtests/bench-memset.c (simple_memset): Likewise.
45592         * configure: Regenerated.
45593
45594 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45595
45596         * math/test-misc.c (main): Ignore fesetround failure when failures
45597         of subsequent rounding tests would be ignored.
45598
45599         [BZ #15654]
45600         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45601         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45602         * math/fegetenv.c (__fegetenv): Return 0.
45603         * math/fegetexcept.c (fegetexcept): Return 0.
45604         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45605         FE_TONEAREST.
45606         * math/feholdexcpt.c (feholdexcept): Return 0.
45607         * math/fesetenv.c (__fesetenv): Return 0.
45608         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45609         argument FE_TONEAREST.
45610         * math/feupdateenv.c (__feupdateenv): Return 0.
45611         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45612
45613 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45614
45615         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45616         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45617         ($(objpfx)rtld-%.os rules): Use them.
45618
45619 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45620
45621         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45622         fields.
45623
45624 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45625
45626         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45627         length of target pattern, then descending length of dependency pattern.
45628         * configure.in (AWK): Require gawk 3.1.2 or newer.
45629         * manual/install.texi (Tools for Compilation): Say that we do.
45630         * configure: Regenerated.
45631
45632         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45633         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45634         * scripts/sysd-rules.awk: ... this new script.
45635         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45636         than a glob-style pattern.
45637
45638 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45639
45640         * math/test-misc.c (main): Do not treat incorrectly rounded
45641         conversions as failure unless ROUNDING_TESTS passes.
45642
45643 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45644
45645         [BZ #15631]
45646         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45647         restore exception state around main square root computation, then
45648         check for inexactness explicitly.
45649
45650         * math/libm-test.inc (fma_test_data): Add another test.
45651
45652 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45653
45654         * manual/threads.texi (Non-POSIX Extensions): New document
45655         node.  Document pthread_getattr_default_np and
45656         pthread_setattr_default_np.
45657
45658         * Versions.def (libpthread): Add GLIBC_2.18.
45659         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45661         Likewise.
45662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45663         Likewise.
45664         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45665         Likewise.
45666         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45667         Likewise.
45668         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45669         Likewise.
45670         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45671         Likewise.
45672         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45673         Likewise.
45674         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45675         Likewise.
45676         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45677         Likewise.
45678
45679 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45680
45681         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45682         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45683
45684 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45685             H.J. Lu  <hjl.tools@gmail.com>
45686
45687         [BZ #15627]
45688         * sysdeps/x86_64/rtld-memset.c: Remove file.
45689         * sysdeps/x86_64/rtld-memset.S: New file.
45690
45691 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45692
45693         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45694         (test_in_one_mode): Take arguments for whether the rounding mode
45695         is supported for each floating-point type.
45696         (do_test): Pass new arguments to test_in_one_mode using
45697         ROUNDING_TESTS.
45698
45699 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45700
45701         * posix/tst-waitid.c (do_test): Distinguish different instances of
45702         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45703         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45704         before entering the kernel for waitpid.
45705
45706 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45707
45708         * NEWS: Fix note on clock function precision.  Text by Roland
45709         McGrath.
45710
45711 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45712
45713         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45714         it into place only when and if the sanity check passes.
45715
45716 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45717
45718         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45719         output for whether conversion result is exact.  Take argument
45720         indicating whether type is IBM long double.
45721         (round_for_all): Change need_exact field to ibm_ld.
45722         * stdlib/tst-strtod-round.c (struct exactness): New type.
45723         (struct test): Change bool ld_ok field to struct exactness exact.
45724         (TEST): Update all definitions for change to field.
45725         (tests): Regenerate array contents.
45726         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45727         field value.  Check for IBM long double here.
45728         (do_test): Update calls to test_in_one_mode.
45729
45730 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45731
45732         [BZ #12515]
45733         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45734         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45735
45736 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45737
45738         [BZ #15605]
45739         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45740         generated by the compiler on loop optimizations.
45741         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45742         general definitions.
45743
45744 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45745
45746         * math/bug-nextafter.c: Include <math-tests.h>.
45747         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45748         the relevant type.
45749         * math/bug-nexttoward.c: Include <math-tests.h>.
45750         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45751         the relevant type.
45752         * math/test-misc.c: Include <math-tests.h>.
45753         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45754         the relevant type.
45755
45756 2013-06-12  Andreas Jaeger  <aj@suse.de>
45757
45758         * po/ia.po: Update Interlingua translation from translation
45759         project.
45760
45761 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45762
45763         * include/fenv.h: Include stdbool.h.
45764         (struct rm_ctx): New structure.
45765         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45766         Define macro.
45767         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45768         (SET_RESTORE_ROUNDF): Likewise.
45769         (SET_RESTORE_ROUNDL): Likewise.
45770         (SET_RESTORE_ROUND_NOEX): Likewise.
45771         (SET_RESTORE_ROUND_NOEXF): Likewise.
45772         (SET_RESTORE_ROUND_NOEXL): Likewise.
45773         (SET_RESTORE_ROUND_53BIT): Likewise.
45774         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45775         (libc_feresetround_noexf_ctx): Likewise.
45776         (libc_feresetround_noexl_ctx): Likewise.
45777         (libc_feholdsetround_53bit_ctx): Likewise.
45778         (libc_feresetround_53bit_ctx): Likewise.
45779         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45780         (libc_feholdexcept_setround_sse_ctx): New function.
45781         (libc_fesetenv_sse_ctx): Likewise.
45782         (libc_feupdateenv_sse_ctx): Likewise.
45783         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45784         (libc_feholdexcept_setround_387_ctx): Likewise.
45785         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45786         (libc_feholdsetround_387_prec_ctx): Likewise.
45787         (libc_feholdsetround_387_ctx): Likewise.
45788         (libc_feholdsetround_387_53bit_ctx): Likewise.
45789         (libc_feholdsetround_sse_ctx): Likewise.
45790         (libc_feresetround_sse_ctx): Likewise.
45791         (libc_feresetround_387_ctx): Likewise.
45792         (libc_feupdateenv_387_ctx): Likewise.
45793         (libc_feholdexcept_setroundf_ctx): Define macro.
45794         (libc_fesetenvf_ctx): Likewise.
45795         (libc_feupdateenvf_ctx): Likewise.
45796         (libc_feholdsetroundf_ctx): Likewise.
45797         (libc_feresetroundf_ctx): Likewise.
45798         (libc_feholdexcept_setround_ctx): Likewise.
45799         (libc_fesetenv_ctx): Likewise.
45800         (libc_feupdateenv_ctx): Likewise.
45801         (libc_feholdsetround_ctx): Likewise.
45802         (libc_feresetround_ctx): Likewise.
45803         (libc_feholdexcept_setroundl_ctx): Likewise.
45804         (libc_feupdateenvl_ctx): Likewise.
45805         (libc_feholdsetroundl_ctx): Likewise.
45806         (libc_feresetroundl_ctx): Likewise.
45807         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45808         (libc_feresetround_53bit_ctx): Likewise.
45809
45810 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45811
45812         * locale/iso-639.def: Convert to UTF-8.
45813
45814 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45815
45816         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45817         (EXCEPTION_TESTS_double): Likewise.
45818         (EXCEPTION_TESTS_long_double): Likewise.
45819         (EXCEPTION_TESTS): Likewise.
45820         * math/libm-test.inc (test_exceptions): Only test exceptions if
45821         EXCEPTION_TESTS (FLOAT).
45822
45823 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45824
45825         * benchtests/Makefile (string-bench): Add strcpy_chk and
45826         stpcpy_chk.
45827         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45828         * benchtests/bench-stpcpy_chk.c: New file.
45829         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45830         * benchtests/bench-strcpy_chk.c: New file.
45831         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45832         code.
45833         (do_test): Likewise.
45834
45835 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45836
45837         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45838         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45839         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45840         with tabs where appropriate.
45841         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45842         dl-procinfo.h.
45843         [PPC_PLATFORM_PPC440]: Likewise.
45844         [PPC_PLATFORM_PPC464]: Likewise.
45845         [PPC_PLATFORM_PPC476]: Likewise.
45846         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45847         ppc464, and ppc476 platform strings merging from ports/
45848         dl-procinfo.h.
45849
45850 2013-06-11  Andreas Schwab  <schwab@suse.de>
45851
45852         [BZ #14991]
45853         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45854         (from_ucs4_idx): Regenerate.
45855         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45856         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45857         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45858         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45859         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45860         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45861         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45862         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45863         from FROM_LOOP and TO_LOOP specific macros.
45864         (BODY): Handle combining characters.
45865         * iconvdata/BIG5HKSCS.irreversible: Update.
45866         * iconvdata/BIG5HKSCS.precomposed: New file.
45867         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45868         characters.
45869         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45870
45871 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45872
45873         * include/sys/time.h: Fix indentation and add copyright header.
45874
45875         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45876         (do_test): Likewise.
45877         * string/test-memchr.c (do_one_test): Likewise.
45878         (do_test): Likewise.
45879         * string/test-memcmp.c (do_one_test): Likewise.
45880         (do_test): Likewise.
45881         * string/test-memcpy.c (do_one_test): Likewise.
45882         (do_test): Likewise.
45883         * string/test-memmem.c (do_one_test): Likewise.
45884         (do_test): Likewise.
45885         (do_random_tests): Likewise.
45886         * string/test-memmove.c (do_one_test): Likewise.
45887         (do_test): Likewise.
45888         * string/test-memset.c (do_one_test): Likewise.
45889         (do_test): Likewise.
45890         * string/test-rawmemchr.c (do_one_test): Likewise.
45891         (do_test): Likewise.
45892         * string/test-strcasecmp.c (do_one_test): Likewise.
45893         (do_test): Likewise.
45894         * string/test-strcasestr.c (do_one_test): Likewise.
45895         (do_test): Likewise.
45896         * string/test-strcat.c (do_one_test): Likewise.
45897         (do_test): Likewise.
45898         * string/test-strchr.c (do_one_test): Likewise.
45899         (do_test): Likewise.
45900         * string/test-strcmp.c (do_one_test): Likewise.
45901         (do_test): Likewise.
45902         * string/test-strcpy.c (do_one_test): Likewise.
45903         (do_test): Likewise.
45904         * string/test-string.h: Likewise.
45905         (test_init): Likewise.
45906         * string/test-strlen.c (do_one_test): Likewise.
45907         (do_test): Likewise.
45908         * string/test-strncasecmp.c (do_one_test): Likewise.
45909         (do_test): Likewise.
45910         * string/test-strncat.c (do_one_test): Likewise.
45911         (do_test): Likewise.
45912         * string/test-strncmp.c (do_one_test): Likewise.
45913         (do_test_limit): Likewise.
45914         (do_test): Likewise.
45915         * string/test-strncpy.c (do_one_test): Likewise.
45916         (do_test): Likewise.
45917         * string/test-strnlen.c (do_one_test): Likewise.
45918         (do_test): Likewise.
45919         * string/test-strpbrk.c (do_one_test): Likewise.
45920         (do_test): Likewise.
45921         * string/test-strrchr.c (do_one_test): Likewise.
45922         (do_test): Likewise.
45923         * string/test-strspn.c (do_one_test): Likewise.
45924         (do_test): Likewise.
45925         * string/test-strstr.c (do_one_test): Likewise.
45926         (do_test): Likewise.
45927
45928         * benchtests/Makefile (string-bench): Add string benchmarks.
45929         * benchtests/bench-bcopy-ifunc.c: New file.
45930         * benchtests/bench-bcopy.c: New file.
45931         * benchtests/bench-bzero-ifunc.c: New file.
45932         * benchtests/bench-bzero.c: New file.
45933         * benchtests/bench-memccpy-ifunc.c: New file.
45934         * benchtests/bench-memccpy.c: New file.
45935         * benchtests/bench-memchr-ifunc.c: New file.
45936         * benchtests/bench-memchr.c: New file.
45937         * benchtests/bench-memcmp-ifunc.c: New file.
45938         * benchtests/bench-memcmp.c: New file.
45939         * benchtests/bench-memmem-ifunc.c: New file.
45940         * benchtests/bench-memmem.c: New file.
45941         * benchtests/bench-memmove-ifunc.c: New file.
45942         * benchtests/bench-memmove.c: New file.
45943         * benchtests/bench-mempcpy-ifunc.c: New file.
45944         * benchtests/bench-mempcpy.c: New file.
45945         * benchtests/bench-memset-ifunc.c: New file.
45946         * benchtests/bench-memset.c: New file.
45947         * benchtests/bench-rawmemchr-ifunc.c: New file.
45948         * benchtests/bench-rawmemchr.c: New file.
45949         * benchtests/bench-stpcpy-ifunc.c: New file.
45950         * benchtests/bench-stpcpy.c: New file.
45951         * benchtests/bench-stpncpy-ifunc.c: New file.
45952         * benchtests/bench-stpncpy.c: New file.
45953         * benchtests/bench-strcasecmp-ifunc.c: New file.
45954         * benchtests/bench-strcasecmp.c: New file.
45955         * benchtests/bench-strcasestr-ifunc.c: New file.
45956         * benchtests/bench-strcasestr.c: New file.
45957         * benchtests/bench-strcat-ifunc.c: New file.
45958         * benchtests/bench-strcat.c: New file.
45959         * benchtests/bench-strchr-ifunc.c: New file.
45960         * benchtests/bench-strchr.c: New file.
45961         * benchtests/bench-strchrnul-ifunc.c: New file.
45962         * benchtests/bench-strchrnul.c: New file.
45963         * benchtests/bench-strcmp-ifunc.c: New file.
45964         * benchtests/bench-strcmp.c: New file.
45965         * benchtests/bench-strcpy-ifunc.c: New file.
45966         * benchtests/bench-strcpy.c: New file.
45967         * benchtests/bench-strcspn-ifunc.c: New file.
45968         * benchtests/bench-strcspn.c: New file.
45969         * benchtests/bench-strlen-ifunc.c: New file.
45970         * benchtests/bench-strlen.c: New file.
45971         * benchtests/bench-strncasecmp-ifunc.c: New file.
45972         * benchtests/bench-strncasecmp.c: New file.
45973         * benchtests/bench-strncat-ifunc.c: New file.
45974         * benchtests/bench-strncat.c: New file.
45975         * benchtests/bench-strncmp-ifunc.c: New file.
45976         * benchtests/bench-strncmp.c: New file.
45977         * benchtests/bench-strncpy-ifunc.c: New file.
45978         * benchtests/bench-strncpy.c: New file.
45979         * benchtests/bench-strnlen-ifunc.c: New file.
45980         * benchtests/bench-strnlen.c: New file.
45981         * benchtests/bench-strpbrk-ifunc.c: New file.
45982         * benchtests/bench-strpbrk.c: New file.
45983         * benchtests/bench-strrchr-ifunc.c: New file.
45984         * benchtests/bench-strrchr.c: New file.
45985         * benchtests/bench-strspn-ifunc.c: New file.
45986         * benchtests/bench-strspn.c: New file.
45987         * benchtests/bench-strstr-ifunc.c: New file.
45988         * benchtests/bench-strstr.c: New file.
45989
45990         * benchtests/Makefile: Disable parallel execution of targets.
45991         (string-bench): Add memcpy.
45992         (benchset): New variable to store a list of benchmark sets.
45993         (bench-func): Renamed from bench.
45994         (bench-set): New target.
45995         (bench): Depend on bench-func and bench-set.
45996         * benchtests/README: Add section on benchmark sets.
45997         * benchtests/bench-memcpy-ifunc.c: New file.
45998         * benchtests/bench-memcpy.c: New file.
45999         * benchtests/bench-string.h: New file.
46000
46001 2013-06-11  Andreas Schwab  <schwab@suse.de>
46002
46003         [BZ #15577]
46004         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
46005         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
46006         values in the triple.
46007         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
46008         terminator in the group key.
46009
46010 2013-06-11  Andreas Jaeger  <aj@suse.de>
46011
46012         * po/zh_TW.po: Update Chinese (traditional) translation from
46013         translation project.
46014
46015 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46016
46017         * include/time.h (__clock_gettime): Add libc_hidden_proto.
46018         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
46019         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
46020         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
46021         (clock_getcpuclockid): Likewise.
46022         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
46023         Add weak_alias and libc_hidden_def.
46024         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
46025         * rt/clock_gettime.c (clock_gettime): Rename to
46026         __clock_gettime.  Add weak_alias and libc_hidden_def.
46027         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
46028         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
46029         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
46030         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
46031         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
46032         Likewise.
46033         * rt/clock_settime.c (clock_settime): Rename to
46034         __clock_settime.  Add weak_alias and libc_hidden_def.
46035         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
46036
46037 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
46038
46039         * mach/err_boot.sub: Remove trailing whitespace.
46040         * mach/err_ipc.sub: Likewise.
46041         * mach/err_mach.sub: Likewise.
46042
46043         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
46044         (ROUNDING_TESTS_double): Likewise.
46045         (ROUNDING_TESTS_long_double): Likewise.
46046         (ROUNDING_TESTS): Likewise.
46047         * math/libm-test.inc: Include <math-tests.h>.
46048         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
46049         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
46050         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
46051         (IF_ROUND_INIT_FE_UPWARD): Likewise.
46052
46053 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
46054
46055         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
46056         of assigning.
46057
46058 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
46059
46060         * sysdeps/gnu/errlist.awk: Do not generate space at end of
46061         otherwise empty TRANS lines.
46062         * sysdeps/gnu/errlist.c: Regenerated.
46063
46064         * catgets/gencat.c (error_print): Use (void) in function
46065         definition.
46066         * crypt/crypt_util.c (__init_des): Likewise.
46067         * crypt/speeds.c (Stop): Likewise.
46068         (main): Likewise.
46069         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
46070         * inet/ruserpass.c (token): Likewise.
46071         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
46072         * intl/localealias.c (extend_alias_table): Likewise.
46073         * intl/plural-exp.c (init_germanic_plural): Likewise.
46074         * libio/fcloseall.c (__fcloseall): Likewise.
46075         * libio/genops.c (_IO_flush_all): Likewise.
46076         (_IO_flush_all_linebuffered): Likewise.
46077         (_IO_cleanup): Likewise.
46078         (_IO_iter_begin): Likewise.
46079         (_IO_iter_end): Likewise.
46080         (_IO_list_lock): Likewise.
46081         (_IO_list_unlock): Likewise.
46082         (_IO_list_resetlock): Likewise.
46083         * libio/getchar.c (getchar): Likewise.
46084         * libio/getchar_u.c (getchar_unlocked): Likewise.
46085         * libio/getwchar.c (getwchar): Likewise.
46086         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
46087         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
46088         * login/getpt.c (__getpt): Likewise.
46089         * login/tst-utmp.c (main): Likewise.
46090         * malloc/hooks.c (__malloc_check_init): Likewise.
46091         * malloc/malloc.c (__malloc_stats): Likewise.
46092         * malloc/mtrace.c (tr_break): Likewise.
46093         (mtrace): Likewise.
46094         (muntrace): Likewise.
46095         * misc/fstab.c (endfsent): Likewise.
46096         * misc/getclktck.c (__getclktck): Likewise.
46097         * misc/getdtsz.c (__getdtablesize): Likewise.
46098         * misc/gethostid.c (gethostid): Likewise.
46099         * misc/getpagesize.c (__getpagesize): Likewise.
46100         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
46101         (__get_nprocs): Likewise.
46102         (__get_phys_pages): Likewise.
46103         (__get_avphys_pages): Likewise.
46104         * misc/getttyent.c (getttyent): Likewise.
46105         (setttyent): Likewise.
46106         (endttyent): Likewise.
46107         * misc/getusershell.c (getusershell): Likewise.
46108         (endusershell): Likewise.
46109         (setusershell): Likewise.
46110         (initshells): Likewise.
46111         * misc/hsearch.c (__hdestroy): Likewise.
46112         * misc/sync.c (sync): Likewise.
46113         * misc/syslog.c (closelog_internal): Likewise.
46114         (closelog): Likewise.
46115         * misc/ttyslot.c (ttyslot): Likewise.
46116         * misc/vhangup.c (vhangup): Likewise.
46117         * posix/fork.c (__fork): Likewise.
46118         * posix/getegid.c (__getegid): Likewise.
46119         * posix/geteuid.c (__geteuid): Likewise.
46120         * posix/getgid.c (__getgid): Likewise.
46121         * posix/getpid.c (__getpid): Likewise.
46122         * posix/getppid.c (__getppid): Likewise.
46123         * posix/getuid.c (__getuid): Likewise.
46124         * posix/pause.c (pause): Likewise.
46125         * posix/setpgrp.c (setpgrp): Likewise.
46126         * posix/setsid.c (__setsid): Likewise.
46127         * posix/test-vfork.c (noop): Likewise.
46128         * resolv/gethnamaddr.c (_endhtent): Likewise.
46129         (_gethtent): Likewise.
46130         (ht_endhostent): Likewise.
46131         (gethostent): Likewise.
46132         (dns_service): Likewise.
46133         * stdlib/drand48.c (drand48): Likewise.
46134         * stdlib/lrand48.c (lrand48): Likewise.
46135         * stdlib/mrand48.c (mrand48): Likewise.
46136         * stdlib/rand.c (rand): Likewise.
46137         * stdlib/random.c (__random): Likewise.
46138         * stdlib/setenv.c (clearenv): Likewise.
46139         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
46140         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
46141         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
46142         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
46143         (__get_nprocs): Likewise.
46144         (__get_phys_pages): Likewise.
46145         (__get_avphys_pages): Likewise.
46146         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
46147         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
46148         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
46149         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
46150         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
46151         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
46152         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
46153         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
46154         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
46155         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
46156         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
46157         * sysdeps/mach/hurd/sync.c (sync): Likewise.
46158         * sysdeps/posix/clock.c (clock): Likewise.
46159         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
46160         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
46161         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
46162         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
46163         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
46164         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
46165         (__get_nprocs_conf): Likewise.
46166         (__get_phys_pages): Likewise.
46167         (__get_avphys_pages): Likewise.
46168         * time/clock.c (clock): Likewise.
46169         * time/tzset.c (__tzname_max): Likewise.
46170
46171 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
46172
46173         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
46174         (__bswap_32): Do not use "register".
46175         * crypt/crypt.c (_ufc_doit_r): Likewise.
46176         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
46177         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
46178         * gmon/gmon.c (__monstartup): Likewise.
46179         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
46180         * hurd/hurdmalloc.c (more_memory): Likewise.
46181         (malloc): Likewise.
46182         (free): Likewise.
46183         (realloc): Likewise.
46184         (malloc_fork_prepare): Likewise.
46185         (malloc_fork_parent): Likewise.
46186         (malloc_fork_child): Likewise.
46187         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
46188         (_svcauth_des): Likewise.
46189         * inet/inet_lnaof.c (inet_lnaof): Likewise.
46190         * inet/inet_net.c (inet_network): Likewise.
46191         * inet/inet_netof.c (inet_netof): Likewise.
46192         * inet/rcmd.c (__validuser2_sa): Likewise.
46193         * io/fts.c (fts_open): Likewise.
46194         (fts_load): Likewise.
46195         (fts_close): Likewise.
46196         (fts_read): Likewise.
46197         (fts_children): Likewise.
46198         (fts_build): Likewise.
46199         (fts_stat): Likewise.
46200         (fts_sort): Likewise.
46201         (fts_alloc): Likewise.
46202         (fts_lfree): Likewise.
46203         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
46204         (_IO_file_xsgetn): Likewise.
46205         (_IO_file_xsgetn_mmap): Likewise.
46206         * libio/iofopncook.c (_IO_cookie_read): Likewise.
46207         (_IO_cookie_write): Likewise.
46208         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
46209         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
46210         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
46211         * malloc/obstack.c (_obstack_begin): Likewise.
46212         (_obstack_begin_1): Likewise.
46213         (_obstack_newchunk): Likewise.
46214         (_obstack_allocated_p): Likewise.
46215         (obstack_free): Likewise.
46216         (_obstack_memory_used): Likewise.
46217         * misc/getttyent.c (getttynam): Likewise.
46218         (getttyent): Likewise.
46219         (skip): Likewise.
46220         (value): Likewise.
46221         * misc/getusershell.c (initshells): Likewise.
46222         * misc/syslog.c (__vsyslog_chk): Likewise.
46223         * misc/ttyslot.c (ttyslot): Likewise.
46224         * nis/nis_hash.c (__nis_hash): Likewise.
46225         * posix/fnmatch_loop.c (FCT): Likewise.
46226         * posix/getconf.c (print_all): Likewise.
46227         (main): Likewise.
46228         * posix/getopt.c (exchange): Likewise.
46229         * posix/glob.c (globfree): Likewise.
46230         (prefix_array): Likewise.
46231         (__glob_pattern_type): Likewise.
46232         * resolv/arpa/nameser.h (NS_GET16): Likewise.
46233         (NS_GET32): Likewise.
46234         (NS_PUT16): Likewise.
46235         (NS_PUT32): Likewise.
46236         * resolv/gethnamaddr.c (getanswer): Likewise.
46237         (gethostbyname2): Likewise.
46238         (gethostbyaddr): Likewise.
46239         (_gethtent): Likewise.
46240         (_gethtbyname2): Likewise.
46241         (_gethtbyaddr): Likewise.
46242         * resolv/ns_print.c (dst_s_get_int16): Likewise.
46243         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
46244         * resolv/res_init.c (__res_vinit): Likewise.
46245         (net_mask): Likewise.
46246         * resolv/res_mkquery.c (outchar): Likewise.
46247         (PRINT): Likewise.
46248         * stdio-common/printf_fp.c (outchar): Likewise.
46249         (PRINT): Likewise.
46250         * stdio-common/printf_fphex.c (outchar): Likewise.
46251         (PRINT): Likewise.
46252         * stdio-common/printf_size.c (outchar): Likewise.
46253         (PRINT): Likewise.
46254         * stdio-common/test_rdwr.c (main): Likewise.
46255         * stdio-common/tfformat.c (matches): Likewise.
46256         * stdio-common/vfprintf.c (outchar): Likewise.
46257         (printf_unknown): Likewise.
46258         (buffered_vfprintf): Likewise.
46259         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
46260         * stdio-common/xbug.c (AppendToBuffer): Likewise.
46261         (ReadFile): Likewise.
46262         * stdlib/qsort.c (SWAP): Likewise.
46263         (_quicksort): Likewise.
46264         * stdlib/setenv.c (__add_to_environ): Likewise.
46265         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
46266         * stdlib/strtol_l.c (__strtol_l): Likewise.
46267         * stdlib/tst-strtod.c (main): Likewise.
46268         * stdlib/tst-strtol.c (main): Likewise.
46269         * stdlib/tst-strtoll.c (main): Likewise.
46270         * string/bits/string2.h (__strcmp_cc): Likewise.
46271         (__strcmp_cg): Likewise.
46272         (__strcspn_c1): Likewise.
46273         (__strcspn_c2): Likewise.
46274         (__strcspn_c3): Likewise.
46275         (__strspn_c1): Likewise.
46276         (__strspn_c2): Likewise.
46277         (__strspn_c3): Likewise.
46278         (__strsep_1c): Likewise.
46279         (__strsep_2c): Likewise.
46280         (__strsep_3c): Likewise.
46281         * string/memccpy.c (__memccpy): Likewise.
46282         * string/stpcpy.c (__stpcpy): Likewise.
46283         * string/strcmp.c (strcmp): Likewise.
46284         * string/strrchr.c (strrchr): Likewise.
46285         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
46286         Likewise.
46287         * sysdeps/mach/hurd/getcwd.c
46288         (_hurd_canonicalize_directory_name_internal): Likewise.
46289         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
46290         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
46291         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
46292         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
46293         Likewise, in both definitions.
46294         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
46295         definitions.
46296         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
46297         64] (__bswap_64): Likewise.
46298         * time/test_time.c (main): Likewise.
46299         * time/tzfile.c (__tzfile_read): Likewise.
46300         (__tzfile_compute): Likewise.
46301         * time/tzset.c (__tzset_parse_tz): Likewise.
46302         (tzset_internal): Likewise.
46303         (compute_change): Likewise.
46304         * wcsmbs/wcscat.c (__wcscat): Likewise.
46305         * wcsmbs/wcschr.c (wcschr): Likewise.
46306         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
46307         * wcsmbs/wcscspn.c (wcscspn): Likewise.
46308         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
46309         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
46310         * wcsmbs/wcsspn.c (wcsspn): Likewise.
46311         * wcsmbs/wcsstr.c (wcsstr): Likewise.
46312         * wcsmbs/wmemchr.c (wmemchr): Likewise.
46313         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
46314         * wcsmbs/wmemset.c (wmemset): Likewise.
46315
46316 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
46317
46318         * scripts/config.guess: Update to version 2013-05-16.
46319         * scripts/config.sub: Update to version 2013-04-24.
46320         * scripts/install-sh: Update to version 2011-11-20.07.
46321         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
46322         * scripts/move-if-change: Update to version 2012-01-06 07:23.
46323
46324 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
46325
46326         * debug/fgetws_u_chk.c: Fix leading whitespaces.
46327         * elf/sln.c: Likewise.
46328         * hurd/hurd/ioctl.h: Likewise.
46329         * hurd/hurdmalloc.c: Likewise.
46330         * hurd/xattr.c: Likewise.
46331         * include/shlib-compat.h: Likewise.
46332         * inet/ruserpass.c: Likewise.
46333         * libio/iofgets_u.c: Likewise.
46334         * libio/iofgetws_u.c: Likewise.
46335         * locale/programs/ld-identification.c: Likewise.
46336         * locale/programs/ld-time.c: Likewise.
46337         * mach/msg-destroy.c: Likewise.
46338         * nss/nss_files/files-netgrp.c: Likewise.
46339         * resolv/res_data.c: Likewise.
46340         * soft-fp/op-1.h: Likewise.
46341         * soft-fp/op-2.h: Likewise.
46342         * soft-fp/op-4.h: Likewise.
46343         * soft-fp/op-common.h: Likewise.
46344         * stdio-common/printf_fphex.c: Likewise.
46345         * stdlib/strtod_l.c: Likewise.
46346         * sunrpc/rpc/clnt.h: Likewise.
46347         * sysdeps/generic/framestate.c: Likewise.
46348         * sysdeps/i386/bsd-_setjmp.S: Likewise.
46349         * sysdeps/i386/bsd-setjmp.S: Likewise.
46350         * sysdeps/i386/__longjmp.S: Likewise.
46351         * sysdeps/i386/setjmp.S: Likewise.
46352         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46353         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46354         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46355         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
46356         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46357         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
46358         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46359         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46360         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46361         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
46362         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
46363         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
46364         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
46365         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
46366         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
46367         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46368         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
46369         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
46370         * sysdeps/ieee754/support.c: Likewise.
46371         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
46372         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
46373         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
46374         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
46375         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
46376         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
46377         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
46378         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
46379         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
46380         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
46381         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
46382         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
46383         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
46384         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
46385         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
46386         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
46387         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46389
46390 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
46391
46392         * posix/transbug.c: Remove executable mode.
46393
46394 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
46395
46396         * crypt/speeds.c: Remove trailing whitespace.
46397         * dlfcn/default.c: Likewise.
46398         * elf/ifuncdep2.c: Likewise.
46399         * elf/ifuncmain1.c: Likewise.
46400         * elf/ifuncmain1vis.c: Likewise.
46401         * elf/testobj.h: Likewise.
46402         * elf/tst-stackguard1.c: Likewise.
46403         * gmon/sys/gmon.h: Likewise.
46404         * hurd/hurdmsg.c: Likewise.
46405         * hurd/new-fd.c: Likewise.
46406         * hurd/ports-get.c: Likewise.
46407         * iconvdata/ibm1008_420.c: Likewise.
46408         * inet/tst-getni1.c: Likewise.
46409         * inet/tst-getni2.c: Likewise.
46410         * libio/ioungetc.c: Likewise.
46411         * libio/wfiledoalloc.c: Likewise.
46412         * manual/libm-err-tab.pl: Likewise.
46413         * math/w_dremf.c: Likewise.
46414         * misc/ftruncate.c: Likewise.
46415         * posix/bug-glob2.c: Likewise.
46416         * posix/tst-pcre.c: Likewise.
46417         * posix/wait4.c: Likewise.
46418         * resolv/README: Likewise.
46419         * resolv/res_debug.h: Likewise.
46420         * resolv/tst-inet_ntop.c: Likewise.
46421         * setjmp/bug269-setjmp.c: Likewise.
46422         * soft-fp/extended.h: Likewise.
46423         * soft-fp/op-1.h: Likewise.
46424         * soft-fp/op-2.h: Likewise.
46425         * soft-fp/op-4.h: Likewise.
46426         * soft-fp/op-8.h: Likewise.
46427         * soft-fp/testit.c: Likewise.
46428         * stdio-common/bug16.c: Likewise.
46429         * stdlib/random.c: Likewise.
46430         * sunrpc/rpcsvc/rquota.x: Likewise.
46431         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
46432         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46433         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46434         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46435         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46436         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46437         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46438         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46439         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46440         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46441         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46442         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46443         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46444         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46445         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46446         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46447         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46448         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46449         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46450         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46451         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46452         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46453         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46454         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46455         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46456         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46457         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46458         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46459         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46460         * sysdeps/ieee754/s_lib_version.c: Likewise.
46461         * sysdeps/mach/hurd/check_fds.c: Likewise.
46462         * sysdeps/mach/hurd/getsockname.c: Likewise.
46463         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46464         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46465         * sysdeps/powerpc/bits/link.h: Likewise.
46466         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46467         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46468         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46469         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46470         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46471         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46472         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46473         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46474         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46475         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46476         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46477         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46478         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46479         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46480         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46481         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46482         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46483         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46484         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46485         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46486         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46487         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46488         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46489         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46490         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46491         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46492         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46493         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46494         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46495         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46496         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46497         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46498         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46499         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46500         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46501         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46502         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46503         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46504         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46505         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46506         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46507         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46508         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46509         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46510         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46511         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46512         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46513         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46514         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46515         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46516         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46517         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46518         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46519         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46520         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46521         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46522         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46523         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46524         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46525         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46526         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46527         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46528         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46529         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46530         * sysdeps/powerpc/sysdep.h: Likewise.
46531         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46532         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46533         * sysdeps/sh/dl-trampoline.S: Likewise.
46534         * sysdeps/sh/memset.S: Likewise.
46535         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46536         * sysdeps/sh/strlen.S: Likewise.
46537         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46538         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46539         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46540         * sysdeps/sparc/sparc32/rem.S: Likewise.
46541         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46542         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46543         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46544         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46545         * sysdeps/sparc/sparc32/urem.S: Likewise.
46546         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46547         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46548         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46549         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46550         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46551         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46552         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46553         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46554         * sysdeps/unix/bsd/times.c: Likewise.
46555         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46556         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46560         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46561         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46562         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46563         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46564         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46565         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46566         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46567         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46568         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46569         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46570         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46571         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46572         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46573         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46574         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46575         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46576         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46577         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46578         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46579         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46580         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46581         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46582         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46583         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46584         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46585         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46586         * sysdeps/x86_64/strcspn.S: Likewise.
46587
46588 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46589
46590         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46591         generated file.  Regenerate properly from gen-translit.pl.
46592         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46593         locale/C-translit.h.
46594
46595 2013-06-05  Andreas Schwab  <schwab@suse.de>
46596
46597         [BZ #15100]
46598         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46599         week as 6 instead of -1.
46600         * time/tst-strptime.c (day_tests): Add test case.
46601
46602 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46603
46604         * sysdeps/generic/math_private.h
46605         (libc_feholdexcept_setround_53bit): Replace with
46606         libc_feholdsetround_53bit.
46607         (libc_feupdateenv_53bit): Replace with
46608         libc_feresetround_53bit.
46609         (SET_RESTORE_ROUND_53BIT): Adjust.
46610
46611 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46612
46613         * string/test-strchrnul.c: Add copyright header.
46614
46615         * posix/tst-getaddrinfo4.c: Increase test timeout.
46616
46617 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46618
46619         [BZ #15536]
46620         * math/libm-test.inc (MAX_EXP): Remove
46621         (MIN_EXP): Define.
46622         (ulp): Use MIN_EXP - MANT_DIG.
46623         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46624
46625 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46626
46627         * po/be.po: Revert last change.
46628         * po/zh_CN.po: Likewise.
46629         * po/header.pot: Likewise.
46630
46631 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46632
46633         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46634         link-libc-deps to empty as target-specific variable.
46635         * Makerules (link-libc-args): New variable.
46636         (libc-for-link): Likewise.
46637         (link-libc-deps): Likewise.
46638         (lib%.so): Depend on $(link-libc-deps).  Link with
46639         $(link-libc-args).
46640         (build-module): Link with $(link-libc-args).
46641         (build-module-asneeded): Likewise.
46642         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46643         list of objects.
46644         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46645         target-specific variable.
46646         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46647         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46648         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46649         libc.
46650         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46651         libc and ld.so.
46652         ($(objpfx)libpcprofile.so): Likewise.
46653         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46654         libc_nonshared.a.
46655         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46656         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46657         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46658         $(link-libc-deps).
46659         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46660         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46661         * login/Makefile ($(objpfx)libutil.so): Likewise.
46662         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46663         * math/Makefile ($(objpfx)libm.so): Likewise.
46664         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46665         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46666         variable instead of depending directly on libc.
46667         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46668         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46669         $(link-libc-deps).
46670         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46671         libc.
46672         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46673         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46674         ($(objpfx)libanl.so): Likewise.
46675         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46676         ld.so.
46677         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46678         $(link-libc-deps).
46679         * sysdeps/i386/fpu/Makefile: Remove file.
46680         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46681         ($(objpfx)libm.so): Remove dependency on ld.so.
46682
46683 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46684
46685         [BZ # 15553]
46686         * nis/yp_xdr.c (XDRMAXNAME): Define.
46687         (XDRMAXRECORD): Define.
46688         (xdr_domainname): Use XDRMAXNAME.
46689         (xdr_mapname): Likewise.
46690         (xdr_peername): Likewise.
46691         (xdr_keydat): Use XDRMAXRECORD.
46692         (xdr_valdat): Likewise.
46693
46694 2013-05-30  Jeff Law  <law@redhat.com>
46695
46696         [BZ #14256]
46697         * manual/errno.texi (ESTALE): Update to account for more than
46698         just NFS file systems.
46699         * sysdeps/gnu/errlist.c: Regenerated.
46700
46701 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46702
46703         [BZ #15465]
46704         * elf/Makefile (tests): Add tst-null-argv.
46705         (modules-names):  Add tst-null-argv-lib.
46706         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46707         (tst-null-argv-ENV): Set environment for tst-null-argv.
46708         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46709         (RTLD_PROGNAME): New macro.
46710         * elf/tst-null-argv.c: New test case.
46711         * elf/tst-null-argv-lib.c: Library for test case.
46712         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46713         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46714         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46715         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46716         * elf/dl-init.c (call_init): Likewise.
46717         (_dl_init): Likewise.
46718         * elf/dl-load.c (print_search_path): Likewise.
46719         (_dl_map_object): Likewise.
46720         * elf/dl-lookup.c (do_lookup_x): Likewise.
46721         (add_dependency): Likewise.
46722         (_dl_lookup_symbol_x): Likewise.
46723         (_dl_debug_bindings): Likewise.
46724         * elf/dl-open.c (_dl_show_scope): Likewise.
46725         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46726         * elf/dl-version.c (match_symbol): Likewise.
46727         (_dl_check_map_versions): Likewise.
46728         * elf/rtld.c (dl_main): Likewise.
46729         (print_unresolved): Use RTLD_PROGNAME.
46730         (print_missing_version): Likewise.
46731         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46732         (elf_machine_rela): Likewise.
46733         * sysdeps/powerpc/powerpc32/dl-machine.c
46734         (__process_machine_rela): Likewise.
46735         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46736         Likewise.
46737         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46738         Likewise.
46739         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46740         Likewise.
46741         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46742         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46743         Likewise.
46744         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46745         Likewise.
46746         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46747
46748 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46749
46750         * po/be.po: Add descriptive title.
46751         * po/zh_CN.po: Likewise.
46752         * po/header.pot: Likewise.
46753
46754 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46755
46756         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46757         error message.
46758         (enlarge_archive): Likewise.
46759
46760 2013-05-28  Ben North  <ben@redfrontdoor.org>
46761
46762         * manual/arith.texi (frexp): It is the magnitude of the return
46763         value which lies in [0.5, 1), not the return value itself.
46764
46765 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46766
46767         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46768
46769 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46770
46771         * stdio-common/bug26.c (main): Correct fscanf template.
46772
46773         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46774         declare _dl_skip_args.
46775
46776         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46777         Don't declare.
46778
46779         * manual/platform.texi: Add missing @end deftypefun.
46780
46781 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46782
46783         [BZ #15529]
46784         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46785         bit of mantissa of 2^16382.
46786         * math/libm-test.inc (hypot_test_data): Add more tests.
46787
46788         * math/libm-test.inc: Add drem and pow10 to list of tested
46789         functions.
46790         (pow10_test): New function.
46791         (drem_test): Likewise.
46792         (drem_test_tonearest): Likewise.
46793         (drem_test_towardzero): Likewise.
46794         (drem_test_downward): Likewise.
46795         (drem_test_upward): Likewise.
46796         (main): Call the new functions.
46797
46798         * math/libm-test.inc (finite_test_data): Remove.
46799         (finite_test): Run tests from isfinite_test_data.
46800         (gamma_test_data): Remove.
46801         (gamma_test): Run tests from lgamma_test_data.
46802         * sysdeps/i386/fpu/libm-test-ulps: Update.
46803         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46804
46805 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46806
46807         * manual/platform.texi: Add PowerPC PPR function set documentation.
46808         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46809         implementation.
46810
46811 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46812
46813         * math/libm-test.inc (MAX_EXP): Define.
46814         (ULPDIFF): Define.
46815         (ulp): New function.
46816         (check_float_internal): Use ULPDIFF.
46817         (cpow_test): Disable failing test.
46818         (check_ulp): Test ulp() implemetnation.
46819         (main): Call check_ulp before starting tests.
46820
46821 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46822
46823         * math/gen-libm-test.pl (generate_testfile): Do not handle
46824         START_DATA and END_DATA.
46825         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46826         END_DATA.
46827         (acos_tonearest_test_data): Likewise.
46828         (acos_towardzero_test_data): Likewise.
46829         (acos_downward_test_data): Likewise.
46830         (acos_upward_test_data): Likewise.
46831         (acosh_test_data): Likewise.
46832         (asin_test_data): Likewise.
46833         (asin_tonearest_test_data): Likewise.
46834         (asin_towardzero_test_data): Likewise.
46835         (asin_downward_test_data): Likewise.
46836         (asin_upward_test_data): Likewise.
46837         (asinh_test_data): Likewise.
46838         (atan_test_data): Likewise.
46839         (atanh_test_data): Likewise.
46840         (atan2_test_data): Likewise.
46841         (cabs_test_data): Likewise.
46842         (cacos_test_data): Likewise.
46843         (cacosh_test_data): Likewise.
46844         (carg_test_data): Likewise.
46845         (casin_test_data): Likewise.
46846         (casinh_test_data): Likewise.
46847         (catan_test_data): Likewise.
46848         (catanh_test_data): Likewise.
46849         (cbrt_test_data): Likewise.
46850         (ccos_test_data): Likewise.
46851         (ccosh_test_data): Likewise.
46852         (ceil_test_data): Likewise.
46853         (cexp_test_data): Likewise.
46854         (cimag_test_data): Likewise.
46855         (clog_test_data): Likewise.
46856         (clog10_test_data): Likewise.
46857         (conj_test_data): Likewise.
46858         (copysign_test_data): Likewise.
46859         (cos_test_data): Likewise.
46860         (cos_tonearest_test_data): Likewise.
46861         (cos_towardzero_test_data): Likewise.
46862         (cos_downward_test_data): Likewise.
46863         (cos_upward_test_data): Likewise.
46864         (cosh_test_data): Likewise.
46865         (cosh_tonearest_test_data): Likewise.
46866         (cosh_towardzero_test_data): Likewise.
46867         (cosh_downward_test_data): Likewise.
46868         (cosh_upward_test_data): Likewise.
46869         (cpow_test_data): Likewise.
46870         (cproj_test_data): Likewise.
46871         (creal_test_data): Likewise.
46872         (csin_test_data): Likewise.
46873         (csinh_test_data): Likewise.
46874         (csqrt_test_data): Likewise.
46875         (ctan_test_data): Likewise.
46876         (ctan_tonearest_test_data): Likewise.
46877         (ctan_towardzero_test_data): Likewise.
46878         (ctan_downward_test_data): Likewise.
46879         (ctan_upward_test_data): Likewise.
46880         (ctanh_test_data): Likewise.
46881         (ctanh_tonearest_test_data): Likewise.
46882         (ctanh_towardzero_test_data): Likewise.
46883         (ctanh_downward_test_data): Likewise.
46884         (ctanh_upward_test_data): Likewise.
46885         (erf_test_data): Likewise.
46886         (erfc_test_data): Likewise.
46887         (exp_test_data): Likewise.
46888         (exp_tonearest_test_data): Likewise.
46889         (exp_towardzero_test_data): Likewise.
46890         (exp_downward_test_data): Likewise.
46891         (exp_upward_test_data): Likewise.
46892         (exp10_test_data): Likewise.
46893         (exp2_test_data): Likewise.
46894         (expm1_test_data): Likewise.
46895         (fabs_test_data): Likewise.
46896         (fdim_test_data): Likewise.
46897         (finite_test_data): Likewise.
46898         (floor_test_data): Likewise.
46899         (fma_test_data): Likewise.
46900         (fma_towardzero_test_data): Likewise.
46901         (fma_downward_test_data): Likewise.
46902         (fma_upward_test_data): Likewise.
46903         (fmax_test_data): Likewise.
46904         (fmin_test_data): Likewise.
46905         (fmod_test_data): Likewise.
46906         (fpclassify_test_data): Likewise.
46907         (frexp_test_data): Likewise.
46908         (gamma_test_data): Likewise.
46909         (hypot_test_data): Likewise.
46910         (ilogb_test_data): Likewise.
46911         (isfinite_test_data): Likewise.
46912         (isgreater_test_data): Likewise.
46913         (isgreaterequal_test_data): Likewise.
46914         (isinf_test_data): Likewise.
46915         (isless_test_data): Likewise.
46916         (islessequal_test_data): Likewise.
46917         (islessgreater_test_data): Likewise.
46918         (isnan_test_data): Likewise.
46919         (isnormal_test_data): Likewise.
46920         (issignaling_test_data): Likewise.
46921         (isunordered_test_data): Likewise.
46922         (j0_test_data): Likewise.
46923         (j1_test_data): Likewise.
46924         (jn_test_data): Likewise.
46925         (ldexp_test_data): Likewise.
46926         (lgamma_test_data): Likewise.
46927         (lrint_test_data): Likewise.
46928         (lrint_tonearest_test_data): Likewise.
46929         (lrint_towardzero_test_data): Likewise.
46930         (lrint_downward_test_data): Likewise.
46931         (lrint_upward_test_data): Likewise.
46932         (llrint_test_data): Likewise.
46933         (llrint_tonearest_test_data): Likewise.
46934         (llrint_towardzero_test_data): Likewise.
46935         (llrint_downward_test_data): Likewise.
46936         (llrint_upward_test_data): Likewise.
46937         (log_test_data): Likewise.
46938         (log10_test_data): Likewise.
46939         (log1p_test_data): Likewise.
46940         (log2_test_data): Likewise.
46941         (logb_test_data): Likewise.
46942         (logb_downward_test_data): Likewise.
46943         (lround_test_data): Likewise.
46944         (llround_test_data): Likewise.
46945         (modf_test_data): Likewise.
46946         (nearbyint_test_data): Likewise.
46947         (nextafter_test_data): Likewise.
46948         (nexttoward_test_data): Likewise.
46949         (pow_test_data): Likewise.
46950         (pow_tonearest_test_data): Likewise.
46951         (pow_towardzero_test_data): Likewise.
46952         (pow_downward_test_data): Likewise.
46953         (pow_upward_test_data): Likewise.
46954         (remainder_test_data): Likewise.
46955         (remainder_tonearest_test_data): Likewise.
46956         (remainder_towardzero_test_data): Likewise.
46957         (remainder_downward_test_data): Likewise.
46958         (remainder_upward_test_data): Likewise.
46959         (remquo_test_data): Likewise.
46960         (rint_test_data): Likewise.
46961         (rint_tonearest_test_data): Likewise.
46962         (rint_towardzero_test_data): Likewise.
46963         (rint_downward_test_data): Likewise.
46964         (rint_upward_test_data): Likewise.
46965         (round_test_data): Likewise.
46966         (scalb_test_data): Likewise.
46967         (scalbn_test_data): Likewise.
46968         (scalbln_test_data): Likewise.
46969         (signbit_test_data): Likewise.
46970         (sin_test_data): Likewise.
46971         (sin_tonearest_test_data): Likewise.
46972         (sin_towardzero_test_data): Likewise.
46973         (sin_downward_test_data): Likewise.
46974         (sin_upward_test_data): Likewise.
46975         (sincos_test_data): Likewise.
46976         (sinh_test_data): Likewise.
46977         (sinh_tonearest_test_data): Likewise.
46978         (sinh_towardzero_test_data): Likewise.
46979         (sinh_downward_test_data): Likewise.
46980         (sinh_upward_test_data): Likewise.
46981         (sqrt_test_data): Likewise.
46982         (tan_test_data): Likewise.
46983         (tan_tonearest_test_data): Likewise.
46984         (tan_towardzero_test_data): Likewise.
46985         (tan_downward_test_data): Likewise.
46986         (tan_upward_test_data): Likewise.
46987         (tanh_test_data): Likewise.
46988         (tgamma_test_data): Likewise.
46989         (trunc_test_data): Likewise.
46990         (y0_test_data): Likewise.
46991         (y1_test_data): Likewise.
46992         (yn_test_data): Likewise.
46993         (significand_test_data): Likewise.
46994
46995         * math/gen-libm-test.pl (@functions): Remove variable.
46996         (generate_testfile): Don't handle START and END lines.
46997         * math/libm-test.inc (START): New macro.
46998         (END): Likewise.
46999         (END_COMPLEX): Likewise.
47000         (acos_test): Use END macro without arguments.
47001         (acos_test_tonearest): Likewise.
47002         (acos_test_towardzero): Likewise.
47003         (acos_test_downward): Likewise.
47004         (acos_test_upward): Likewise.
47005         (acosh_test): Likewise.
47006         (asin_test): Likewise.
47007         (asin_test_tonearest): Likewise.
47008         (asin_test_towardzero): Likewise.
47009         (asin_test_downward): Likewise.
47010         (asin_test_upward): Likewise.
47011         (asinh_test): Likewise.
47012         (atan_test): Likewise.
47013         (atanh_test): Likewise.
47014         (atan2_test): Likewise.
47015         (cabs_test): Likewise.
47016         (cacos_test): Use END_COMPLEX macro without arguments.
47017         (cacosh_test): Likewise.
47018         (carg_test): Use END macro without arguments.
47019         (casin_test): Use END_COMPLEX macro without arguments.
47020         (casinh_test): Likewise.
47021         (catan_test): Likewise.
47022         (catanh_test): Likewise.
47023         (cbrt_test): Use END macro without arguments.
47024         (ccos_test): Use END_COMPLEX macro without arguments.
47025         (ccosh_test): Likewise.
47026         (ceil_test): Use END macro without arguments.
47027         (cexp_test): Use END_COMPLEX macro without arguments.
47028         (cimag_test): Use END macro without arguments.
47029         (clog_test): Use END_COMPLEX macro without arguments.
47030         (clog10_test): Likewise.
47031         (conj_test): Likewise.
47032         (copysign_test): Use END macro without arguments.
47033         (cos_test): Likewise.
47034         (cos_test_tonearest): Likewise.
47035         (cos_test_towardzero): Likewise.
47036         (cos_test_downward): Likewise.
47037         (cos_test_upward): Likewise.
47038         (cosh_test): Likewise.
47039         (cosh_test_tonearest): Likewise.
47040         (cosh_test_towardzero): Likewise.
47041         (cosh_test_downward): Likewise.
47042         (cosh_test_upward): Likewise.
47043         (cpow_test): Use END_COMPLEX macro without arguments.
47044         (cproj_test): Likewise.
47045         (creal_test): Use END macro without arguments.
47046         (csin_test): Use END_COMPLEX macro without arguments.
47047         (csinh_test): Likewise.
47048         (csqrt_test): Likewise.
47049         (ctan_test): Likewise.
47050         (ctan_test_tonearest): Likewise.
47051         (ctan_test_towardzero): Likewise.
47052         (ctan_test_downward): Likewise.
47053         (ctan_test_upward): Likewise.
47054         (ctanh_test): Likewise.
47055         (ctanh_test_tonearest): Likewise.
47056         (ctanh_test_towardzero): Likewise.
47057         (ctanh_test_downward): Likewise.
47058         (ctanh_test_upward): Likewise.
47059         (erf_test): Use END macro without arguments.
47060         (erfc_test): Likewise.
47061         (exp_test): Likewise.
47062         (exp_test_tonearest): Likewise.
47063         (exp_test_towardzero): Likewise.
47064         (exp_test_downward): Likewise.
47065         (exp_test_upward): Likewise.
47066         (exp10_test): Likewise.
47067         (exp2_test): Likewise.
47068         (expm1_test): Likewise.
47069         (fabs_test): Likewise.
47070         (fdim_test): Likewise.
47071         (finite_test): Likewise.
47072         (floor_test): Likewise.
47073         (fma_test): Likewise.
47074         (fma_test_towardzero): Likewise.
47075         (fma_test_downward): Likewise.
47076         (fma_test_upward): Likewise.
47077         (fmax_test): Likewise.
47078         (fmin_test): Likewise.
47079         (fmod_test): Likewise.
47080         (fpclassify_test): Likewise.
47081         (frexp_test): Likewise.
47082         (gamma_test): Likewise.
47083         (hypot_test): Likewise.
47084         (ilogb_test): Likewise.
47085         (isfinite_test): Likewise.
47086         (isgreater_test): Likewise.
47087         (isgreaterequal_test): Likewise.
47088         (isinf_test): Likewise.
47089         (isless_test): Likewise.
47090         (islessequal_test): Likewise.
47091         (islessgreater_test): Likewise.
47092         (isnan_test): Likewise.
47093         (isnormal_test): Likewise.
47094         (issignaling_test): Likewise.
47095         (isunordered_test): Likewise.
47096         (j0_test): Likewise.
47097         (j1_test): Likewise.
47098         (jn_test): Likewise.
47099         (ldexp_test): Likewise.
47100         (lgamma_test): Likewise.
47101         (lrint_test): Likewise.
47102         (lrint_test_tonearest): Likewise.
47103         (lrint_test_towardzero): Likewise.
47104         (lrint_test_downward): Likewise.
47105         (lrint_test_upward): Likewise.
47106         (llrint_test): Likewise.
47107         (llrint_test_tonearest): Likewise.
47108         (llrint_test_towardzero): Likewise.
47109         (llrint_test_downward): Likewise.
47110         (llrint_test_upward): Likewise.
47111         (log_test): Likewise.
47112         (log10_test): Likewise.
47113         (log1p_test): Likewise.
47114         (log2_test): Likewise.
47115         (logb_test): Likewise.
47116         (logb_test_downward): Likewise.
47117         (lround_test): Likewise.
47118         (llround_test): Likewise.
47119         (modf_test): Likewise.
47120         (nearbyint_test): Likewise.
47121         (nextafter_test): Likewise.
47122         (nexttoward_test): Likewise.
47123         (pow_test): Likewise.
47124         (pow_test_tonearest): Likewise.
47125         (pow_test_towardzero): Likewise.
47126         (pow_test_downward): Likewise.
47127         (pow_test_upward): Likewise.
47128         (remainder_test): Likewise.
47129         (remainder_test_tonearest): Likewise.
47130         (remainder_test_towardzero): Likewise.
47131         (remainder_test_downward): Likewise.
47132         (remainder_test_upward): Likewise.
47133         (remquo_test): Likewise.
47134         (rint_test): Likewise.
47135         (rint_test_tonearest): Likewise.
47136         (rint_test_towardzero): Likewise.
47137         (rint_test_downward): Likewise.
47138         (rint_test_upward): Likewise.
47139         (round_test): Likewise.
47140         (scalb_test): Likewise.
47141         (scalbn_test): Likewise.
47142         (scalbln_test): Likewise.
47143         (signbit_test): Likewise.
47144         (sin_test): Likewise.
47145         (sin_test_tonearest): Likewise.
47146         (sin_test_towardzero): Likewise.
47147         (sin_test_downward): Likewise.
47148         (sin_test_upward): Likewise.
47149         (sincos_test): Likewise.
47150         (sinh_test): Likewise.
47151         (sinh_test_tonearest): Likewise.
47152         (sinh_test_towardzero): Likewise.
47153         (sinh_test_downward): Likewise.
47154         (sinh_test_upward): Likewise.
47155         (sqrt_test): Likewise.
47156         (tan_test): Likewise.
47157         (tan_test_tonearest): Likewise.
47158         (tan_test_towardzero): Likewise.
47159         (tan_test_downward): Likewise.
47160         (tan_test_upward): Likewise.
47161         (tanh_test): Likewise.
47162         (tgamma_test): Likewise.
47163         (trunc_test): Likewise.
47164         (y0_test): Likewise.
47165         (y1_test): Likewise.
47166         (yn_test): Likewise.
47167         (significand_test): Likewise.
47168
47169 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
47170
47171         [BZ #15381]
47172         * libio/genops.c (_IO_no_init): Initialize wide struct info.
47173
47174 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47175
47176         [BZ #14894]
47177         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
47178         __ppc_mdoio and __ppc_mdoom.
47179         * manual/platform.texi: Document new functions __ppc_yield,
47180         __ppc_mdoio and __ppc_mdoom.
47181
47182 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
47183
47184         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
47185         (main): Mention "tls" pseudo-hwcap is legacy.
47186         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
47187
47188 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47189
47190         * math/gen-libm-test.pl (parse_args): Output only string of
47191         arguments as text for test name, not full call or descriptions of
47192         tests for extra outputs.
47193         (generate_testfile): Do not pass function name to parse_args.
47194         Generate this_func variable from START.
47195         * math/libm-test.inc (struct test_f_f_data): Rename test_name
47196         field to arg_str.
47197         (struct test_ff_f_data): Likewise.
47198         (test_ff_f_data_nexttoward): Likewise.
47199         (struct test_fi_f_data): Likewise.
47200         (struct test_fl_f_data): Likewise.
47201         (struct test_if_f_data): Likewise.
47202         (struct test_fff_f_data): Likewise.
47203         (struct test_c_f_data): Likewise.
47204         (struct test_f_f1_data): Likewise.  Remove field extra_name.
47205         (struct test_fF_f1_data): Likewise.
47206         (struct test_ffI_f1_data): Likewise.
47207         (struct test_c_c_data): Rename test_name field to arg_str.
47208         (struct test_cc_c_data): Likewise.
47209         (struct test_f_i_data): Likewise.
47210         (struct test_ff_i_data): Likewise.
47211         (struct test_f_l_data): Likewise.
47212         (struct test_f_L_data): Likewise.
47213         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
47214         and extra2_name.
47215         (COMMON_TEST_SETUP): New macro.
47216         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
47217         (COMMON_TEST_CLEANUP): Likewise.
47218         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
47219         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
47220         macros.
47221         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
47222         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
47223         macros.
47224         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
47225         (RUN_TEST_fff_f): Take argument string.  Call new setup and
47226         cleanup macros.
47227         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
47228         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
47229         macros.
47230         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
47231         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
47232         macros.
47233         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47234         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
47235         cleanup macros.
47236         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47237         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
47238         cleanup macros.
47239         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47240         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
47241         cleanup macros.
47242         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47243         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
47244         macros.
47245         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
47246         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
47247         macros.
47248         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
47249         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
47250         macros.
47251         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
47252         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
47253         cleanup macros.
47254         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
47255         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
47256         cleanup macros.
47257         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
47258         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
47259         macros.
47260         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
47261         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
47262         cleanup macros.
47263         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
47264         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
47265         macros.
47266         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
47267         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
47268         macros.
47269         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
47270         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
47271         cleanup macros.
47272         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
47273
47274 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
47275
47276         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
47277         to _sifields.sigfault.
47278         (si_addr_lsb): Define new macro.
47279         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47280         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
47281         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
47282
47283 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
47284
47285         [BZ #15441]
47286         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
47287         returns -1.
47288         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
47289         null return -1.
47290         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
47291         loading the domain.
47292
47293 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47294
47295         * math/gen-libm-test.pl (parse_args): Do not include expected
47296         result in test name.
47297         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
47298         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47299         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47300         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47301         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47302         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47303
47304 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47305
47306         * benchtests/Makefile: Sort function entries.
47307
47308         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
47309         tanh, asinh, acosh, atanh.
47310         * benchtests/acos-inputs: New file.
47311         * benchtests/acosh-inputs: New file.
47312         * benchtests/asin-inputs: New file.
47313         * benchtests/asinh-inputs: New file.
47314         * benchtests/atanh-inputs: New file.
47315         * benchtests/cosh-inputs: New file.
47316         * benchtests/log-inputs: New file.
47317         * benchtests/sinh-inputs: New file.
47318         * benchtests/tanh-inputs: New file.
47319
47320 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
47321
47322         [BZ #15339]
47323         * posix/tst-getaddrinfo4.c: New test.
47324         * posix/Makefile (tests): Add it.
47325
47326 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47327
47328         [BZ #15339]
47329         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
47330         when no services were used.
47331         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
47332         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
47333
47334 2013-05-21  Andreas Schwab  <schwab@suse.de>
47335
47336         [BZ #15014]
47337         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
47338         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
47339         successful.
47340         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
47341         redundant variable declarations and reallocation of buffer when
47342         parsing as IPv6 address.  Always set NSS status when called from
47343         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
47344         buffer too small.  Correct computation of needed size.
47345         * nss/Makefile (tests): Add test-digits-dots.
47346         * nss/test-digits-dots.c: New test.
47347
47348 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47349
47350         * benchtests/Makefile: Remove instructions for adding
47351         benchmark tests.
47352         * benchtests/README: New file to explain how to execute and
47353         enhance the benchmark tests.
47354
47355 2013-05-21  Andreas Schwab  <schwab@suse.de>
47356
47357         [BZ #15493]
47358         * setjmp/Makefile (tests): Add tst-sigsetjmp.
47359         * setjmp/tst-sigsetjmp.c: New test.
47360
47361 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47362
47363         * sysdeps/x86_64/memset.S (memset): New implementation.
47364         (__bzero): Likewise.
47365         (__memset_tail): New function.
47366
47367 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47368
47369         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
47370         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
47371         __memcpy_sse2_unaligned ifunc selection.
47372         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47373         Add memcpy-sse2-unaligned.S.
47374         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47375         Add: __memcpy_sse2_unaligned.
47376
47377 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
47378
47379         [BZ #15490]
47380         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
47381         math_force_eval before restoring floating-point envrionment.
47382         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
47383         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
47384         Likewise.
47385         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
47386         <math_private.h>.
47387         (__nearbyintl): Use math_force_eval before restoring
47388         floating-point environment.
47389         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
47390
47391         * math/gen-libm-test.pl (special_functions): Remove.
47392         (parse_args): Don't handle TEST_extra.  Handle functions with no
47393         return value.
47394         * math/libm-test.inc (struct test_sincos_data): Replace with
47395         struct test_fFF_11_data.
47396         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
47397         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
47398         (sincos_test_data): Change element type to struct
47399         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
47400         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
47401         RUN_TEST_LOOP_sincos.
47402         * math/README.libm-test: Don't mention special handling of
47403         individual functions.
47404         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
47405         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47406         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47407         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47408         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47409         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47410
47411         * math/gen-libm-test.pl (get_variable): Remove function.
47412         (parse_args): Don't show pointer parameters to call in test
47413         names.  Use "extra output N" in test names for extra outputs
47414         rather than naming variables.
47415
47416 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
47417
47418         [BZ #15488]
47419         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
47420         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
47421         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
47422         double tests.
47423         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
47424         disable.
47425         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
47426         check_long_double.
47427
47428         * math/gen-libm-test.pl (@tests): Remove variable.
47429         ($count): Likewise.
47430         (new_test): Remove function.
47431         (show_exceptions): New function.
47432         (special_functions): Use show_exceptions instead of new_test.
47433         (parse_args): Likewise.
47434         (generate_testfile): Pass only function name in generated call to
47435         print_max_error or print_complex_max_error.
47436         (get_ulps): Do not handle complex tests specially.
47437         (output_test): Rename to ...
47438         (get_all_ulps_for_test): ... this.  Return a string rather than
47439         printing to a file.  Require ulps to be present.
47440         (output_ulps): Generate arrays rather than #defines.
47441         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47442         (struct ulp_data): New type.
47443         (BUILD_COMPLEX_ULP): Remove macro.
47444         (compare_ulp_data): New function.
47445         (find_ulps): Likewise.
47446         (find_test_ulps): Likewise.
47447         (find_function_ulps): Likewise.
47448         (find_complex_function_ulps): Likewise.
47449         (print_max_error): Determine allowed ulps using
47450         find_function_ulps.
47451         (print_complex_max_error): Determine allowed ulps using
47452         find_complex_function_ulps.
47453         (check_float_internal): Determine max ulps using find_test_ulps.
47454         (check_float): Do not take max_ulp parameter.  Update call to
47455         check_float_internal.
47456         (check_complex): Likewise.
47457         (check_int): Do not take max_ulp parameter.
47458         (check_long): Likewise.
47459         (check_bool): Likewise.
47460         (check_longlong): Likewise.
47461         (struct test_f_f_data): Remove max_ulp field.
47462         (struct test_ff_f_data): Likewise.
47463         (struct test_ff_f_data_nexttoward): Likewise.
47464         (struct test_fi_f_data): Likewise.
47465         (struct test_fl_f_data): Likewise.
47466         (struct test_if_f_data): Likewise.
47467         (struct test_fff_f_data): Likewise.
47468         (struct test_c_f_data): Likewise.
47469         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47470         (struct test_fF_f1_data): Likewise.
47471         (struct test_ffI_f1_data): Likewise.
47472         (struct test_c_c_data): Remove max_ulp field.
47473         (struct test_cc_c_data): Likewise.
47474         (struct test_f_i_data): Likewise.
47475         (struct test_ff_i_data): Likewise.
47476         (struct test_f_l_data): Likewise.
47477         (struct test_f_L_data): Likewise.
47478         (struct test_sincos_data): Likewise.
47479         (RUN_TEST_f_f): Do not handle ulps.
47480         (RUN_TEST_LOOP_f_f): Likewise.
47481         (RUN_TEST_2_f): Likewise.
47482         (RUN_TEST_LOOP_2_f): Likewise.
47483         (RUN_TEST_fff_f): Likewise.
47484         (RUN_TEST_LOOP_fff_f): Likewise.
47485         (RUN_TEST_c_f): Likewise.
47486         (RUN_TEST_LOOP_c_f): Likewise.
47487         (RUN_TEST_f_f1): Likewise.
47488         (RUN_TEST_LOOP_f_f1): Likewise.
47489         (RUN_TEST_fF_f1): Likewise.
47490         (RUN_TEST_LOOP_fF_f1): Likewise.
47491         (RUN_TEST_fI_f1): Likewise.
47492         (RUN_TEST_LOOP_fI_f1): Likewise.
47493         (RUN_TEST_ffI_f1): Likewise.
47494         (RUN_TEST_LOOP_ffI_f1): Likewise.
47495         (RUN_TEST_c_c): Likewise.
47496         (RUN_TEST_LOOP_c_c): Likewise.
47497         (RUN_TEST_cc_c): Likewise.
47498         (RUN_TEST_LOOP_cc_c): Likewise.
47499         (RUN_TEST_f_i): Likewise.
47500         (RUN_TEST_LOOP_f_i): Likewise.
47501         (RUN_TEST_f_i_tg): Likewise.
47502         (RUN_TEST_LOOP_f_i_tg): Likewise.
47503         (RUN_TEST_ff_i_tg): Likewise.
47504         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47505         (RUN_TEST_f_b): Likewise.
47506         (RUN_TEST_LOOP_f_b): Likewise.
47507         (RUN_TEST_f_b_tg): Likewise.
47508         (RUN_TEST_LOOP_f_b_tg): Likewise.
47509         (RUN_TEST_f_l): Likewise.
47510         (RUN_TEST_LOOP_f_l): Likewise.
47511         (RUN_TEST_f_L): Likewise.
47512         (RUN_TEST_LOOP_f_L): Likewise.
47513         (RUN_TEST_sincos): Likewise.
47514         (RUN_TEST_LOOP_sincos): Likewise.
47515
47516 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47517
47518         [BZ #15480]
47519         [BZ #15485]
47520         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47521         main case of finite arguments, set rounding mode to FE_TONEAREST
47522         and discard exceptions.
47523         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47524         exceptions.
47525         (remainder_tonearest_test_data): New variable.
47526         (remainder_test_tonearest): New function.
47527         (remainder_towardzero_test_data): New variable.
47528         (remainder_test_towardzero): New function.
47529         (remainder_downward_test_data): New variable.
47530         (remainder_test_downward): New function.
47531         (remainder_upward_test_data): New variable.
47532         (remainder_test_upward): New function.
47533         (main): Call the new test functions.
47534
47535         * math/libm-test.inc (struct test_f_f1_data): Remove field
47536         extra_init.
47537         (struct test_fF_f1_data): Likewise.
47538         (struct test_ffI_f1_data): Likewise.
47539         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47540         based on value of EXTRA_EXPECTED.
47541         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47542         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47543         EXTRA_VAR based on value of EXTRA_EXPECTED.
47544         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47545         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47546         EXTRA_VAR based on value of EXTRA_EXPECTED.
47547         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47548         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47549         EXTRA_VAR based on value of EXTRA_EXPECTED.
47550         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47551         * math/gen-libm-test.pl (parse_args): Don't output initializers
47552         for extra output values.
47553
47554         * math/libm-test.inc (check_int): Expect result to be exactly
47555         equal to expected value and do not handle ulps.
47556         (check_long): Likewise.
47557         (check_longlong): Likewise.
47558
47559         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47560         exceptions.
47561         (cimag_test_data): Likewise.
47562         (conj_test_data): Likewise.
47563         (copysign_test_data): Likewise.
47564         (cproj_test_data): Likewise.
47565         (creal_test_data): Likewise.
47566         (fabs_test_data): Likewise.
47567         (fdim_test_data): Likewise.
47568         (finite_test_data): Likewise.
47569         (floor_test_data): Likewise.
47570         (fmax_test_data): Likewise.
47571         (fmin_test_data): Likewise.
47572         (fmod_test_data): Likewise.
47573         (fpclassify_test_data): Likewise.
47574         (frexp_test_data): Likewise.
47575         (ilogb_test_data): Likewise.
47576         (isfinite_test_data): Likewise.
47577         (isgreater_test_data): Likewise.
47578         (isgreaterequal_test_data): Likewise.
47579         (isinf_test_data): Likewise.
47580         (isless_test_data): Likewise.
47581         (islessequal_test_data): Likewise.
47582         (islessgreater_test_data): Likewise.
47583         (isnan_test_data): Likewise.
47584         (isnormal_test_data): Likewise.
47585         (issignaling_test_data): Likewise.
47586         (isunordered_test_data): Likewise.
47587         (ldexp_test_data): Likewise.
47588         (lrint_test_data): Likewise.
47589         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47590         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47591         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47592         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47593         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47594         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47595         test input.
47596         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47597         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47598         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47599         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47600         that test input.
47601         (lrint_downward_test_data): Test for "inexact" exceptions.
47602         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47603         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47604         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47605         test input.
47606         (lrint_upward_test_data): Test for "inexact" exceptions.
47607         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47608         test input.
47609         (llrint_test_data): Test for "inexact" exceptions.
47610         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47611         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47612         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47613         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47614         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47615         (llrint_downward_test_data): Test for "inexact" exceptions.
47616         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47617         (llrint_upward_test_data): Test for "inexact" exceptions.
47618         (logb_test_data): Likewise.
47619         (logb_downward_test_data): Likewise.
47620         (nextafter_test_data): Likewise.
47621         (nexttoward_test_data): Likewise.
47622         (remainder_test_data): Likewise.
47623         (remquo_test_data): Likewise.
47624         (scalbn_test_data): Likewise.
47625         (scalbln_test_data): Likewise.
47626         (signbit_test_data): Likewise.
47627         (sqrt_test_data): Likewise.
47628         (significand_test_data): Likewise.
47629
47630 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47631
47632         [BZ #15424]
47633         * benchtests/bench-modf.c (struct args): Mark arg0 as
47634         volatile.
47635         * scripts/bench.pl: Mark members of struct args as volatile.
47636
47637 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47638
47639         [BZ # 15497]
47640         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47641         negative infinity on POWER6 or lower.
47642         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47643
47644 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47645
47646         [BZ #15442]
47647         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47648         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47649         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47650         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47651         (_FP_SETQNAN): New macro.
47652         (_FP_SETQNAN_SEMIRAW): Likewise.
47653         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47654         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47655         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47656         (FP_EXTEND): Use _FP_FRAC_SNANP.
47657         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47658         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47659         into account.
47660         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47661         New macro.
47662         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47663         Likewise.
47664
47665 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47666
47667         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47668         with DIVIDE_BY_ZERO_EXCEPTION.
47669         (gamma_test_data): Likewise.
47670         (lgamma_test_data): Likewise.
47671         (log_test_data): Likewise.
47672         (log10_test_data): Likewise.
47673         (log2_test_data): Likewise.
47674         (tgamma_test_data): Likewise.
47675
47676         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47677         (acos_test_tonearest): Likewise.
47678         (acos_test_towardzero): Likewise.
47679         (acos_test_downward): Likewise.
47680         (acos_test_upward): Likewise.
47681         (acosh_test): Likewise.
47682         (asin_test): Likewise.
47683         (asin_test_tonearest): Likewise.
47684         (asin_test_towardzero): Likewise.
47685         (asin_test_downward): Likewise.
47686         (asin_test_upward): Likewise.
47687         (asinh_test): Likewise.
47688         (atan_test): Likewise.
47689         (atanh_test): Likewise.
47690         (atan2_test): Likewise.
47691         (cabs_test): Likewise.
47692         (cacos_test): Likewise.
47693         (cacosh_test): Likewise.
47694         (casin_test): Likewise.
47695         (casinh_test): Likewise.
47696         (catan_test): Likewise.
47697         (catanh_test): Likewise.
47698         (cbrt_test): Likewise.
47699         (ccos_test): Likewise.
47700         (ccosh_test): Likewise.
47701         (cexp_test): Likewise.
47702         (clog_test): Likewise.
47703         (clog10_test): Likewise.
47704         (cos_test): Likewise.
47705         (cos_test_tonearest): Likewise.
47706         (cos_test_towardzero): Likewise.
47707         (cos_test_downward): Likewise.
47708         (cos_test_upward): Likewise.
47709         (cosh_test): Likewise.
47710         (cosh_test_tonearest): Likewise.
47711         (cosh_test_towardzero): Likewise.
47712         (cosh_test_downward): Likewise.
47713         (cosh_test_upward): Likewise.
47714         (cpow_test): Likewise.
47715         (csin_test): Likewise.
47716         (csinh_test): Likewise.
47717         (csqrt_test): Likewise.
47718         (ctan_test): Likewise.
47719         (ctan_test_tonearest): Likewise.
47720         (ctan_test_towardzero): Likewise.
47721         (ctan_test_downward): Likewise.
47722         (ctan_test_upward): Likewise.
47723         (ctanh_test): Likewise.
47724         (ctanh_test_tonearest): Likewise.
47725         (ctanh_test_towardzero): Likewise.
47726         (ctanh_test_downward): Likewise.
47727         (ctanh_test_upward): Likewise.
47728         (erf_test): Likewise.
47729         (erfc_test): Likewise.
47730         (exp_test): Likewise.
47731         (exp_test_tonearest): Likewise.
47732         (exp_test_towardzero): Likewise.
47733         (exp_test_downward): Likewise.
47734         (exp_test_upward): Likewise.
47735         (exp10_test): Likewise.
47736         (exp2_test): Likewise.
47737         (expm1_test): Likewise.
47738         (fmod_test): Likewise.
47739         (gamma_test): Likewise.
47740         (hypot_test): Likewise.
47741         (j0_test): Likewise.
47742         (j1_test): Likewise.
47743         (jn_test): Likewise.
47744         (lgamma_test): Likewise.
47745         (log_test): Likewise.
47746         (log10_test): Likewise.
47747         (log1p_test): Likewise.
47748         (log2_test): Likewise.
47749         (logb_test_downward): Likewise.
47750         (pow_test): Likewise.
47751         (pow_test_tonearest): Likewise.
47752         (pow_test_towardzero): Likewise.
47753         (pow_test_downward): Likewise.
47754         (pow_test_upward): Likewise.
47755         (remainder_test): Likewise.
47756         (remquo_test): Likewise.
47757         (sin_test): Likewise.
47758         (sin_test_tonearest): Likewise.
47759         (sin_test_towardzero): Likewise.
47760         (sin_test_downward): Likewise.
47761         (sin_test_upward): Likewise.
47762         (sincos_test): Likewise.
47763         (sinh_test): Likewise.
47764         (sinh_test_tonearest): Likewise.
47765         (sinh_test_towardzero): Likewise.
47766         (sinh_test_downward): Likewise.
47767         (sinh_test_upward): Likewise.
47768         (sqrt_test): Likewise.
47769         (tan_test): Likewise.
47770         (tan_test_tonearest): Likewise.
47771         (tan_test_towardzero): Likewise.
47772         (tan_test_downward): Likewise.
47773         (tan_test_upward): Likewise.
47774         (tanh_test): Likewise.
47775         (tgamma_test): Likewise.
47776         (y0_test): Likewise.
47777         (y1_test): Likewise.
47778         (yn_test): Likewise.
47779
47780         * math/gen-libm-test.pl (adjust_arg): Remove function.
47781         (special_function): Remove argument $in_func.  Only handle
47782         generating output for tables of tests, not inside functions.
47783         (parse_args): Likewise.
47784         (generate_testfile): Remove variable $in_func.  Update call to
47785         parse_args.
47786         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47787         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47788         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47789         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47790         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47791         (MAX_VALUE_INIT): Rename macro to max_value.
47792         (MIN_VALUE_INIT): Rename macro to min_value.
47793         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47794         (plus_zero): Remove variable.
47795         (minus_zero): Likewise.
47796         (plus_infty): Likewise.
47797         (minus_infty): Likewise.
47798         (qnan_value): Likewise.
47799         (max_value): Likewise.
47800         (min_value): Likewise.
47801         (min_subnorm_value): Likewise.
47802
47803 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47804
47805         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47806         uint64_t or uint32_t usage.
47807         * crypt/sha256-block.c: Likewise.
47808         * crypt/sha256-crypt.c: Likewise.
47809         * crypt/sha256.c: Likewise.
47810         * crypt/sha512-block.c: Likewise.
47811         * crypt/sha512-crypt.c: Likewise.
47812         * crypt/sha512.c: Likewise.
47813         * debug/backtrace-tst.c: Likewise.
47814         * debug/pcprofiledump.c: Likewise.
47815         * elf/cache.c: Likewise.
47816         * elf/dl-cache.c: Likewise.
47817         * elf/dl-misc.c: Likewise.
47818         * elf/dl-profile.c: Likewise.
47819         * elf/dl-support.c: Likewise.
47820         * elf/ldconfig.c: Likewise.
47821         * elf/sprof.c: Likewise.
47822         * iconv/dummy-repertoire.c: Likewise.
47823         * iconv/iconv_charmap.c: Likewise.
47824         * iconv/skeleton.c: Likewise.
47825         * iconvdata/8bit-generic.c: Likewise.
47826         * iconvdata/cp737.h: Likewise.
47827         * iconvdata/cp775.h: Likewise.
47828         * iconvdata/ibm1008.h: Likewise.
47829         * iconvdata/ibm1025.h: Likewise.
47830         * iconvdata/ibm1046.h: Likewise.
47831         * iconvdata/ibm1097.h: Likewise.
47832         * iconvdata/ibm1112.h: Likewise.
47833         * iconvdata/ibm1122.h: Likewise.
47834         * iconvdata/ibm1123.h: Likewise.
47835         * iconvdata/ibm1124.h: Likewise.
47836         * iconvdata/ibm1129.h: Likewise.
47837         * iconvdata/ibm1130.h: Likewise.
47838         * iconvdata/ibm1132.h: Likewise.
47839         * iconvdata/ibm1133.h: Likewise.
47840         * iconvdata/ibm1137.h: Likewise.
47841         * iconvdata/ibm1140.h: Likewise.
47842         * iconvdata/ibm1141.h: Likewise.
47843         * iconvdata/ibm1142.h: Likewise.
47844         * iconvdata/ibm1143.h: Likewise.
47845         * iconvdata/ibm1144.h: Likewise.
47846         * iconvdata/ibm1145.h: Likewise.
47847         * iconvdata/ibm1146.h: Likewise.
47848         * iconvdata/ibm1147.h: Likewise.
47849         * iconvdata/ibm1148.h: Likewise.
47850         * iconvdata/ibm1149.h: Likewise.
47851         * iconvdata/ibm1153.h: Likewise.
47852         * iconvdata/ibm1154.h: Likewise.
47853         * iconvdata/ibm1155.h: Likewise.
47854         * iconvdata/ibm1156.h: Likewise.
47855         * iconvdata/ibm1157.h: Likewise.
47856         * iconvdata/ibm1158.h: Likewise.
47857         * iconvdata/ibm1160.h: Likewise.
47858         * iconvdata/ibm1161.h: Likewise.
47859         * iconvdata/ibm1162.h: Likewise.
47860         * iconvdata/ibm1163.h: Likewise.
47861         * iconvdata/ibm1164.h: Likewise.
47862         * iconvdata/ibm1166.h: Likewise.
47863         * iconvdata/ibm1167.h: Likewise.
47864         * iconvdata/ibm12712.h: Likewise.
47865         * iconvdata/ibm1390.h: Likewise.
47866         * iconvdata/ibm1399.h: Likewise.
47867         * iconvdata/ibm16804.h: Likewise.
47868         * iconvdata/ibm4517.h: Likewise.
47869         * iconvdata/ibm4899.h: Likewise.
47870         * iconvdata/ibm4909.h: Likewise.
47871         * iconvdata/ibm4971.h: Likewise.
47872         * iconvdata/ibm5347.h: Likewise.
47873         * iconvdata/ibm803.h: Likewise.
47874         * iconvdata/ibm856.h: Likewise.
47875         * iconvdata/ibm901.h: Likewise.
47876         * iconvdata/ibm902.h: Likewise.
47877         * iconvdata/ibm9030.h: Likewise.
47878         * iconvdata/ibm9066.h: Likewise.
47879         * iconvdata/ibm921.h: Likewise.
47880         * iconvdata/ibm922.h: Likewise.
47881         * iconvdata/ibm9448.h: Likewise.
47882         * iconvdata/isiri-3342.h: Likewise.
47883         * iconvdata/jis0201.h: Likewise.
47884         * include/link.h: Likewise.
47885         * include/netdb.h: Likewise.
47886         * inet/check_native.c: Likewise.
47887         * inet/check_pf.c: Likewise.
47888         * inet/getipv4sourcefilter.c: Likewise.
47889         * inet/getnameinfo.c: Likewise.
47890         * inet/getsourcefilter.c: Likewise.
47891         * inet/htonl.c: Likewise.
47892         * inet/setipv4sourcefilter.c: Likewise.
47893         * inet/setsourcefilter.c: Likewise.
47894         * inet/test-inet6_opt.c: Likewise.
47895         * inet/tst-network.c: Likewise.
47896         * locale/C-collate.c: Likewise.
47897         * locale/C-ctype.c: Likewise.
47898         * locale/C-time.c: Likewise.
47899         * locale/C-translit.h: Likewise.
47900         * locale/loadarchive.c: Likewise.
47901         * locale/programs/3level.h: Likewise.
47902         * locale/programs/charmap.c: Likewise.
47903         * locale/programs/charmap.h: Likewise.
47904         * locale/programs/ld-address.c: Likewise.
47905         * locale/programs/ld-collate.c: Likewise.
47906         * locale/programs/ld-ctype.c: Likewise.
47907         * locale/programs/ld-identification.c: Likewise.
47908         * locale/programs/ld-measurement.c: Likewise.
47909         * locale/programs/ld-messages.c: Likewise.
47910         * locale/programs/ld-monetary.c: Likewise.
47911         * locale/programs/ld-name.c: Likewise.
47912         * locale/programs/ld-numeric.c: Likewise.
47913         * locale/programs/ld-paper.c: Likewise.
47914         * locale/programs/ld-telephone.c: Likewise.
47915         * locale/programs/ld-time.c: Likewise.
47916         * locale/programs/linereader.c: Likewise.
47917         * locale/programs/locale.c: Likewise.
47918         * locale/programs/locarchive.c: Likewise.
47919         * locale/programs/locfile.h: Likewise.
47920         * locale/programs/repertoire.c: Likewise.
47921         * locale/programs/simple-hash.c: Likewise.
47922         * locale/programs/simple-hash.h: Likewise.
47923         * malloc/memusage.c: Likewise.
47924         * malloc/memusagestat.c: Likewise.
47925         * nis/nis_defaults.c: Likewise.
47926         * nis/nis_hash.c: Likewise.
47927         * nis/nis_print.c: Likewise.
47928         * nis/nis_xdr.c: Likewise.
47929         * nscd/connections.c: Likewise.
47930         * nscd/hstcache.c: Likewise.
47931         * nscd/nscd_gethst_r.c: Likewise.
47932         * nscd/nscd_getserv_r.c: Likewise.
47933         * nscd/nscd_helper.c: Likewise.
47934         * nscd/servicescache.c: Likewise.
47935         * nss/makedb.c: Likewise.
47936         * nss/nss_db/db-XXX.c: Likewise.
47937         * nss/nss_db/db-initgroups.c: Likewise.
47938         * nss/nss_db/db-netgrp.c: Likewise.
47939         * nss/nss_files/files-network.c: Likewise.
47940         * nss/nss_files/files-parse.c: Likewise.
47941         * posix/bug-regex5.c: Likewise.
47942         * posix/fnmatch_loop.c: Likewise.
47943         * posix/regcomp.c: Likewise.
47944         * posix/regexec.c: Likewise.
47945         * posix/tst-rfc3484-2.c: Likewise.
47946         * posix/tst-rfc3484-3.c: Likewise.
47947         * posix/tst-rfc3484.c: Likewise.
47948         * resolv/nss_dns/dns-canon.c: Likewise.
47949         * resolv/nss_dns/dns-network.c: Likewise.
47950         * resolv/res_init.c: Likewise.
47951         * resolv/res_mkquery.c: Likewise.
47952         * resolv/tst-aton.c: Likewise.
47953         * stdlib/cxa_atexit.c: Likewise.
47954         * stdlib/cxa_finalize.c: Likewise.
47955         * stdlib/gen-fpioconst.c: Likewise.
47956         * stdlib/strtol_l.c: Likewise.
47957         * string/tst-endian.c: Likewise.
47958         * sunrpc/auth_des.c: Likewise.
47959         * sunrpc/clnt_udp.c: Likewise.
47960         * sunrpc/rtime.c: Likewise.
47961         * sunrpc/svcauth_des.c: Likewise.
47962         * sunrpc/xdr.c: Likewise.
47963         * sunrpc/xdr_intXX_t.c: Likewise.
47964         * sunrpc/xdr_rec.c: Likewise.
47965         * sysdeps/generic/ldconfig.h: Likewise.
47966         * sysdeps/generic/ldsodefs.h: Likewise.
47967         * sysdeps/generic/memusage.h: Likewise.
47968         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
47969         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
47970         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
47971         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
47972         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
47973         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
47974         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
47975         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
47976         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
47977         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
47978         * sysdeps/posix/getaddrinfo.c: Likewise.
47979         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
47980         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
47981         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
47982         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
47983         * sysdeps/powerpc/test-gettimebase.c: Likewise.
47984         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
47985         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
47986         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
47987         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
47988         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
47989         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
47990         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
47991         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
47992         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
47993         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
47994         * sysdeps/x86_64/dl-tls.h: Likewise.
47995         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
47996         * time/alt_digit.c: Likewise.
47997         * time/era.c: Likewise.
47998         * wcsmbs/tst-c16c32-1.c: Likewise.
47999
48000 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48001
48002         * math/libm-test.inc (struct test_sincos_data): New type.
48003         (RUN_TEST_LOOP_sincos): New macro.
48004         (sincos_test_data): New variable.
48005         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
48006
48007 2013-05-16  Richard Henderson  <rth@redhat.com>
48008
48009         * math/atest-exp2.c (LIMB64): New macro.
48010         (CONSTSZ): New macro.
48011         (mp_exp1, mp_exp_m1, mp_log2): New variables.
48012         (hexdig): Move ...
48013         (print_mpn_fp): ... to function scope.
48014         (read_mpn_hex): Remove.
48015         (get_log2): Remove.
48016         (exp2_mpn): Use mp_log2.
48017         (main): Use mp_exp1.
48018
48019 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48020
48021         * math/libm-test.inc: Remove comment about not testing "inexact"
48022         exceptions.
48023         (INEXACT_EXCEPTION): New macro.
48024         (NO_INEXACT_EXCEPTION): Likewise.
48025         (INVALID_EXCEPTION_OK): Update value.
48026         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
48027         (OVERFLOW_EXCEPTION_OK): Likewise.
48028         (UNDERFLOW_EXCEPTION_OK): Likewise.
48029         (IGNORE_ZERO_INF_SIGN): Likewise.
48030         (ERRNO_UNCHANGED): Likewise.
48031         (ERRNO_EDOM): Likewise.
48032         (ERRNO_ERANGE): Likewise.
48033         (test_exceptions): Handle testing "inexact" exceptions.
48034         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
48035         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
48036         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
48037         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
48038         INEXACT_EXCEPTION.
48039         (rint_towardzero_test_data): Likewise.
48040         (rint_downward_test_data): Likewise.
48041         (rint_upward_test_data): Likewise.
48042
48043         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
48044         with OVERFLOW_EXCEPTION.
48045         (exp10_test_data): Likewise.
48046         (exp2_test_data): Likewise.
48047         (expm1_test_data): Likewise.
48048         (lgamma_test_data): Likewise.
48049         (pow_test_data): Likewise.
48050         (tgamma_test_data): Likewise.
48051         (yn_test_data): Remove duplicate test of overflow.
48052
48053         * math/libm-test.inc (struct test_cc_c_data): New type.
48054         (RUN_TEST_LOOP_cc_c): New macro.
48055         (cpow_test_data): New variable.
48056         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
48057
48058         * math/libm-test.inc (struct test_f_L_data): New type.
48059         (RUN_TEST_LOOP_f_L): New macro.
48060         (llrint_test_data): New variable.
48061         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
48062         (llrint_tonearest_test_data): New variable.
48063         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
48064         (llrint_towardzero_test_data): New variable.
48065         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
48066         (llrint_downward_test_data): New variable.
48067         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
48068         (llrint_upward_test_data): New variable.
48069         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
48070         (llround_test_data): New variable.
48071         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
48072
48073 2013-05-13  Peter Collingbourne  <pcc@google.com>
48074
48075         * math/atest-exp2.c (get_log2): Remove const attribute.
48076
48077 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48078
48079         * math/libm-test.inc (struct test_f_l_data): New type.
48080         (RUN_TEST_LOOP_f_l): New macro.
48081         (lrint_test_data): New variable.
48082         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
48083         (lrint_tonearest_test_data): New variable.
48084         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
48085         (lrint_towardzero_test_data): New variable.
48086         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
48087         (lrint_downward_test_data): New variable.
48088         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
48089         (lrint_upward_test_data): New variable.
48090         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
48091         (lround_test_data): New variable.
48092         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
48093
48094 2013-05-15  Peter Collingbourne  <pcc@google.com>
48095
48096         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
48097         (EXTRACT_WORDS64) Use where appropriate.
48098         (INSERT_WORDS64) Likewise.
48099
48100         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
48101         constraints with x constraints.
48102         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
48103
48104         * malloc/obstack.c (_obstack_compat): Add initializer.
48105
48106 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
48107
48108         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
48109         si_trapno and add si_addr_lsb to _sifields.sigfault.
48110         (si_trapno): Remove macro.
48111         (si_addr_lsb): Define new macro.
48112         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
48113
48114 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48115
48116         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
48117         instead of TEST_f_l.
48118         (llrint_test_tonearest): Likewise.
48119         (llrint_test_towardzero): Likewise.
48120         (llrint_test_downward): Likewise.
48121         (llrint_test_upward): Likewise.
48122         (llround_test): Likewise.
48123
48124         * math/libm-test.inc (struct test_f_i_data): Add comment.
48125         (RUN_TEST_LOOP_f_b): New macro.
48126         (RUN_TEST_LOOP_f_b_tg): Likewise.
48127         (finite_test_data): New variable.
48128         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
48129         (isfinite_test_data): New variable.
48130         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48131         (isinf_test_data): New variable.
48132         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48133         (isnan_test_data): New variable.
48134         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48135         (isnormal_test_data): New variable.
48136         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48137         (issignaling_test_data): New variable.
48138         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48139         (signbit_test_data): New variable.
48140         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48141
48142         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
48143         with INVALID_EXCEPTION.
48144         (acosh_test_data): Likewise.
48145         (asin_test_data): Likewise.
48146         (atanh_test_data): Likewise.
48147         (fmod_test_data): Likewise.
48148         (log_test_data): Likewise.
48149         (log10_test_data): Likewise.
48150         (log2_test_data): Likewise.
48151         (pow_test_data): Likewise.
48152         (sqrt_test_data): Likewise.
48153         (y0_test_data): Likewise.
48154         (y1_test_data): Likewise.
48155         (yn_test_data): Likewise.
48156
48157         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
48158         function contents.
48159
48160         * math/libm-test.inc (struct test_ff_i_data): New type.
48161         (RUN_TEST_LOOP_ff_i_tg): New macro.
48162         (isgreater_test_data): New variable.
48163         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48164         (isgreaterequal_test_data): New variable.
48165         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48166         (isless_test_data): New variable.
48167         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48168         (islessequal_test_data): New variable.
48169         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48170         (islessgreater_test_data): New variable.
48171         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48172         (isunordered_test_data): New variable.
48173         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48174
48175 2013-05-14  David S. Miller  <davem@davemloft.net>
48176
48177         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48178
48179 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
48180
48181         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
48182
48183         * math/libm-test.inc (struct test_fF_f1_data): Change type of
48184         extra_test to int.
48185         (struct test_f_i_data): Change type of max_ulp to int.
48186
48187         * math/libm-test.inc (test_ffI_f1_data): New type.
48188         (RUN_TEST_LOOP_ffI_f1): New macro.
48189         (remquo_test_data): New variable.
48190         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
48191
48192         * setjmp/tst-setjmp-fp.c: New file.
48193         * setjmp/Makefile (tests): Add tst-setjmp-fp.
48194         (link-libm): New variable.
48195         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
48196
48197         * math/libm-test.inc (struct test_f_i_data): New type.
48198         (RUN_TEST_LOOP_f_i): New macro.
48199         (RUN_TEST_LOOP_f_i_tg): Likewise.
48200         (fpclassify_test_data): New variable.
48201         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
48202         (ilogb_test_data): New variable.
48203         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
48204
48205         * math/libm-test.inc (scalbln_test): Correct function name in END
48206         call.
48207
48208         * math/libm-test.inc (struct test_f_f1_data): Add comment.
48209         (RUN_TEST_LOOP_fI_f1): New macro.
48210         (frexp_test_data): New variable.
48211         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
48212
48213         * math/libm-test.inc (struct test_fF_f1_data): New type.
48214         (RUN_TEST_LOOP_fF_f1): New macro.
48215         (modf_test_data): New variable.
48216         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
48217
48218         * math/libm-test.inc (struct test_f_f1_data): New type.
48219         (RUN_TEST_LOOP_f_f1): New macro.
48220         (gamma_test_data): New variable.
48221         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48222         (lgamma_test_data): New variable.
48223         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48224
48225 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
48226
48227         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
48228         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
48229         (main): Comment "tls" pseudo-hwcap.
48230
48231 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
48232
48233         * math/libm-test.inc (struct test_fl_f_data): New type.
48234         (RUN_TEST_LOOP_fl_f): New variable.
48235         (scalbln_test_data): New variable.
48236         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
48237
48238         * math/libm-test.inc (struct test_fi_f_data): New type.
48239         (RUN_TEST_LOOP_fi_f): New macro.
48240         (ldexp_test_data): New variable.
48241         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
48242         (scalbn_test_data): New variable.
48243         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
48244
48245         * math/libm-test.inc (struct test_c_f_data): New type.
48246         (RUN_TEST_LOOP_c_f): New macro.
48247         (cabs_test_data): New variable.
48248         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
48249         (carg_test_data): New variable.
48250         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
48251         (cimag_test_data): New variable.
48252         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
48253         (creal_test_data): New variable.
48254         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
48255
48256         * math/libm-test.inc (struct test_if_f_data): New type.
48257         (RUN_TEST_LOOP_if_f): New macro.
48258         (jn_test_data): New variable.
48259         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
48260         (yn_test_data): New variable.
48261         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
48262
48263         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
48264
48265 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48266
48267         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
48268         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
48269
48270 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
48271
48272         * benchtests/Makefile (CPPFLAGS-nonlib): Add
48273         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
48274         (bench-deps): Add bench-timing.h.
48275         * benchtests-bench-skeleton.c: Include bench-timing.h.
48276         (main): Use TIMING_* macros instead of clock_gettime.
48277         * benchtests/bench-timing.h: New file.
48278
48279         [BZ #14582]
48280         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
48281         Renamed from _LIB_VERSION.
48282         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
48283
48284 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
48285
48286         * math/libm-test.inc (struct test_fff_f_data): New type.
48287         (RUN_TEST_LOOP_fff_f): New macro.
48288         (fma_test_data): New variable.
48289         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
48290         (fma_towardzero_test_data): New variable.
48291         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
48292         (fma_downward_test_data): New variable.
48293         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
48294         (fma_upward_test_data): New variable.
48295         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
48296
48297         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
48298         (struct test_c_c_data): New type.
48299         (RUN_TEST_LOOP_c_c): New macro.
48300         (cacos_test_data): New variable.
48301         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
48302         (cacosh_test_data): New variable.
48303         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
48304         (casin_test_data): New variable.
48305         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
48306         (casinh_test_data): New variable.
48307         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
48308         (catan_test_data): New variable.
48309         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
48310         (catanh_test_data): New variable.
48311         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48312         (ccos_test_data): New variable.
48313         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
48314         (ccosh_test_data): New variable.
48315         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
48316         (cexp_test_data): New variable.
48317         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
48318         (clog_test_data): New variable.
48319         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
48320         (clog10_test_data): New variable.
48321         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
48322         (conj_test_data): New variable.
48323         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
48324         (cproj_test_data): New variable.
48325         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
48326         (csin_test_data): New variable.
48327         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
48328         (csinh_test_data): New variable.
48329         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
48330         (csqrt_test_data): New variable.
48331         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
48332         (ctan_test_data): New variable.
48333         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
48334         (ctan_tonearest_test_data): New variable.
48335         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48336         (ctan_towardzero_test_data): New variable.
48337         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48338         (ctan_downward_test_data): New variable.
48339         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48340         (ctan_upward_test_data): New variable.
48341         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48342         (ctanh_test_data): New variable.
48343         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
48344         (ctanh_tonearest_test_data): New variable.
48345         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48346         (ctanh_towardzero_test_data): New variable.
48347         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48348         (ctanh_downward_test_data): New variable.
48349         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48350         (ctanh_upward_test_data): New variable.
48351         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48352         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
48353         of BUILD_COMPLEX.
48354
48355         * math/libm-test.inc (struct test_ff_f_data): New type.
48356         (struct test_ff_f_data_nexttoward): Likewise.
48357         (RUN_TEST_LOOP_2_f): New macro.
48358         (RUN_TEST_LOOP_ff_f): Likewise.
48359         (atan2_test_data): New variable.
48360         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
48361         (copysign_test_data): New variable.
48362         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
48363         (fdim_test_data): New variable.
48364         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
48365         (fmax_test_data): New variable.
48366         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
48367         (fmin_test_data): New variable.
48368         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
48369         (fmod_test_data): New variable.
48370         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
48371         (hypot_test_data): New variable.
48372         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
48373         (nextafter_test_data): New variable.
48374         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
48375         (nexttoward_test_data): New variable.
48376         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
48377         (pow_test_data): New variable.
48378         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
48379         (pow_tonearest_test_data): New variable.
48380         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
48381         (pow_towardzero_test_data): New variable.
48382         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
48383         (pow_downward_test_data): New variable.
48384         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
48385         (pow_upward_test_data): New variable.
48386         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
48387         (remainder_test_data): New variable.
48388         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
48389         (scalb_test_data): New variable.
48390         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
48391         * sysdeps/i386/fpu/libm-test-ulps: Update.
48392
48393 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
48394
48395         * math/libm-test.inc (fma_test): Use max_value instead of local
48396         variable fltmax.
48397         (nextafter_test): Likewise.
48398
48399         * math/libm-test.inc (acos_towardzero_test_data): New variable.
48400         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48401         (acos_downward_test_data): New variable.
48402         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48403         (acos_upward_test_data): New variable.
48404         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48405         (acosh_test_data): New variable.
48406         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
48407         (asin_test_data): New variable.
48408         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
48409         (asin_tonearest_test_data): New variable.
48410         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48411         (asin_towardzero_test_data): New variable.
48412         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48413         (asin_downward_test_data): New variable.
48414         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48415         (asin_upward_test_data): New variable.
48416         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48417         (asinh_test_data): New variable.
48418         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
48419         (atan_test_data): New variable.
48420         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
48421         (atanh_test_data): New variable.
48422         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
48423         (cbrt_test_data): New variable.
48424         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
48425         (ceil_test_data): New variable.
48426         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
48427         (cos_test_data): New variable.
48428         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
48429         (cos_tonearest_test_data): New variable.
48430         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48431         (cos_towardzero_test_data): New variable.
48432         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48433         (cos_downward_test_data): New variable.
48434         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48435         (cos_upward_test_data): New variable.
48436         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48437         (cosh_test_data): New variable.
48438         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
48439         (cosh_tonearest_test_data): New variable.
48440         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48441         (cosh_towardzero_test_data): New variable.
48442         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48443         (cosh_downward_test_data): New variable.
48444         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48445         (cosh_upward_test_data): New variable.
48446         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48447         (erf_test_data): New variable.
48448         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48449         (erfc_test_data): New variable.
48450         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48451         (exp_test_data): New variable.
48452         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48453         (exp_tonearest_test_data): New variable.
48454         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48455         (exp_towardzero_test_data): New variable.
48456         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48457         (exp_downward_test_data): New variable.
48458         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48459         (exp_upward_test_data): New variable.
48460         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48461         (exp10_test_data): New variable.
48462         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48463         (exp2_test_data): New variable.
48464         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48465         (expm1_test_data): New variable.
48466         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48467         (fabs_test_data): New variable.
48468         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48469         (floor_test_data): New variable.
48470         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48471         (j0_test_data): New variable.
48472         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48473         (j1_test_data): New variable.
48474         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48475         (log_test_data): New variable.
48476         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48477         (log10_test_data): New variable.
48478         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48479         (log1p_test_data): New variable.
48480         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48481         (log2_test_data): New variable.
48482         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48483         (logb_test_data): New variable.
48484         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48485         (logb_downward_test_data): New variable.
48486         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48487         (nearbyint_test_data): New variable.
48488         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48489         (rint_test_data): New variable.
48490         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48491         (rint_tonearest_test_data): New variable.
48492         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48493         (rint_towardzero_test_data): New variable.
48494         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48495         (rint_downward_test_data): New variable.
48496         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48497         (rint_upward_test_data): New variable.
48498         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48499         (round_test_data): New variable.
48500         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48501         (sin_test_data): New variable.
48502         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48503         (sin_tonearest_test_data): New variable.
48504         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48505         (sin_towardzero_test_data): New variable.
48506         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48507         (sin_downward_test_data): New variable.
48508         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48509         (sin_upward_test_data): New variable.
48510         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48511         (sinh_test_data): New variable.
48512         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48513         (sinh_tonearest_test_data): New variable.
48514         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48515         (sinh_towardzero_test_data): New variable.
48516         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48517         (sinh_downward_test_data): New variable.
48518         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48519         (sinh_upward_test_data): New variable.
48520         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48521         (sqrt_test_data): New variable.
48522         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48523         (tan_test_data): New variable.
48524         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48525         (tan_tonearest_test_data): New variable.
48526         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48527         (tan_towardzero_test_data): New variable.
48528         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48529         (tan_downward_test_data): New variable.
48530         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48531         (tan_upward_test_data): New variable.
48532         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48533         (tanh_test_data): New variable.
48534         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48535         (tgamma_test_data): New variable.
48536         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48537         (trunc_test_data): New variable.
48538         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48539         (y0_test_data): New variable.
48540         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48541         (y1_test_data): New variable.
48542         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48543         (significand_test_data): New variable.
48544         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48545
48546 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48547
48548         [BZ #12387]
48549         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48550
48551 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48552
48553         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48554
48555 2013-05-10  Andreas Jaeger  <aj@suse.de>
48556
48557         [BZ #15448]
48558         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48559         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48560
48561 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48562
48563         * math/gen-libm-test.pl (adjust_arg): New function.
48564         (special_functions): Handle generating output in both functions
48565         and arrays.
48566         (parse_args): Likewise.
48567         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48568         $in_func argument to parse_args.
48569         * math/libm-test.inc (struct test_f_f_data): New type.
48570         (IF_ROUND_INIT_): New macro.
48571         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48572         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48573         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48574         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48575         (ROUND_RESTORE_): Likewise.
48576         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48577         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48578         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48579         (ROUND_RESTORE_FE_UPWARD): Likewise.
48580         (RUN_TEST_LOOP_f_f): New macro.
48581         (acos_test_data): New variable.
48582         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48583         (acos_tonearest_test_data): New variable.
48584         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48585
48586 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48587
48588         * benchtests/bench-skeleton.c (startup): Fix coding style.
48589
48590 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48591
48592         [BZ #6809]
48593         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48594         negative infinity argument.
48595         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48596         negative infinity argument.
48597         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48598         negative infinity argument.
48599         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48600         domain errors.
48601
48602 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48603
48604         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48605         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48606         * iconv/iconv_prog.c (main): Likewise.
48607         * locale/programs/charmap-dir.c (charmap_readdir)
48608         (fopen_uncompressed): Likewise.
48609         * locale/programs/locfile.c (siblings_uncached)
48610         (write_locale_data): Use lstat64 instead of lstat.
48611         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48612         stat.
48613
48614 2013-05-10  Andreas Jaeger  <aj@suse.de>
48615
48616         [BZ #15395]
48617         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48618         localization.
48619         Include <locale.h>.
48620
48621 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48622
48623         * elf/dl-close.c (_dl_close_worker): Add comments.
48624
48625 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48626
48627         [BZ #15359]
48628         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48629         high part of pi/2.
48630         (__ieee754_rem_pio2l): Update comments.
48631
48632         [BZ #15429]
48633         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48634         high part of pi/2.
48635         (__ieee754_rem_pio2l): Update comments.
48636
48637         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48638         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48639
48640         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48641         M_PI_4l.
48642
48643         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48644         (M_PI_34_LOG10El): Likewise.
48645         (M_PI2_LOG10El): Likewise.
48646         (M_PI4_LOG10El): Likewise.
48647         (M_PI_LOG10El): Likewise.
48648
48649 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48650
48651         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48652
48653 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48654
48655         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48656         (MINUS_ZERO_INIT): Likewise.
48657         (PLUS_INFTY_INIT): Likewise.
48658         (MINUS_INFTY_INIT): Likewise.
48659         (QNAN_VALUE_INIT): Likewise.
48660         (MAX_VALUE_INIT): Likewise.
48661         (MIN_VALUE_INIT): Likewise.
48662         (MIN_SUBNORM_VALUE_INIT): Likewise.
48663         (plus_zero): Initialize with PLUS_ZERO_INIT.
48664         (minus_zero): Initialize with MINUS_ZERO_INIT.
48665         (plus_infty): Initialize with PLUS_INFTY_INIT.
48666         (minus_infty): Initialize with MINUS_INFTY_INIT.
48667         (qnan_value): Initialize with QNAN_VALUE_INIT.
48668         (max_value): Initialize with MAX_VALUE_INIT.
48669         (min_value): Initialize with MIN_VALUE_INIT.
48670         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48671
48672         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48673         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48674         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48675         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48676
48677         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48678         (RUN_TEST_2_f): Likewise.
48679         (RUN_TEST_ff_f): Likewise.
48680         (RUN_TEST_fi_f): Likewise.
48681         (RUN_TEST_fl_f): Likewise.
48682         (RUN_TEST_fff_f): Likewise.
48683         (RUN_TEST_c_f): Likewise.
48684         (RUN_TEST_f_f1): Likewise.
48685         (RUN_TEST_fF_f1): Likewise.
48686         (RUN_TEST_fI_f1): Likewise.
48687         (RUN_TEST_ffI_f1): Likewise.
48688         (RUN_TEST_c_c): Likewise.
48689         (RUN_TEST_cc_c): Likewise.
48690         (RUN_TEST_f_i): Likewise.
48691         (RUN_TEST_f_i_tg): Likewise.
48692         (RUN_TEST_ff_i_tg): Likewise.
48693         (RUN_TEST_f_b): Likewise.
48694         (RUN_TEST_f_b_tg): Likewise.
48695         (RUN_TEST_f_l): Likewise.
48696         (RUN_TEST_f_L): Likewise.
48697         (RUN_TEST_sincos): Likewise.
48698         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48699         whether to show exceptions.  Do not include ");\n" in return
48700         value.
48701         (special_functions): Output call to RUN_TEST_sincos instead of
48702         check_float calls.  Update calls to new_test.
48703         (parse_args): Output call to single RUN_TEST_* macro instead of
48704         check_* calls and other assignments.  Update calls to new_test.
48705
48706         [BZ #2546]
48707         [BZ #2560]
48708         [BZ #5159]
48709         [BZ #15426]
48710         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48711         input to result for tgamma overflow.
48712         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48713         (gamma_coeff): New variable.
48714         (NCOEFF): New macro.
48715         (gamma_positive): New function.
48716         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48717         underflow here.  Use gamma_positive instead of exp (lgamma) for
48718         other arguments.
48719         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48720         (gamma_coeff): New variable.
48721         (NCOEFF): New macro.
48722         (gammaf_positive): New function.
48723         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48724         underflow here.  Use gamma_positive instead of exp (lgamma) for
48725         other arguments.
48726         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48727         (gamma_coeff): New variable.
48728         (NCOEFF): New macro.
48729         (gammal_positive): New function.
48730         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48731         underflow here.  Use gamma_positive instead of exp (lgamma) for
48732         other arguments.
48733         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48734         (gamma_coeff): New variable.
48735         (NCOEFF): New macro.
48736         (gammal_positive): New function.
48737         (__ieee754_gammal_r): Handle positive infinity, overflow and
48738         underflow here.  Handle NaN the same as positive infinity.  Remove
48739         check x < 0xffffffff for negative integers.  Use gamma_positive
48740         instead of exp (lgamma) for other arguments.
48741         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48742         (gamma_coeff): New variable.
48743         (NCOEFF): New macro.
48744         (gammal_positive): New function.
48745         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48746         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48747         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48748         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48749         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48750         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48751         * sysdeps/generic/math_private.h (__gamma_productf): New
48752         prototype.
48753         (__gamma_product): Likewise.
48754         (__gamma_productl): Likewise.
48755         * math/Makefile (libm-calls): Add gamma_product.
48756         * math/libm-test.inc (tgamma_test): Add more tests.
48757         * sysdeps/i386/fpu/libm-test-ulps: Update.
48758         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48759
48760 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48761
48762         * benchtests/bench-skeleton.c (main): Preheat CPU.
48763
48764 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48765
48766         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48767
48768 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48769
48770         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48771         and _dl_skip_args_internal.
48772
48773 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48774
48775         * manual/message.texi (Message Translation): Talk about users.
48776         Message to key mapping impacts design.
48777
48778 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48779
48780         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48781
48782         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48783
48784         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48785         * sysdeps/wordsize-64/glob64.c: ... here.
48786
48787         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48788         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48789         New macros.
48790
48791         * debug/getlogin_r_chk.c: Moved to ...
48792         * login/getlogin_r_chk.c: ... here.
48793         * debug/Makefile (routines): Move getlogin_r_chk to ...
48794         * login/Makefile (routines): ... here.
48795         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48796         * login/Versions (libc: GLIBC_2.4): ... here.
48797
48798         * io/poll.c (__poll): Renamed from poll.
48799         Add libc_hidden_def.
48800         (poll): Define as weak alias.
48801
48802         * debug/ptsname_r_chk.c: Moved to ...
48803         * login/ptsname_r_chk.c: ... here.
48804         * debug/Makefile (routines): Move ptsname_r_chk to ...
48805         * login/Makefile (routines): ... here.
48806         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48807         * login/Versions (libc: GLIBC_2.4): ... here.
48808
48809         * posix/getlogin.c: Moved to ...
48810         * login/getlogin.c: ... here.
48811         * posix/getlogin_r.c: Moved to ...
48812         * login/getlogin_r.c: ... here.
48813         * posix/getlogin_r.c: Moved to ...
48814         * login/getlogin_r.c: ... here.
48815         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48816         * login/Makefile (routines): ... here.
48817         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48818         * login/Versions (libc: GLIBC_2.0): ... here.
48819
48820         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48821         (setrlimit): Define as weak alias.
48822
48823         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48824         Call __ names for open, ftruncate, and close.
48825         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48826         (truncate): Define as weak alias.
48827
48828 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48829
48830         * math/gen-libm-test.pl (parse_args): Initialize x before each
48831         test of frexp, modf and remquo.
48832
48833         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48834         test signgam value.
48835
48836 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48837
48838         [BZ #15418]
48839         [BZ #15419]
48840         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48841         internal tests.
48842         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48843
48844 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48845
48846         * elf/dl-writev.h: New file.
48847         * elf/dl-misc.c: Include it.
48848         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48849         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48850
48851 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48852
48853         * math/libm-test.inc (noXFails): Remove variable.
48854         (noXPasses): Likewise.
48855         (BUILD_COMPLEX_INT): Remove macro.
48856         (print_screen): Remove xfail argument.
48857         (print_screen_max_error): Likewise.
48858         (update_stats): Likewise.
48859         (print_max_error): Likewise.  Update calls to other affected
48860         functions.
48861         (print_complex_max_error): Likewise.
48862         (test_single_exception): Update calls to print_screen.
48863         (test_single_errno): Likewise.
48864         (check_float_internal): Remove xfail argument.  Update calls to
48865         other affected functions.
48866         (check_float): Likewise.
48867         (check_complex): Likewise.
48868         (check_int): Likewise.
48869         (check_long): Likewise.
48870         (check_bool): Likewise.
48871         (check_longlong): Likewise.
48872         (main): Don't print noXFails and noXPasses.
48873         * math/gen-libm-test.pl (top level): Don't mention expected
48874         failure handling in comment.
48875         (new_test): Don't handle expected failures.
48876         (parse_args): Don't mention expected failure handling in comment.
48877         (generate_testfile): Don't handle expected failures.
48878         (parse_ulps): Likewise.
48879         (print_ulps_file): Likewise.
48880         (get_failure): Remove function.
48881         (output_test): Don't handle expected failures.
48882         * make/README.libm-test: Don't mention expected failure handling.
48883
48884         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48885         (minus_zero): Likewise.
48886         (plus_infty): Likewise.
48887         (minus_infty): Likewise.
48888         (qnan_value): Likewise.
48889         (max_value): Likewise.
48890         (min_value): Likewise.
48891         (min_subnorm_value): Likewise.
48892         (initialize): Do not initialize those variables dynamically.
48893
48894 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48895
48896         * io/open.c (__open_2): Moved to ...
48897         * io/open_2.c: ... this new file.
48898         * io/open64.c (__open64_2): Moved to ...
48899         * io/open64_2.c: ... this new file.
48900         * io/openat.c (__openat_2): Moved to ...
48901         * io/openat_2.c: ... this new file.
48902         * io/openat64.c (__openat64_2): Moved to ...
48903         * io/openat64_2.c: ... this new file.
48904         * io/Makefile (routines): Add them.
48905         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
48906         * sysdeps/unix/sysv/linux/open_2.c: File removed.
48907         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
48908         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
48909         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
48910         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
48911         (__openat64): Add hidden_ver.
48912         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
48913         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
48914
48915         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
48916         Separately conditionalize setting of GLRO(dl_sysinfo) so
48917         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
48918         as well, but the actual setting is only under [NEED_DL_SYSINFO].
48919
48920 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48921
48922         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
48923         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
48924         definition.
48925         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
48926         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48927         (_libc_vdso_platform_setup): Add __vdso_time initialization.
48928         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
48929         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
48930
48931 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
48932
48933         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
48934         test signgam value.
48935
48936         * math/libm-test.inc (hypot_test): Do not use
48937         IGNORE_ZERO_INF_SIGN.
48938
48939 2013-05-03  Andreas Jaeger  <aj@suse.de>
48940
48941         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
48942         Linux 3.9.
48943         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
48944         (PF_MAX): Adjust for VSOCK change.
48945
48946 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48947
48948         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48949
48950 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
48951
48952         [BZ #15264]
48953         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
48954         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
48955         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
48956
48957 2013-05-02  David S. Miller  <davem@davemloft.net>
48958
48959         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48960
48961 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
48962
48963         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
48964
48965 2013-05-01  Roland McGrath  <roland@hack.frob.com>
48966
48967         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
48968
48969 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
48970
48971         [BZ #14952]
48972         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
48973         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48974         Use __attribute__ ((__gnu_inline__)).
48975         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48976         Don't use __attribute__ ((__gnu_inline__)).
48977
48978 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
48979
48980         [BZ #15423]
48981         * math/s_catan.c (__catan): Handle small real or imaginary part of
48982         input specially to avoid spurious underflow.
48983         * math/s_catanf.c (__catanf): Likewise.
48984         * math/s_catanh.c (__catanh): Likewise.
48985         * math/s_catanhf.c (__catanhf): Likewise.
48986         * math/s_catanhl.c (__catanhl): Likewise.
48987         * math/s_catanl.c (__catanl): Likewise.
48988         * math/libm-test.inc (catan_test): Add more tests.
48989         (catanh_test): Likewise.
48990         * sysdeps/i386/fpu/libm-test-ulps: Update.
48991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48992
48993 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48994
48995         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48996
48997 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
48998
48999         [BZ #15416]
49000         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
49001         accurately for denominator in atan2.
49002         * math/s_catanf.c (__catanf): Likewise.
49003         * math/s_catanh.c (__catanh): Likewise.
49004         * math/s_catanhf.c (__catanhf): Likewise.
49005         * math/s_catanhl.c (__catanhl): Likewise.
49006         * math/s_catanl.c (__catanl): Likewise.
49007         * math/libm-test.inc (catan_test): Add more tests.
49008         (catanh_test): Likewise.
49009         * sysdeps/i386/fpu/libm-test-ulps: Update.
49010         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49011
49012 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
49013
49014         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
49015
49016         * benchtests/Makefile (bench): Remove slow benchmarks.
49017         * benchtests/atan-inputs: Add slow benchmark inputs.
49018         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
49019         (BENCH_FUNC): Accept variant offset.
49020         (VARIANT): Define.
49021         * benchtests/bench-skeleton.c (main): Run benchmark for each
49022         variant.
49023         * benchtests/cos-inputs: Add slow benchmark inputs.
49024         * benchtests/exp-inputs: Likewise.
49025         * benchtests/pow-inputs: Likewise.
49026         * benchtests/sin-inputs: Likewise.
49027         * benchtests/slowatan-inputs: Remove.
49028         * benchtests/slowatan.c: Remove.
49029         * benchtests/slowcos-inputs: Remove.
49030         * benchtests/slowcos.c: Remove.
49031         * benchtests/slowexp-inputs: Remove.
49032         * benchtests/slowexp.c: Remove.
49033         * benchtests/slowpow-inputs: Remove.
49034         * benchtests/slowpow.c: Remove.
49035         * benchtests/slowsin-inputs: Remove.
49036         * benchtests/slowsin.c: Remove.
49037         * benchtests/slowtan-inputs: Remove.
49038         * benchtests/slowtan.c: Remove.
49039         * benchtests/tan-inputs: Add slow benchmark inputs.
49040         * scripts/bench.pl: Parse comments and directives.
49041
49042         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
49043         in CPPFLAGS.
49044         ($(objpfx)bench-%.c): Remove *-ITER.
49045         * benchtests/bench-modf.c: Remove definition of ITER.
49046         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
49047         (main): Loop for DURATION seconds instead of fixed number of
49048         iterations.
49049         * scripts/bench.pl: Don't expect iterations in parameters.
49050
49051 2013-04-29  Roland McGrath  <roland@hack.frob.com>
49052
49053         * io/fchdir.c (__fchdir): Renamed from fchdir.
49054         (fchdir): Define as weak alias.
49055
49056 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49057
49058         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
49059         (ERRNO_EDOM): Likewise.
49060         (ERRNO_ERANGE): Likewise.
49061         (noErrnoTests): New variable.
49062         (init_max_error): Set errno to 0.
49063         (test_single_errno): New function.
49064         (test_errno): Likewise.
49065         (check_float_internal): Call test_errno.  Set errno to 0.
49066         (check_complex): Refer to errno tests in comment.
49067         (check_int): Call test_errno.  Set errno to 0.
49068         (check_long): Likewise.
49069         (check_bool): Likewise.
49070         (check_longlong): Likewise.
49071         (cos_test): Use ERRNO_* flags for errno tests instead of
49072         check_int.
49073         (expm1_test): Likewise.
49074         (fmod_test): Likewise.
49075         (ilogb_test): Likewise.
49076         (lgamma_test): Likewise.
49077         (pow_test): Likewise.
49078         (remainder_test): Likewise.
49079         (sin_test): Likewise.
49080         (tan_test): Likewise.
49081         (yn_test): Likewise.
49082         (initialize): Set errno to 0.
49083         (main): Print number of errno tests.
49084         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
49085
49086 2013-04-29  Andreas Jaeger  <aj@suse.de>
49087
49088         [BZ #15084]
49089         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
49090         and RES_USEVC.
49091
49092         [BZ #15085]
49093         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
49094         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
49095         unimplemented.
49096
49097         [BZ #15380]
49098         * stdlib/random.c (__initstate): Return NULL if
49099         __initstate fails.
49100
49101         [BZ #15086]
49102         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
49103         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
49104         RES_SNGLKUPREOP.
49105
49106 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49107
49108         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49109
49110 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49111
49112         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
49113         of individual tests.
49114         (casin_test): Likewise.
49115         (casinh_test): Likewise.
49116
49117 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
49118
49119         [BZ #15409]
49120         * math/s_catan.c (__catan): Handle arguments with large real or
49121         imaginary part separately without squaring.
49122         * math/s_catanf.c (__catanf): Likewise.
49123         * math/s_catanh.c (__catanh): Likewise.
49124         * math/s_catanhf.c (__catanhf): Likewise.
49125         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49126         and redefine.
49127         (__catanhl): Handle arguments with large real or imaginary part
49128         separately without squaring.
49129         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49130         and redefine.
49131         (__catanl): Handle arguments with large real or imaginary part
49132         separately without squaring.
49133         * math/libm-test.inc (catan_test): Add more tests.
49134         (catanh_test): Likewise.
49135         * sysdeps/i386/fpu/libm-test-ulps: Update.
49136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49137
49138 2013-04-27  Andreas Jaeger  <aj@suse.de>
49139
49140         [BZ #15007]
49141         * stdlib/stdlib.h: Update guards for qecvt.
49142         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
49143         <stdlib.h>.
49144
49145 2013-04-27  Allan McRae  <allan@archlinux.org>
49146
49147         * sysdeps/i386/fpu/libm-test-ulps: Update.
49148
49149 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
49150
49151         [BZ #15406]
49152         * math/s_catan.c: Include <float.h>.
49153         (__catan): Ensure underflow exception occurs for underflowed
49154         result.
49155         * math/s_catanf.c: Include <float.h>.
49156         (__catanf): Ensure underflow exception occurs for underflowed
49157         result.
49158         * math/s_catanh.c: Include <float.h>.
49159         (__catanh): Ensure underflow exception occurs for underflowed
49160         result.
49161         * math/s_catanhf.c: Include <float.h>.
49162         (__catanhf): Ensure underflow exception occurs for underflowed
49163         result.
49164         * math/s_catanhl.c: Include <float.h>.
49165         (__catanhl): Ensure underflow exception occurs for underflowed
49166         result.
49167         * math/s_catanl.c: Include <float.h>.
49168         (__catanl): Ensure underflow exception occurs for underflowed
49169         result.
49170         * math/libm-test.inc (catan_test): Add more tests.
49171         (catanh_test): Likewise.
49172
49173         [BZ #15405]
49174         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
49175         underflowed result.
49176         * math/s_ccoshf.c (__ccoshf): Likewise.
49177         * math/s_ccoshl.c (__ccoshl): Likewise.
49178         * math/s_csin.c (__csin): Likewise.
49179         * math/s_csinf.c (__csinf): Likewise.
49180         * math/s_csinh.c (__csinh): Likewise.
49181         * math/s_csinhf.c (__csinhf): Likewise.
49182         * math/s_csinhl.c (__csinhl): Likewise.
49183         * math/s_csinl.c (__csinl): Likewise.
49184         * math/libm-test.inc (ccos_test): Add more tests.
49185         (ccosh_test): Likewise.
49186         (csin_test): Likewise.
49187         (csinh_test): Likewise.
49188
49189 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49190
49191         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
49192         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
49193         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
49194         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
49195         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
49196         powerpc/power5+/fpu folders.
49197         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
49198
49199
49200 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
49201
49202         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
49203
49204 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
49205
49206         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
49207         additions to variable.
49208         [$(config-machine) = x86_64] (modules-names): Likewise.
49209         ($(objpfx)tst-audit3): Remove dependency.
49210         ($(objpfx)tst-audit3.out): Likewise.
49211         ($(objpfx)tst-audit4): Likewise.
49212         ($(objpfx)tst-audit4.out): Likewise.
49213         ($(objpfx)tst-audit5): Likewise.
49214         ($(objpfx)tst-audit5.out): Likewise.
49215         ($(objpfx)tst-audit6): Likewise.
49216         ($(objpfx)tst-audit6.out): Likewise.
49217         ($(objpfx)tst-audit7): Likewise.
49218         ($(objpfx)tst-audit7.out): Likewise.
49219         (tst-audit3-ENV): Remove variable.
49220         (tst-audit4-ENV): Likewise.
49221         (tst-audit5-ENV): Likewise.
49222         (tst-audit6-ENV): Likewise.
49223         (tst-audit7-ENV): Likewise.
49224         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
49225         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
49226         addition to variable.
49227         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
49228         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
49229         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
49230         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
49231         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
49232         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
49233         tst-audit3, tst-audit4 and tst-audit5.
49234         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
49235         tst-audit6 and tst-audit7.
49236         [$(subdir) = elf] (modules-names): Add audit modules for those
49237         tests.
49238         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
49239         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
49240         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
49241         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
49242         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
49243         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
49244         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
49245         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
49246         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
49247         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
49248         [$(subdir) = elf] (tst-audit3-ENV): New variable.
49249         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
49250         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
49251         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
49252         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
49253         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
49254         Likewise.
49255         [$(subdir) = elf && $(config-cflags-avx) = yes]
49256         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
49257         [$(subdir) = elf && $(config-cflags-avx) = yes]
49258         (CFLAGS-tst-auditmod4a.c): Likewise.
49259         [$(subdir) = elf && $(config-cflags-avx) = yes]
49260         (CFLAGS-tst-auditmod4b.c): Likewise.
49261         [$(subdir) = elf && $(config-cflags-avx) = yes]
49262         (CFLAGS-tst-auditmod6b.c): Likewise.
49263         [$(subdir) = elf && $(config-cflags-avx) = yes]
49264         (CFLAGS-tst-auditmod6c.c): Likewise.
49265         [$(subdir) = elf && $(config-cflags-avx) = yes]
49266         (CFLAGS-tst-auditmod7b.c): Likewise.
49267         * elf/tst-audit3.c: Move to ...
49268         * sysdeps/x86_64/tst-audit3.c: ... here.
49269         * elf/tst-audit4.c: Move to ...
49270         * sysdeps/x86_64/tst-audit4.c: ... here.
49271         * elf/tst-audit5.c: Move to ...
49272         * sysdeps/x86_64/tst-audit5.c: ... here.
49273         * elf/tst-audit6.c: Move to ...
49274         * sysdeps/x86_64/tst-audit6.c: ... here.
49275         * elf/tst-audit7.c: Move to ...
49276         * sysdeps/x86_64/tst-audit7.c: ... here.
49277         * elf/tst-auditmod3a.c: Move to ...
49278         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
49279         * elf/tst-auditmod3b.c: Move to ...
49280         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
49281         * elf/tst-auditmod4a.c: Move to ...
49282         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
49283         * elf/tst-auditmod4b.c: Move to ...
49284         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
49285         * elf/tst-auditmod5a.c: Move to ...
49286         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
49287         * elf/tst-auditmod5b.c: Move to ...
49288         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
49289         * elf/tst-auditmod6a.c: Move to ...
49290         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
49291         * elf/tst-auditmod6b.c: Move to ...
49292         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
49293         * elf/tst-auditmod6c.c: Move to ...
49294         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
49295         * elf/tst-auditmod7a.c: Move to ...
49296         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
49297         * elf/tst-auditmod7b.c: Move to ...
49298         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
49299
49300 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
49301
49302         [BZ #15366]
49303         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
49304         define unconditionally.
49305         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
49306         define unconditionally.
49307         (INT8_C, INT16_C, etc.): Likewise.
49308
49309 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
49310
49311         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
49312         __ehdr_start with hidden visibility.
49313
49314         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
49315
49316 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
49317
49318         * math/libm-test.inc (cos_test): Use accurate hex constants.
49319         (sincost_test): Likewise.
49320
49321 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
49322
49323         * math/libm-test.inc (catan_test): Add more tests.
49324         (catanh_test): Likewise.
49325
49326         * math/s_catanf.c (__catanf): Use suffixed floating-point
49327         constants.
49328         * math/s_catanhf.c (__catanhf): Likewise.
49329         * math/s_catanhl.c (__catanhl): Likewise.
49330         * math/s_catanl.c (__catanl): Likewise.
49331
49332         [BZ #15394]
49333         * math/s_catan.c (__catan): Calculate imaginary part of result
49334         with log1p not log unless computing log of number close to 0.
49335         * math/s_catanf.c (__catanf): Likewise.
49336         * math/s_catanl.c (__catanl): Likewise.
49337         * math/s_catanh.c (__catanh): Calculate real part of result with
49338         log1p not log unless computing log of number close to 0.
49339         * math/s_catanhf.c (__catanhf): Likewise.
49340         * math/s_catanhl.c (__catanhl): Likewise.
49341         * math/libm-test.inc (catan_test): Add more tests.
49342         (catanh_test): Likewise.
49343         * sysdeps/i386/fpu/libm-test-ulps: Update.
49344         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49345
49346 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
49347
49348         * benchtests/Makefile: Mention files in which fast and slow
49349         paths of math functions are implemented.
49350
49351 2013-04-23  Roland McGrath  <roland@hack.frob.com>
49352
49353         * sysdeps/posix/timespec_get.c: New file.
49354
49355 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49356
49357         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
49358         POWER.
49359         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
49360         for POWER.
49361         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
49362         powerpc/power5/fpu folders.
49363         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
49364         * benchtests/Makefile: Add modf testcase.
49365         * benchtests/bench-modf.c: New file: Benchmark test for mo
49366
49367 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49368
49369         [BZ #14888]
49370         * time/Makefile (tests): Add tst-strptime-whitespace.
49371         * time/strptime_l.c (get_number): Use ISSPACE.
49372         (__strptime_internal): Likewise.
49373         * time/tst-strptime-whitespace.c: New test case.
49374
49375 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
49376
49377         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
49378         member.
49379         (_nss_files_init): Set it here.
49380
49381 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
49382
49383         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
49384         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
49385         unsigned.
49386
49387 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
49388
49389         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
49390
49391 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49392
49393         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
49394         size just once.
49395
49396 2013-04-21  David S. Miller  <davem@davemloft.net>
49397
49398         * po/ru.po: Update Russion translation from translation project.
49399
49400 2013-04-17  Adam Conrad  <adconrad@0c3.net>
49401
49402         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
49403         and setfsgid.
49404
49405 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
49406
49407         * configure.in: Remove i386 configure warning. Remove i386 case.
49408         * configure: Regenerate.
49409         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
49410         Add example to error message.
49411         * sysdeps/i386/configure: Regenerate.
49412
49413 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49414
49415         * benchtests/Makefile (bench): Add cos, tan, slowcos and
49416         slowtan.
49417         * benchtests/cos-inputs: New file.
49418         * benchtests/slowcos-inputs: New file.
49419         * benchtests/slowcos.c: New file.
49420         * benchtests/slowtan-inputs: New file.
49421         * benchtests/slowtan.c: New file.
49422         * benchtests/tan-inputs: New file.
49423
49424 2013-04-16  Roland McGrath  <roland@hack.frob.com>
49425
49426         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
49427         considered kosher.
49428
49429 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
49430
49431         * benchtests/Makefile: Include cppflags-iterator.mk to add
49432         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
49433
49434         * Makefile.in (bench-clean): New target.
49435         * benchtests/Makefile (bench-clean): Likewise.
49436
49437 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
49438
49439         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
49440
49441 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49442
49443         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49444
49445 2013-04-15  Andreas Schwab  <schwab@suse.de>
49446
49447         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49448         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49449         * nscd/pwdcache.c (cache_addpw): Likewise.
49450         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49451         more than recsize.
49452
49453 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49454
49455         * benchtests/Makefile (bench): Write all output to
49456         bench-out.tmp together.
49457
49458 2013-04-15  Andreas Schwab  <schwab@suse.de>
49459
49460         * nscd/nscd.c (main): Don't fork again after closing files.
49461
49462 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49463
49464         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49465
49466         * benchtests/Rules (bench-deps): Collect dependencies into a
49467         single variable.  Add Makefile to dependencies.
49468         ($(objpfx)bench-%.c): Depend on bench-deps.
49469
49470 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49471             Xavier Roche  <roche+kml2@exalead.com>
49472
49473         [BZ #15361]
49474         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49475         just that it's a file descriptor.
49476         * manual/llio.texi (Synchronizing AIO Operations): Update description
49477         for EBADF error from aio_fsync.
49478
49479 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49480
49481         * Rules (bench): Move target definition...
49482         * benchtests/Makefile: ... here.
49483
49484 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49485
49486         * math/libm-test.inc (cos_test): Fix PI/2 test.
49487         (sincos_test): Likewise.
49488         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49489         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49490
49491 2013-04-11  Andreas Schwab  <schwab@suse.de>
49492
49493         [BZ #13988]
49494         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49495         accept exponent character only when digits were seen.
49496         * stdio-common/Makefile (tests): Add bug26.
49497         * stdio-common/bug26.c: New file.
49498
49499         [BZ #14293]
49500         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49501         non-freeable.
49502
49503 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49504
49505         * Makeconfig (rtld-prefix): Define built linker prefix.
49506         * Rules (run-bench): Use it.
49507         * math/Makefile (run-regen-ulps): Likewise.
49508
49509         * Rules (bench): Remove eval.
49510
49511 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49512             Roland McGrath  <roland@hack.frob.com>
49513             Ondrej Bilka  <neleai@seznam.cz>
49514
49515         [BZ #15346]
49516         * time/getdate.c: Include ctype.h and alloca.h.
49517         (__getdate_r): Trim leading and trailing spaces of input.
49518         * time/tst-getdate.c (tests): Add tests with leading and
49519         trailing spaces.
49520
49521 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49522
49523         [BZ #14280]
49524         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49525         when computing value.
49526
49527 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49528
49529         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49530         Use testrun.sh to run libm tests.
49531
49532         [BZ #15309]
49533         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49534
49535 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49536
49537         [BZ #15264]
49538         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49539
49540 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49541
49542         * Makefile.in (regen-ulps): New target.
49543         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49544         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49545         [ifneq (no,$(PERL)] (regen-ulps): New target.
49546         [ifeq (no,$(PERL)] (regen-ulps): New target.
49547         * math/libm-test.inc (ulps_file_name): Define.
49548         (output_dir): New variable.
49549         (options): Add "output-dir" option.
49550         (parse_opt): Handle 'o' case.
49551         (main): If output_dir is non-NULL use it as a prefix
49552         otherwise use "".
49553         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49554
49555 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49556
49557         [BZ #10060, #10062]
49558         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49559         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49560         fail configure if __sync_val_compare_and_swap is not inlined.
49561         * sysdeps/i386/configure: Regenerate.
49562         * configure.in: Build for i686 when configured for i386.
49563         * configure: Regenerate.
49564         * README: Remove i386 reference.
49565
49566 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49567
49568         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49569         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49570
49571 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49572
49573         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49574         (lmsnanval): New variables.
49575         (F): Add conversion tests.
49576         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49577         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49578
49579         * stdio-common/tstdiomisc.c (F): Properly collect individual
49580         tests' results.
49581
49582         [BZ #14686, #15336]
49583         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49584         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49585         Instead, use input NaN values or generate a qNaN by arithmetic
49586         operation.  Also fix bugs to comply with the standard.
49587         * math/libm-test.inc (remainder_test): Add more tests.
49588
49589         [BZ #15335, #15342]
49590         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49591         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49592         input NaN values or generate a qNaN by arithmetic operation.
49593
49594         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49595         unreachable code.
49596
49597         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49598         definitions.
49599
49600 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49601
49602         [BZ #14478]
49603         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49604         underflowed result.
49605         * math/s_cexpf.c (__cexpf): Likewise.
49606         * math/s_cexpl.c (__cexpl): Likewise.
49607         * math/libm-test.inc (cexp_test): Add more tests.
49608
49609 2013-04-03  Andreas Schwab  <schwab@suse.de>
49610
49611         [BZ #15330]
49612         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49613         order arrays from heap if bigger than alloca cutoff.
49614
49615 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49616
49617         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49618         (SNAN_TESTS_double): Refer to GCC PR56831.
49619         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49620         GCC PR56828.
49621
49622 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49623
49624         * Rules (bench): Move bench.out after the run is complete.
49625
49626         * Rules (bench): Echo currently running benchmark.
49627
49628         * benchtests/Makefile (bench): Add atan and slowatan.
49629         * benchtests/atan-inputs: New file.
49630         * benchtests/slowatan-inputs: New file.
49631         * benchtests/slowatan.c: New file.
49632
49633         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49634         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49635         its value.
49636
49637         [BZ #15305]
49638         * sysdeps/unix/sysv/linux/kernel-features.h
49639         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49640         __ASSUME_XFS_RESTRICTED_CHOWN.
49641         * sysdeps/unix/sysv/linux/pathconf.c
49642         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49643         Save and restore errno.
49644
49645 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49646
49647         [BZ #15327]
49648         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49649         arguments using __kernel_casinh.
49650         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49651         arguments using __kernel_casinhf.
49652         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49653         arguments using __kernel_casinhl.
49654         * math/libm-test.inc (cacosh_test): Add more tests.
49655         * sysdeps/i386/fpu/libm-test-ulps: Update.
49656         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49657
49658 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49659
49660         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49661         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49662
49663         * bench/Makefile (bench): Add sin and slowsin.
49664         * benchtests/sin-inputs: New file.
49665         * benchtests/slowsin-inputs: New file.
49666         * benchtests/slowsin.c: New file.
49667
49668         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49669         (bench): Add slowexp and slowpow.
49670         (exp-ITER): Increase iterations.
49671         (pow-ITER): Likewise.
49672         * benchtests/exp-inputs: Change input.
49673         * benchtests/pow-inputs: Likewise.
49674         * benchtests/slowexp-inputs: New file.
49675         * benchtests/slowexp.c: New file.
49676         * benchtests/slowpow-inputs: New file.
49677         * benchtests/slowpow.c: New file.
49678
49679 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49680
49681         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49682         instructions.
49683         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49684         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49685         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49686         * benchtests/Makefile: Add rint benchtest.
49687         * benchtests/rint-inputs: Input for rint benchtest.
49688
49689 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49690
49691         * Versions.def (libm): Add GLIBC_2.18.
49692         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49693         hidden libm prototypes.
49694         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49695         * math/Makefile (libm-calls): Add s_issignaling.
49696         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49697         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49698         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49699         declaration.
49700         * math/math.h [__USE_GNU] (issignaling): New macro.
49701         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49702         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49703         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49704         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49705         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49706         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49707         * manual/arith.texi (issignaling): New section.
49708         * manual/libm-err-tab.pl (@all_functions): Update comment.
49709         * math/gen-libm-test.pl (parse_args): Apply special handling for
49710         issignaling.
49711         * math/libm-test.inc (print_float, issignaling_test): New
49712         functions.
49713         (check_float_internal): Add issignaling checks.
49714         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49715         default definition.
49716         * sysdeps/powerpc/math-tests.h: New file.
49717         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49718         tests.
49719         * math/test-snan.c (TEST_FUNC): Likewise.
49720
49721 2013-03-30  David S. Miller  <davem@davemloft.net>
49722
49723         * po/de.po: Update from translation team.
49724
49725 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49726
49727         [BZ #10357]
49728         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49729         imaginary part less than 1.0 and real part less than 0.5
49730         specially.
49731         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49732         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49733         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49734         (cacos_test): Add more tests.
49735         (casin_test): Likewise.
49736         (casinh_test): Likewise.
49737         * sysdeps/i386/fpu/libm-test-ulps: Update.
49738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49739
49740 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49741
49742         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49743         ONE with its value.
49744
49745         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49746         (__pow_mp): Replace ONE and MONE with their values.
49747         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49748         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49749         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49750         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49751         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49752         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49753
49754         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49755
49756         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49757         (__pow_mp): Replace ZERO and MZERO with their values.
49758         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49759         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49760         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49761         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49762         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49763         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49764         (__sqr): Likewise.
49765
49766         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49767
49768         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49769
49770 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49771
49772         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49773         Declare with __attribute__ ((weak)).
49774         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49775         Call __call_tls_dtors only if it's not NULL.
49776
49777 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49778
49779         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49780         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49781         magic __ehdr_start linker symbol if it's defined.
49782         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49783         them up here if it was already done.
49784
49785         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49786         (_dl_aux_init): Use const in cast when setting it.
49787         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49788         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49789         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49790
49791         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49792         Declare them here.
49793         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49794         * csu/libc-tls.c: Nor here.
49795         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49796
49797         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49798         (__libc_message): Never call vsyslog.
49799
49800 2013-03-28  Alan Modra  <amodra@gmail.com>
49801
49802         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49803         Define as empty.
49804         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49805         Likewise.
49806
49807 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49808
49809         [BZ #15214]
49810         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49811         underflow.
49812         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49813
49814 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49815
49816         [BZ #15304]
49817         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49818         Don't add gid passed as argument.
49819
49820         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49821
49822 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49823
49824         [BZ #15307]
49825         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49826         imaginary part between 1.0 and 1.5 and real part less than 0.5
49827         specially.
49828         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49829         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49830         * math/libm-test.inc (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-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49837
49838         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49839         constants.
49840         (norm): Likewise.
49841         (denorm): Likewise.
49842         (__dbl_mp): Likewise.
49843         (add_magnitudes): Likewise.
49844         (sub_magnitudes): Likewise.
49845         (__add): Likewise.
49846         (__sub): Likewise.
49847         (__mul): Likewise.
49848         (__sqr): Likewise.
49849         (__inv): Likewise.
49850         (__dvd): Likewise.
49851
49852         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49853         commented code.
49854         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49855         (__dubcos): Likewise.
49856         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49857         (__ieee754_acos): Likewise.
49858         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49859         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49860         (__exp1): Likewise.
49861         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49862         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49863         (log1): Likewise.
49864         (my_log2): Likewise.
49865         (checkint): Likewise.
49866         * sysdeps/ieee754/dbl-64/e_remainder.c
49867         (__ieee754_remainder): Likewise.
49868         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49869         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49870         (bsloww): Likewise.
49871         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49872
49873         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49874         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49875         MANTISSA_STORE_T to store computations on mantissa.  Use
49876         macros for rounding and division.
49877         (denorm): Likewise.
49878         (__dbl_mp): Likewise.
49879         (add_magnitudes): Likewise.
49880         (sub_magnitudes): Likewise.
49881         (__mul): Likewise.
49882         (__sqr): Likewise.
49883         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49884         powers of two in terms of TWOPOW macro.
49885         (mp_no): Make type of mantissa as MANTISSA_T.
49886         [!RADIXI]: Define RADIXI.
49887         [!TWO52]: Define TWO52.
49888         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49889
49890 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49891
49892         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49893         llroundl symbol when building for PPC32.
49894
49895 2013-03-24  Mark H Weaver  <mhw@netris.org>
49896
49897         * manual/arith.texi (Normalization Functions): Fix prototypes for
49898         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49899
49900 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49901
49902         [BZ #13889]
49903         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
49904         high value to check if expl overflow.
49905         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
49906         to check for underflow and overflow.
49907         * math/libm-test.inc: Add exp test.
49908
49909 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
49910
49911         [BZ #11120]
49912         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
49913         with NOT_IN_libc.
49914
49915 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49916
49917         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
49918         symbol.
49919
49920 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
49921
49922         * math/gen-libm-test.pl (parse_args, special_functions): Properly
49923         wrap blocks consisting of several statements.
49924
49925         * sysdeps/generic/math-tests.h: New file.
49926         * sysdeps/i386/fpu/math-tests.h: Likewise.
49927         * math/test-snan.c: Include it.
49928         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
49929
49930 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49931
49932         [BZ #15285]
49933         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
49934         (__ieee754_j0l): Do not improve calculations using cos of twice
49935         input for inputs above LDBL_MAX / 2.0L.
49936         (__ieee754_y0l): Likewise.
49937         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
49938         (__ieee754_j1l): Do not improve calculations using cos of twice
49939         input for inputs above LDBL_MAX / 2.0L.
49940         (__ieee754_y1l): Likewise.
49941         * math/libm-test.inc (j0_test): Add another test.
49942         (j1_test): Likewise.
49943         (y0_test): Likewise.
49944         (y1_test): Likewise.
49945         * sysdeps/i386/fpu/libm-test-ulps: Update.
49946
49947 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49948
49949         * Rules ($(objpfx)bench-%.c): Include code from a C source
49950         file.
49951
49952 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49953
49954         [BZ #15287]
49955         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49956         imaginary part 1.0 and real part less than 0.5 specially.
49957         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49958         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49959         * math/libm-test.inc (cacos_test): Add more tests.
49960         (casin_test): Likewise.
49961         (casinh_test): Likewise.
49962         * sysdeps/i386/fpu/libm-test-ulps: Update.
49963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49964
49965 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49966
49967         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
49968         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
49969
49970 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
49971
49972         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
49973         * config.make.in (config-cflags-sse4): Remove variable.
49974         (config-cflags-avx): Likewise.
49975         (config-cflags-sse2avx): Likewise.
49976         (config-cflags-novzeroupper): Likewise.
49977         (config-asflags-i686): Likewise.
49978         (have-mfma4): Likewise.
49979         (have-as-vis3): Likewise.
49980         (MIG): Likewise.
49981         * configure.in (MIG): Do not AC_SUBST.
49982         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
49983         (libc_cv_cc_sse4): Do not AC_SUBST.
49984         (libc_cv_cc_avx): Likewise.
49985         (libc_cv_cc_sse2avx): Likewise.
49986         (libc_cv_cc_novzeroupper): Likewise.
49987         (libc_cv_cc_fma4): Likewise.
49988         (libc_cv_as_i686): Likewise.
49989         (libc_cv_sparc_as_vis3): Likewise.
49990         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
49991         LIBC_CONFIG_VAR.
49992         (config-asflags-i686): Likewise.
49993         (config-cflags-avx): Likewise.
49994         (config-cflags-sse2avx): Likewise.
49995         (have-mfma4): Likewise.
49996         (config-cflags-novzeroupper): Likewise.
49997         * sysdeps/mach/configure.in (MIG): Likewise.
49998         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
49999         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
50000         LIBC_CONFIG_VAR.
50001         (config-cflags-avx): Likewise.
50002         (config-cflags-sse2avx): Likewise.
50003         (have-mfma4): Likewise.
50004         (config-cflags-novzeroupper): Likewise.
50005         * configure: Regenerated.
50006         * sysdeps/i386/configure: Likewise.
50007         * sysdeps/mach/configure: Likewise.
50008         * sysdeps/sparc/configure: Likewise.
50009         * sysdeps/x86_64/configure: Likewise.
50010
50011 2013-03-20  Roland McGrath  <roland@hack.frob.com>
50012
50013         [BZ #14812]
50014         * locale/programs/localedef.c (options): Put N_ translation marker
50015         on argument names, not just descriptions.
50016
50017 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
50018
50019         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
50020
50021 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
50022
50023         [BZ #14176]
50024         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
50025
50026 2013-03-19  Roland McGrath  <roland@hack.frob.com>
50027
50028         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
50029         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
50030         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
50031         [!BEFORE_ABORT] (before_abort): New function.
50032         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
50033         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
50034         (writev_for_fatal): New function.
50035         (WRITEV_FOR_FATAL): New macro; call that.
50036         (backtrace_and_maps): New function.
50037         (BEFORE_ABORT): New macro; call that.
50038         (struct str_list): Type removed.
50039         (__libc_message, __libc_fatal): Functions removed.
50040         Include <sysdeps/posix/libc_fatal.c> instead.
50041
50042 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
50043
50044         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
50045         constants.
50046         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
50047         double constants.
50048
50049 2013-03-19  Andreas Schwab  <schwab@suse.de>
50050
50051         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
50052         * sysdeps/gnu/configure: Regenerate.
50053
50054         * configure.in: Substitute libc_cv_rtlddir.
50055         * configure: Regenerate.
50056         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
50057         * Makeconfig (rtlddir, inst_rtlddir): New variables.
50058         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
50059         * elf/Makefile (install-others, CFLAGS-interp.c)
50060         (ldso_install, common-ldd-rewrite): Likewise.
50061         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
50062         $(inst_slibdir)/$(rtld-installed-name).
50063         * scripts/rellns-sh: Add -p option.
50064         * Makerules (make-shlib-link): Use rellns-sh to get relative name
50065         for source.
50066
50067 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50068
50069         * manual/nptl.texi: Renamed to ...
50070         * manual/threads.texi: ... this.
50071         * manual/Makefile (chapters): Update.
50072
50073 2013-03-18  Roland McGrath  <roland@hack.frob.com>
50074
50075         [BZ #14812]
50076         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
50077         on argument names, not just descriptions.
50078         * malloc/memusagestat.c (options): Likewise.
50079         * nss/getent.c (options): Likewise.
50080
50081 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
50082
50083         [BZ #14812]
50084         * iconv/iconv_prog.c (options): Put N_ translation marker
50085         on argument names, not just descriptions.
50086         * iconv/iconvconfig.c (options): Likewise.
50087
50088 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
50089
50090         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
50091         implementation which is faster on all x86_64 architectures.
50092         Tested on AMD, Intel Nehalem, SNB, IVB.
50093         * sysdeps/x86_64/strnlen.S: Likewise.
50094
50095         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50096         Remove all multiarch strlen and strnlen versions.
50097         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
50098         Remove strlen and strnlen related parts.
50099
50100         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
50101         Inline strlen part.
50102         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
50103
50104         * sysdeps/x86_64/multiarch/strlen.S: Remove.
50105         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
50106         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
50107         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
50108         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
50109         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
50110
50111 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
50112
50113         * manual/memory.texi (Malloc Tunable Parameters):
50114         Sort parameters alphabetically. Add comments for missing entries.
50115
50116 2013-03-17  David S. Miller  <davem@davemloft.net>
50117
50118         * sysdeps/sparc/fpu/libm-test-ulps: Update.
50119
50120 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
50121
50122         [BZ #15283]
50123         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
50124         for arguments at most half maximum finite value.
50125         * math/libm-test.inc (j0_test): Add more tests.
50126         (j1_test): Likewise.
50127         (y0_test): Likewise.
50128         (y1_test): Likewise.
50129         * sysdeps/i386/fpu/libm-test-ulps: Update.
50130         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50131
50132         [BZ #14155]
50133         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
50134         1 / x and functions P and Q for arguments above 0x1p256L.
50135         (__ieee754_y0l): Likewise.
50136         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
50137         (__ieee754_y1l): Likewise.
50138         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
50139         (j1_test): Likewise.
50140         (y0_test): Likewise.
50141         (y1_test): Likewise.
50142
50143 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
50144
50145         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
50146         variable.
50147
50148 2013-03-15  Roland McGrath  <roland@hack.frob.com>
50149
50150         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
50151         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
50152         zero since it's initialized to EXEC_PAGESIZE.
50153
50154         * sysdeps/unix/sysv/linux/ldsodefs.h
50155         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
50156         * sysdeps/generic/ldsodefs.h: ... here.
50157
50158 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
50159
50160         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
50161
50162         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
50163         math/test-snan.c.
50164         * math/test-snan.c: Renamed from
50165         sysdeps/powerpc/fpu/test-powerpc-snan.c.
50166         * math/Makefile (tests): Add test-snan.
50167         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
50168         test-powerpc-snan.
50169
50170         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
50171         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
50172         functions.
50173         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
50174         __builtin_nan family of functions.
50175         * math/libm-test.inc (initialize): Initialize qnan_value with
50176         __builtin_nan family of functions.
50177         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
50178         Remove variables.
50179         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
50180         Remove functions.
50181         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
50182         storage class.  Initialize qNaN_var and sNaN_var with
50183         __builtin_nan and __builtin_nans families of functions,
50184         respectively.
50185
50186         * math/libm-test.inc (acosh_test): Also test with qNaN input.
50187         (sqrt_test): Remove duplicate test with qNaN input.
50188         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
50189         (round_test, signbit_test, significand_test): Note missing +/-Inf
50190         as well as qNaN tests.
50191
50192         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
50193         qNaN_var.  Fix a few strings, too.
50194         * math/libm-test.inc (nan_value): Rename to qnan_value.
50195         * math/gen-libm-test.pl (%beautify): Adjust to that.
50196         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
50197         * math/test-misc.c (main): Likewise.
50198         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
50199         to __qnan_bytes, and __qnan_union, respectively.
50200         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
50201         Likewise.
50202         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
50203         and lqnanval, respectively.
50204         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
50205         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
50206         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
50207         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
50208
50209         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
50210         * math/test-misc.c (main) [__x86_64__]: Enable test for long
50211         doubles.
50212
50213         * math/test-misc.c (main): Fix copy'n'pastos.
50214         * misc/tst-efgcvt.c (special): Likewise.
50215
50216         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
50217         Remove declarations.
50218
50219 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50220
50221         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
50222         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
50223         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
50224         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
50225
50226 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50227
50228         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
50229         macro to return vdso values correctly in IFUNC implementations.
50230         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
50231         Optimization by using IFUNC.
50232
50233 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50234             Richard Henderson  <rth@redhat.com>
50235             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
50236
50237         * Makefile.in (bench): New target.
50238         * NEWS: Mention the benchmark framework.
50239         * Rules (bench): Likewise.
50240         (binaries-bench): Generate binaries for functions to
50241         benchmark.
50242         * benchtests/Makefile: New makefile for benchmark tests.
50243         * benchtests/bench-skeleton.c: New skeleton file for benchmark
50244         programs.
50245         * benchtests/exp-inputs: New input file for EXP function.
50246         * benchtests/pow-inputs: New input file for POW function.
50247         * scripts/bench.pl: New script to generate source files for
50248         benchmark programs.
50249
50250 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50251
50252         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50253         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
50254         computations on mantissa.  Use macros for rounding and
50255         division.
50256         (denorm): Likewise.
50257         (__dbl_mp): Likewise.
50258         (add_magnitudes): Likewise.
50259         (sub_magnitudes): Likewise.
50260         (__mul): Likewise.
50261         (__sqr): Likewise.
50262         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50263         powers of two in terms of TWOPOW macro.
50264         (mp_no): Make type of mantissa as MANTISSA_T.
50265         [!RADIXI]: Define RADIXI.
50266         [!TWO52]: Define TWO52.
50267         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50268
50269         * manual/nptl.texi (cindex): Modify threads to pthreads.
50270
50271 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
50272
50273         * sysdeps/x86_64/preconfigure: Regenerated.
50274
50275 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
50276
50277         [BZ #14155]
50278         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
50279         0x1p28 and above.
50280         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
50281         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
50282         0x1p28 and above.
50283         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
50284         * math/libm-test.inc (j0_test): Do not allow one spurious
50285         underflow exception.
50286         (y1_test): Likewise.
50287
50288 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
50289
50290         * manual/Makefile (chapters): Add nptl.
50291         * manual/debug.texi (Debugging Support): Add link to Threads
50292         chapter.
50293         * manual/nptl.texi: New file.
50294
50295         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
50296
50297 2013-03-14  Petr Baudis  <pasky@ucw.cz>
50298
50299         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
50300         for non-NULL pointer before the memory validity test. Pointed
50301         out by Holger Brunck <holger.brunck@keymile.com>.
50302
50303 2013-03-13  Andreas Schwab  <schwab@suse.de>
50304
50305         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
50306         instead of .os.
50307
50308 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
50309
50310         * timezone/zic.c: Update from tzcode 2013b.
50311
50312 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
50313
50314         * manual/install.texi (Configuring and compiling):
50315         Mention i686 and i586.
50316         * INSTALL: Regenerate.
50317
50318 2013-03-12  Roland McGrath  <roland@hack.frob.com>
50319
50320         * sysdeps/init_array/elf-init.c: New file.
50321         * csu/elf-init.c
50322         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
50323         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
50324
50325         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
50326         __gmon_start__ as global, but as static with a .preinit_array pointer.
50327         * sysdeps/init_array/gmon-start.c: New file.  Use that.
50328         * sysdeps/init_array/crti.S: New file, empty except for comments.
50329         * sysdeps/init_array/crtn.S: Likewise.
50330
50331 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
50332
50333         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
50334         definining bcopy.
50335         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50336         Remove Prefer_SSE_for_memop.
50337         * sysdeps/x86_64/multiarch/init-arch.h: Remove
50338         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
50339         HAS_PREFER_SSE_FOR_MEMOP.
50340         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
50341         memset-x86-64.
50342         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50343         Remove bzero, memset ifunc support.
50344         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
50345         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
50346         * sysdeps/x86_64/multiarch/memset.S: Likewise.
50347         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
50348
50349 2013-03-11  Andreas Schwab  <schwab@suse.de>
50350
50351         [BZ #15234]
50352         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
50353         by SHLIB_COMPAT.
50354         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
50355         (GLIBC_2.16): Remove pthread_atfork.
50356
50357 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
50358
50359         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
50360         (ptestcases.h): Likewise.
50361
50362 2013-03-08  Roland McGrath  <roland@hack.frob.com>
50363
50364         * Makeconfig ($(common-objpfx)config.status): Depend on
50365         sysdeps/*/preconfigure{,.in} too.
50366
50367 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
50368
50369         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
50370         (__free_hook): Use void * instead of __malloc_ptr_t.
50371         (__malloc_hook): Likewise.
50372         (__realloc_hook): Likewise.
50373         (__memalign_hook): Likewise.
50374         (__after_morecore_hook): Likewise.
50375         * malloc/arena.c (save_malloc_hook): Likewise.
50376         (save_free_hook): Likewise.
50377         * malloc/hooks.c (malloc_hook_ini): Likewise.
50378         (realloc_hook_ini): Likewise.
50379         (memalign_hook_ini): Likewise.
50380         * malloc/malloc.c (malloc_hook_ini): Likewise.
50381         (realloc_hook_ini): Likewise.
50382         (memalign_hook_ini): Likewise.
50383         (__free_hook): Likewise.
50384         (__malloc_hook): Likewise.
50385         (__realloc_hook): Likewise.
50386         (__memalign_hook): Likewise.
50387         (__libc_malloc): Likewise.
50388         (__libc_free): Likewise.
50389         (__libc_realloc): Likewise.
50390         (__libc_memalign): Likewise.
50391         (__libc_valloc): Likewise.
50392         (__libc_pvalloc): Likewise.
50393         (__libc_calloc): Likewise.
50394         (__posix_memalign): Likewise.
50395         * malloc/morecore.c (__sbrk): Likewise.
50396         (__default_morecore): Likewise.
50397
50398         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
50399
50400         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
50401         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
50402         __malloc_ptrdiff_t.
50403
50404         * malloc/malloc.h (__malloc_size_t): Remove macro.
50405         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
50406         __malloc_size_t.
50407         (old_memalign_hook): Likewise.
50408         (old_realloc_hook): Likewise.
50409         (struct hdr): Likewise.
50410         (flood): Likewise.
50411         (mallochook): Likewise.
50412         (memalignhook): Likewise.
50413         (reallochook): Likewise.
50414         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
50415         (tr_old_realloc_hook): Likewise.
50416         (tr_old_memalign_hook): Likewise.
50417         (tr_mallochook): Likewise.
50418         (tr_reallochook): Likewise.
50419         (tr_memalignhook): Likewise.
50420
50421 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50422
50423         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
50424         default_ldbl_pack and using as default implementation.
50425         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
50426         implementation.
50427         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
50428         redundant definition.
50429         (ldbl_insert_mantissa): Likewise.
50430         (ldbl_canonicalize): Likewise.
50431         (ldbl_nearbyint): Likewise.
50432         (ldbl_pack): Rename to ldbl_pack_ppc.
50433         (ldbl_unpack): Rename to ldbl_unpack_ppc.
50434         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
50435         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
50436
50437 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50438
50439         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
50440         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50441         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50442         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50443         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50444         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50445         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50446         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50447
50448 2013-03-07  Andreas Jaeger  <aj@suse.de>
50449
50450         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50451         bits/mman-linux.h.
50452
50453 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50454
50455         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50456         Include mpa.h and declare __MPEXP.
50457         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50458         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50459         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50460         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50461         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50462         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50463         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50464
50465         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50466         (__slowpow): Use long double EXPL and LOGL functions to
50467         compute POW.
50468         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50469         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50470         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50471         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50472         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50473         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50474
50475         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50476         intermediate variable to calculate exponent.
50477         (__sqr): Likewise.
50478         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50479         Likewise.
50480         (__sqr): Likewise.
50481
50482         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50483         [!NO__SQR]: Define __sqr.
50484         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50485         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50486         sysdeps/ieee754/dbl-64/mpa.c.
50487         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50488
50489         [BZ #12723]
50490         * posix/Makefile (tests): Add tst-pathconf.
50491         * posix/tst-pathconf.c: New test case.
50492         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50493         _PC_PIPE_BUF.
50494         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50495
50496 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50497
50498         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50499
50500 2013-03-06  Andreas Jaeger  <aj@suse.de>
50501
50502         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50503         definition via __MAP_ANONYMOUS.
50504
50505         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50506         it's not part of Linux headers.
50507
50508         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50509         (MAP_HUGE_MASK): Define.
50510
50511         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50512         Define.
50513         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50514         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50515         Define.
50516         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50517         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50518         Define.
50519         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50520         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50521         Define.
50522         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50523
50524         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50525         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50526         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50527         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50528         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50529         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50530
50531         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50532         Handle f2fs.
50533
50534         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50535         Handle f2fs and efivarfs.
50536
50537         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50538         f2fs.
50539
50540         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50541         (EFIVARFS_MAGIC): Add.
50542         (F2FS_LINK_MAX): Add.
50543
50544 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50545
50546         * stdio-common/vfprintf.c: Replace __builtin_expect with
50547         __glibc_unlikely.
50548
50549 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50550
50551         [BZ #13550]
50552         * sysdeps/generic/bp-sym.h: Remove file.
50553         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50554         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50555         <bp-sym.h> and <bp-asm.h>.
50556         (__longjmp): Don't use BP_SYM.
50557         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50558         and <bp-asm.h>.
50559         (memcpy): Don't use BP_SYM.
50560         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50561         <bp-sym.h> and <bp-asm.h>.
50562         (memcpy): Don't use BP_SYM.
50563         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50564         <bp-asm.h>.
50565         (memcpy): Don't use BP_SYM.
50566         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50567         <bp-asm.h>.
50568         (memset): Don't use BP_SYM.
50569         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50570         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50571         (__bzero): Don't use BP_SYM.
50572         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50573         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50574         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50575         <bp-sym.h> and <bp-asm.h>.
50576         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50577         pointers.
50578         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50579         <bp-sym.h> and <bp-asm.h>.
50580         (memcpy): Don't use BP_SYM.
50581         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50582         <bp-sym.h> and <bp-asm.h>.
50583         (memset): Don't use BP_SYM.
50584         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50585         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50586         (__bzero): Don't use BP_SYM.
50587         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50588         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50589         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50590         <bp-sym.h> and <bp-asm.h>.
50591         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50592         pointers.
50593         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50594         <bp-sym.h> and <bp-asm.h>.
50595         (memcpy): Don't use BP_SYM.
50596         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50597         <bp-sym.h> and <bp-asm.h>.
50598         (memset): Don't use BP_SYM.
50599         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50600         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50601         (__bzero): Don't use BP_SYM.
50602         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50603         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50604         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50605         <bp-sym.h> and <bp-asm.h>.
50606         (__memchr): Don't use BP_SYM.
50607         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50608         <bp-sym.h> and <bp-asm.h>.
50609         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50610         pointers.
50611         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50612         <bp-sym.h> and <bp-asm.h>.
50613         (memcpy): Don't use BP_SYM.
50614         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50615         <bp-sym.h> and <bp-asm.h>.
50616         (__mempcpy): Don't use BP_SYM.
50617         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50618         <bp-sym.h> and <bp-asm.h>.
50619         (__memrchr): Don't use BP_SYM.
50620         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50621         <bp-sym.h> and <bp-asm.h>.
50622         (memset): Don't use BP_SYM.
50623         (__bzero): Likewise.
50624         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50625         <bp-sym.h> and <bp-asm.h>.
50626         (__rawmemchr): Don't use BP_SYM.
50627         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50628         <bp-sym.h> and <bp-asm.h>.
50629         (__STRCMP): Don't use BP_SYM.
50630         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50631         <bp-sym.h> and <bp-asm.h>.
50632         (strchr): Don't use BP_SYM.
50633         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50634         <bp-sym.h> and <bp-asm.h>.
50635         (__strchrnul): Don't use BP_SYM.
50636         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50637         <bp-sym.h> and <bp-asm.h>.
50638         (strlen): Don't use BP_SYM.
50639         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50640         <bp-sym.h> and <bp-asm.h>.
50641         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50642         pointers.
50643         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50644         <bp-sym.h> and <bp-asm.h>.
50645         (__strnlen): Don't use BP_SYM.
50646         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50647         <bp-sym.h> and <bp-asm.h>.
50648         (__GI__setjmp): Don't use BP_SYM.
50649         (_setjmp): Likewise.
50650         (__sigsetjmp): Likewise.
50651         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50652         (L(start_addresses)): Don't use BP_SYM.
50653         (_start): Likewise.
50654         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50655         <bp-asm.h>.
50656         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50657         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50658         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50659         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50660         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50661         <bp-asm.h>.
50662         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50663         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50664         about bounded pointers.
50665         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50666         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50667         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50668         <bp-asm.h>.
50669         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50670         about bounded pointers.  Remove GKM FIXME comments.
50671         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50672         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50673         <bp-asm.h>.
50674         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50675         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50676         Remove GKM FIXME comments.
50677         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50678         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50679         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50680         <bp-asm.h>.
50681         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50682         about bounded pointers.  Remove GKM FIXME comment.
50683         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50684         and <bp-asm.h>.
50685         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50686         pointers.
50687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50688         <bp-sym.h> and <bp-asm.h>.
50689         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50691         <bp-sym.h> and <bp-asm.h>.
50692         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50693         comment.
50694
50695 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50696
50697         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50698         call free(NULL).
50699
50700 2013-03-05  David S. Miller  <davem@davemloft.net>
50701
50702         * po/es.po: Update from translation team.
50703
50704 2013-03-05  Andreas Jaeger  <aj@suse.de>
50705
50706         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50707         <bits/mman-linux.h>.
50708         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50709         is fine.
50710         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50711         <bits/mman-linux.h> to end of file.
50712         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50713         is fine.
50714         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50715         <bits/mman-linux.h> to end of file.
50716         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50717         is fine.
50718         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50719         <bits/mman-linux.h> to end of file.
50720
50721         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50722         (MCL_CURRENT, MCL_FUTURE): Define here.
50723
50724 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50725
50726         [BZ #15232]
50727         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50728         attribute_hidden.
50729         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50730
50731 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50732
50733         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50734         fourth parameter needed for rt_sigprocmask syscall.
50735         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50736         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50737         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50738         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50739         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50740         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50741
50742 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50743
50744         [BZ #13550]
50745         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50746         comment about bounded pointers.
50747         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50748         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50749
50750 2013-03-04  Andreas Jaeger  <aj@suse.de>
50751
50752         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50753         common definitions.
50754
50755         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50756         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50757         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50758         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50759         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50760         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50761
50762 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50763
50764         [BZ #15055]
50765         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50766         __ieee754_sqrl instead of __sqrl.
50767
50768 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50769
50770         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50771         * sysdeps/powerpc/fpu_control.h: ... here.
50772         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50773         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50774         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50775         * sysdeps/powerpc/bits/mathinline.h: ... here.
50776
50777 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50778
50779         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50780         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50781         to just [NEED_DL_SYSINFO_DSO].
50782         * elf/dl-support.c: Likewise.
50783         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50784         * elf/rtld.c (dl_main): Likewise.
50785         * elf/setup-vdso.h (setup_vdso): Likewise.
50786         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50787         * sysdeps/unix/sysv/linux/dl-sysdep.c
50788         (_dl_discover_osversion): Likewise.
50789
50790 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50791
50792         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50793         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50794
50795 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50796
50797         * NEWS: Mention libm performance improvements and non-x86 PI
50798         futex support.
50799
50800         * csu/libc-start.c (__pthread_initialize_minimal): Change
50801         function arguments.
50802         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50803
50804 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50805
50806         [BZ #13550]
50807         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50808         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50809         <bp-sym.h> and <bp-asm.h>.
50810         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50811         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50812         and <bp-asm.h>.
50813         (memcpy): Don't use BP_SYM.
50814         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50815         <bp-asm.h>.
50816         (__mpn_add_n): Don't use BP_SYM.
50817         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50818         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50819         and <bp-asm.h>.
50820         (__mpn_addmul_1): Don't use BP_SYM.
50821         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50822         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50823         <bp-sym.h>.
50824         (_setjmp): Don't use BP_SYM.
50825         (__novmx_setjmp): Likewise.
50826         (__GI__setjmp): Likewise.
50827         (__vmx_setjmp): Likewise.
50828         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50829         <bp-sym.h>.
50830         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50831         (__bzero): Don't use BP_SYM.
50832         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50833         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50834         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50835         <bp-sym.h> and <bp-asm.h>.
50836         (memcpy): Don't use BP_SYM.
50837         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50838         <bp-sym.h> and <bp-asm.h>.
50839         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50840         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50841         <bp-sym.h> and <bp-asm.h>.
50842         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50843         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50844         <bp-asm.h>.
50845         (__mpn_lshift): Don't use BP_SYM.
50846         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50847         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50848         <bp-asm.h>.
50849         (memset): Don't use BP_SYM.
50850         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50851         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50852         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50853         <bp-asm.h>.
50854         (__mpn_mul_1): Don't use BP_SYM.
50855         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50856         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50857         <bp-sym.h> and <bp-asm.h>.
50858         (memcmp): Don't use BP_SYM.
50859         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50860         <bp-sym.h> and <bp-asm.h>.
50861         (memcpy): Don't use BP_SYM.
50862         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50863         <bp-sym.h> and <bp-asm.h>.
50864         (memset): Don't use BP_SYM.
50865         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50866         <bp-sym.h> and <bp-asm.h>.
50867         (strncmp): Don't use BP_SYM.
50868         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50869         <bp-sym.h> and <bp-asm.h>.
50870         (memcpy): Don't use BP_SYM.
50871         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50872         <bp-sym.h> and <bp-asm.h>.
50873         (memset): Don't use BP_SYM.
50874         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50875         <bp-sym.h> and <bp-asm.h>.
50876         (__memchr): Don't use BP_SYM.
50877         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50878         <bp-sym.h> and <bp-asm.h>.
50879         (memcmp): Don't use BP_SYM.
50880         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50881         <bp-sym.h> and <bp-asm.h>.
50882         (memcpy): Don't use BP_SYM.
50883         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50884         <bp-sym.h> and <bp-asm.h>.
50885         (__mempcpy): Don't use BP_SYM.
50886         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50887         <bp-sym.h> and <bp-asm.h>.
50888         (__memrchr): Don't use BP_SYM.
50889         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50890         <bp-sym.h> and <bp-asm.h>.
50891         (memset): Don't use BP_SYM.
50892         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50893         <bp-sym.h> and <bp-asm.h>.
50894         (__rawmemchr): Don't use BP_SYM.
50895         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50896         <bp-sym.h> and <bp-asm.h>.
50897         (__STRCMP): Don't use BP_SYM.
50898         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50899         <bp-sym.h> and <bp-asm.h>.
50900         (strchr): Don't use BP_SYM.
50901         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50902         <bp-sym.h> and <bp-asm.h>.
50903         (__strchrnul): Don't use BP_SYM.
50904         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
50905         <bp-sym.h> and <bp-asm.h>.
50906         (strlen): Don't use BP_SYM.
50907         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
50908         <bp-sym.h> and <bp-asm.h>.
50909         (strncmp): Don't use BP_SYM.
50910         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
50911         <bp-sym.h> and <bp-asm.h>.
50912         (__strnlen): Don't use BP_SYM.
50913         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
50914         <bp-asm.h>.
50915         (__mpn_rshift): Don't use BP_SYM.
50916         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50917         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
50918         <bp-sym.h> and <bp-asm.h>.
50919         (__sigsetjmp): Don't use BP_SYM.
50920         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
50921         (L(start_addresses)): Don't use BP_SYM.
50922         (_start): Likewise.
50923         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
50924         <bp-asm.h>.
50925         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
50926         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50927         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50928         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
50929         <bp-asm.h>.
50930         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
50931         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50932         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50933         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
50934         <bp-asm.h>.
50935         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50936         comments.
50937         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50938         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
50939         <bp-asm.h>.
50940         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
50941         FIXME comments.
50942         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50943         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50944         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
50945         <bp-asm.h>.
50946         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50947         comment.
50948         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
50949         and <bp-asm.h>.
50950         (strncmp): Don't use BP_SYM,
50951         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
50952         <bp-asm.h>.
50953         (__mpn_sub_n): Don't use BP_SYM.
50954         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50955         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
50956         and <bp-asm.h>.
50957         (__mpn_submul_1): Don't use BP_SYM.
50958         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
50960         <bp-sym.h> and <bp-asm.h>.
50961         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
50963         <bp-sym.h> and <bp-asm.h>.
50964         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50965         comment.
50966
50967 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50968
50969         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
50970         Use ZK to minimize writes to Z.
50971         (sub_magnitudes): Simplify code a bit.
50972         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
50973         Use ZK to minimize writes to Z.
50974         (sub_magnitudes): Simplify code a bit.
50975
50976 2013-02-27  Roland McGrath  <roland@hack.frob.com>
50977
50978         * csu/gmon-start.c: Add special exception to license text.
50979
50980 2013-02-27  Richard Henderson  <rth@redhat.com>
50981
50982         * scripts/config.guess: Update from config.git.
50983         * scripts/config.sub: Likewise.
50984
50985 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50986
50987         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
50988
50989         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
50990
50991         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
50992
50993         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
50994
50995         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
50996
50997 2013-02-26  Roland McGrath  <roland@hack.frob.com>
50998
50999         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
51000         [$(build-shared = yes].
51001
51002 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51003
51004         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
51005         (__mul): Reduce iterations for calculating mantissa.
51006
51007         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
51008         MPTWO.
51009         (__mpranred): Likewise.
51010
51011         [BZ #15160]
51012         * malloc/memusagestat.c (main): Draw graphs for heap and stack
51013         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
51014
51015 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51016
51017         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
51018         Define __attribute__.
51019
51020 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51021
51022         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
51023         unused.
51024         * posix/regex_internal.h (__attribute): Remove.
51025         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
51026         (re_string_context_at): Likewise.
51027         (bitset_not): Use __attribute__ and mark function as possibly
51028         unused.
51029         (bitset_merge): Likewise.
51030         (bitset_mask): Likewise.
51031         (re_string_char_size_at): Likewise.
51032         (re_string_wchar_at): Likewise.
51033         (re_string_elem_size_at): Likewise.
51034
51035 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
51036
51037         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
51038         code.
51039         (cc32): Likewise.
51040
51041         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
51042         (__acr): Likewise.
51043         (__cpy): Likewise.
51044         (norm): Likewise.
51045         (denorm): Likewise.
51046         (__dbl_mp): Likewise.
51047         (add_magnitudes): Likewise.
51048         (sub_magnitudes): Likewise.
51049         (__mul): Likewise.
51050         (__inv): Likewise.
51051
51052         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
51053         style.
51054
51055         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
51056         style.
51057
51058         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
51059         code.
51060
51061         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
51062         up changes with default code.
51063         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
51064         Likewise.
51065
51066 2013-02-24  Allan McRae  <allan@archlinux.org>
51067
51068         * manual/socket.texi (The Internet Namespace): Order menu items
51069         to match that in the file.
51070
51071         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
51072         node listing of the info page menu.
51073
51074 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
51075
51076         [BZ #13550]
51077         * sysdeps/i386/bp-asm.h: Remove file.
51078         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51079         (PARMS): Do not use macros from bp-asm.h.
51080         (S1): Likewise.
51081         (S2): Likewise.
51082         (SIZE): Likewise.
51083         (__mpn_add_n): Do not use BP_SYM
51084         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
51085         "bp-asm.h".
51086         (PARMS): Do not use macros from bp-asm.h.
51087         (S1): Likewise.
51088         (SIZE): Likewise.
51089         (__mpn_addmul_1): Do not use BP_SYM
51090         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
51091         "bp-asm.h".
51092         (PARMS): Do not use macros from bp-asm.h.
51093         (SIGMSK): Likewise.
51094         (_setjmp): Likewise.  Do not use BP_SYM.
51095         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
51096         "bp-asm.h".
51097         (PARMS): Do not use macros from bp-asm.h.
51098         (SIGMSK): Likewise.
51099         (setjmp): Likewise.  Do not use BP_SYM.
51100         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
51101         "bp-asm.h".
51102         (PARMS): Do not use macros from bp-asm.h.
51103         (__frexp): Do not use BP_SYM.
51104         (frexp): Likewise.
51105         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
51106         "bp-asm.h".
51107         (PARMS): Do not use macros from bp-asm.h.
51108         (__frexpf): Do not use BP_SYM.
51109         (frexpf): Likewise.
51110         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
51111         "bp-asm.h".
51112         (PARMS): Do not use macros from bp-asm.h.
51113         (__frexpl): Do not use BP_SYM.
51114         (frexpl): Likewise.
51115         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
51116         "bp-asm.h".
51117         (PARMS): Do not use macros from bp-asm.h.
51118         (__remquo): Do not use BP_SYM.
51119         (remquo): Likewise.
51120         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
51121         "bp-asm.h".
51122         (PARMS): Do not use macros from bp-asm.h.
51123         (__remquof): Do not use BP_SYM.
51124         (remquof): Likewise.
51125         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
51126         "bp-asm.h".
51127         (PARMS): Do not use macros from bp-asm.h.
51128         (__remquol): Do not use BP_SYM.
51129         (remquol): Likewise.
51130         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
51131         "bp-asm.h".
51132         (PARMS): Do not use macros from bp-asm.h.
51133         (DEST): Likewise.
51134         (SRC): Likewise.
51135         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
51136         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
51137         "bp-asm.h".
51138         (PARMS): Do not use macros from bp-asm.h.
51139         (strlen): Do not use BP_SYM.
51140         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
51141         "bp-asm.h".
51142         (PARMS): Do not use macros from bp-asm.h.
51143         (S1): Likewise.
51144         (S2): Likewise.
51145         (SIZE): Likewise.
51146         (__mpn_add_n): Do not use BP_SYM.
51147         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
51148         "bp-asm.h".
51149         (PARMS): Do not use macros from bp-asm.h.
51150         (S1): Likewise.
51151         (SIZE): Likewise.
51152         (__mpn_addmul_1): Do not use BP_SYM.
51153         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
51154         weak_alias.
51155         (bzero): Likewise.
51156         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
51157         "bp-asm.h".
51158         (PARMS): Do not use macros from bp-asm.h.
51159         (S): Likewise.
51160         (SIZE): Likewise.
51161         (__mpn_lshift): Do not use BP_SYM.
51162         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
51163         "bp-asm.h".
51164         (PARMS): Do not use macros from bp-asm.h.
51165         (DEST): Likewise.
51166         (SRC): Likewise.
51167         (LEN): Likewise.
51168         (memcpy): Likewise.  Do not use BP_SYM.
51169         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
51170         libc_hidden_def and weak_alias.
51171         (mempcpy): Do not use BP_SYM in weak_alias.
51172         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
51173         "bp-asm.h".
51174         (PARMS): Do not use macros from bp-asm.h.
51175         (DEST): Likewise.
51176         (LEN): Likewise.
51177         [!BZERO_P] (CHR): Likewise.
51178         (memset): Likewise.  Do not use BP_SYM.
51179         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
51180         "bp-asm.h".
51181         (PARMS): Do not use macros from bp-asm.h.
51182         (S1): Likewise.
51183         (SIZE): Likewise.
51184         (__mpn_mul_1): Do not use BP_SYM.
51185         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
51186         "bp-asm.h".
51187         (PARMS): Do not use macros from bp-asm.h.
51188         (S): Likewise.
51189         (SIZE): Likewise.
51190         (__mpn_rshift): Do not use BP_SYM.
51191         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
51192         "bp-asm.h".
51193         (PARMS): Do not use macros from bp-asm.h.
51194         (STR): Likewise.
51195         (CHR): Likewise.
51196         (strchr): Likewise.  Do not use BP_SYM.
51197         (index): Do not use BP_SYM in weak_alias.
51198         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
51199         "bp-asm.h".
51200         (PARMS): Do not use macros from bp-asm.h.
51201         (DEST): Likewise.
51202         (SRC): Likewise.
51203         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
51204         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
51205         "bp-asm.h".
51206         (PARMS): Do not use macros from bp-asm.h.
51207         (strlen): Do not use BP_SYM.
51208         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
51209         "bp-asm.h".
51210         (PARMS): Do not use macros from bp-asm.h.
51211         (S1): Likewise.
51212         (S2): Likewise.
51213         (SIZE): Likewise.
51214         (__mpn_sub_n): Do not use BP_SYM.
51215         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
51216         "bp-asm.h".
51217         (PARMS): Do not use macros from bp-asm.h.
51218         (S1): Likewise.
51219         (SIZE): Likewise.
51220         (__mpn_submul_1): Do not use BP_SYM.
51221         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
51222         "bp-asm.h".
51223         (PARMS): Do not use macros from bp-asm.h.
51224         (S1): Likewise.
51225         (S2): Likewise.
51226         (SIZE): Likewise.
51227         (__mpn_add_n): Do not use BP_SYM.
51228         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
51229         weak_alias.
51230         (bzero): Likewise.
51231         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
51232         "bp-asm.h".
51233         (PARMS): Do not use macros from bp-asm.h.
51234         (BLK2): Likewise.
51235         (LEN): Likewise.
51236         (memcmp): Do not use BP_SYM.
51237         (bcmp): Do not use BP_SYM in weak_alias.
51238         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
51239         "bp-asm.h".
51240         (PARMS): Do not use macros from bp-asm.h.
51241         (DEST): Likewise.
51242         (SRC): Likewise.
51243         (LEN): Likewise.
51244         (memcpy): Likewise.  Do not use BP_SYM.
51245         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
51246         "bp-asm.h".
51247         (PARMS): Do not use macros from bp-asm.h.
51248         (DEST): Likewise.
51249         (SRC): Likewise.
51250         (LEN): Likewise.
51251         (memmove): Likewise.  Do not use BP_SYM.
51252         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
51253         "bp-asm.h".
51254         (PARMS): Do not use macros from bp-asm.h.
51255         (DEST): Likewise.
51256         (SRC): Likewise.
51257         (LEN): Likewise.
51258         (__mempcpy): Likewise.  Do not use BP_SYM.
51259         (mempcpy): Do not use BP_SYM in weak_alias.
51260         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
51261         "bp-asm.h".
51262         (PARMS): Do not use macros from bp-asm.h.
51263         (DEST): Likewise.
51264         (LEN): Likewise.
51265         [!BZERO_P] (CHR): Likewise.
51266         (memset): Likewise.  Do not use BP_SYM.
51267         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
51268         "bp-asm.h".
51269         (PARMS): Do not use macros from bp-asm.h.
51270         (STR2): Likewise.
51271         (strcmp): Do not use BP_SYM.
51272         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
51273         "bp-asm.h".
51274         (PARMS): Do not use macros from bp-asm.h.
51275         (STR): Likewise.
51276         (DELIM): Likewise.
51277         [USE_AS_STRTOK_R] (SAVE): Likewise.
51278         (FUNCTION): Likewise.  Do not use BP_SYM.
51279         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
51280         aliases.
51281         (strtok_r): Likewise.
51282         (__GI___strtok_r): Likewise.
51283         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51284         (PARMS): Do not use macros from bp-asm.h.
51285         (S): Likewise.
51286         (SIZE): Likewise.
51287         (__mpn_lshift): Do not use BP_SYM.
51288         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51289         (PARMS): Do not use macros from bp-asm.h.
51290         (STR): Likewise.
51291         (CHR): Likewise.
51292         (__memchr): Do not use BP_SYM.
51293         (memchr): Do not use BP_SYM in weak_alias.
51294         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51295         (PARMS): Do not use macros from bp-asm.h.
51296         (BLK2): Likewise.
51297         (LEN): Likewise.
51298         (memcmp): Do not use BP_SYM.
51299         (bcmp): Do not use BP_SYM in weak_alias.
51300         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
51301         (PARMS): Do not use macros from bp-asm.h.
51302         (S1): Likewise.
51303         (SIZE): Likewise.
51304         (__mpn_mul_1): Do not use BP_SYM.
51305         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
51306         "bp-asm.h".
51307         (PARMS): Do not use macros from bp-asm.h.
51308         (STR): Likewise.
51309         (CHR): Likewise.
51310         (__rawmemchr): Do not use BP_SYM.
51311         (rawmemchr): Do not use BP_SYM in weak_alias.
51312         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51313         (PARMS): Do not use macros from bp-asm.h.
51314         (S): Likewise.
51315         (SIZE): Likewise.
51316         (__mpn_rshift): Do not use BP_SYM.
51317         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51318         (PARMS): Do not use macros from bp-asm.h.
51319         (SIGMSK): Likewise.
51320         (__sigsetjmp): Likewise.  Do not use BP_SYM.
51321         * sysdeps/i386/start.S: Do not include "bp-sym.h".
51322         (_start): Do not use BP_SYM.
51323         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
51324         (PARMS): Do not use macros from bp-asm.h.
51325         (DEST): Likewise.
51326         (SRC): Likewise.
51327         (__stpcpy): Likewise.  Do not use BP_SYM.
51328         (stpcpy): Do not use BP_SYM in weak_alias.
51329         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
51330         "bp-asm.h".
51331         (PARMS): Do not use macros from bp-asm.h.
51332         (DEST): Likewise.
51333         (SRC): Likewise.
51334         (LEN): Likewise.
51335         (__stpncpy): Likewise.  Do not use BP_SYM.
51336         (stpncpy): Do not use BP_SYM in weak_alias.
51337         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51338         (PARMS): Do not use macros from bp-asm.h.
51339         (STR): Likewise.
51340         (CHR): Likewise.
51341         (strchr): Likewise.  Do not use BP_SYM.
51342         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
51343         "bp-asm.h".
51344         (PARMS): Do not use macros from bp-asm.h.
51345         (STR): Likewise.
51346         (CHR): Likewise.
51347         (__strchrnul): Likewise.  Do not use BP_SYM.
51348         (strchrnul): Do not use BP_SYM in weak_alias.
51349         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
51350         "bp-asm.h".
51351         (PARMS): Do not use macros from bp-asm.h.
51352         (STOP): Likewise.
51353         (strcspn): Do not use BP_SYM.
51354         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
51355         "bp-asm.h".
51356         (PARMS): Do not use macros from bp-asm.h.
51357         (STR): Likewise.
51358         (STOP): Likewise.
51359         (strpbrk): Likewise.  Do not use BP_SYM.
51360         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
51361         "bp-asm.h".
51362         (PARMS): Do not use macros from bp-asm.h.
51363         (STR): Likewise.
51364         (CHR): Likewise.
51365         (strrchr): Likewise.  Do not use BP_SYM.
51366         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
51367         (PARMS): Do not use macros from bp-asm.h.
51368         (SKIP): Likewise.
51369         (strspn): Do not use BP_SYM.
51370         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
51371         (PARMS): Do not use macros from bp-asm.h.
51372         (STR): Likewise.
51373         (DELIM): Likewise.
51374         (SAVE): Likewise.
51375         (FUNCTION): Likewise.  Do not use BP_SYM.
51376         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
51377         aliases.
51378         (strtok_r): Likewise.
51379         (__GI___strtok_r): Likewise.
51380         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51381         (PARMS): Do not use macros from bp-asm.h.
51382         (S1): Likewise.
51383         (S2): Likewise.
51384         (SIZE): Likewise.
51385         (__mpn_sub_n): Do not use BP_SYM.
51386         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
51387         "bp-asm.h".
51388         (PARMS): Do not use macros from bp-asm.h.
51389         (S1): Likewise.
51390         (SIZE): Likewise.
51391         (__mpn_submul_1): Do not use BP_SYM.
51392         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
51393         <bp-sym.h>.
51394         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
51395         and <bp-asm.h>.
51396         (PARMS): Do not use macros from bp-asm.h.
51397         (FLAGS): Likewise.
51398         (PTID): Likewise.
51399         (TLS): Likewise.
51400         (CTID): Likewise.
51401         (__clone): Do not use BP_SYM.
51402         (clone): Do not use BP_SYM in weak_alias.
51403         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
51404         and <bp-asm.h>.
51405         (PARMS): Do not use macros from bp-asm.h.
51406         (LEN): Likewise.
51407         (__mmap64): Do not use BP_SYM.
51408         (mmap64): Do not use BP_SYM in weak_alias.
51409         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
51410         <bp-sym.h> and <bp-asm.h>.
51411         (PARMS): Do not use macros from bp-asm.h.
51412         (__posix_fadvise64_l64): Do not use BP_SYM.
51413         * sysdeps/unix/sysv/linux/i386/semtimedop.S
51414         (PARMS): Do not use macros from bp-asm.h.
51415         (NSOPS): Likewise.
51416         (semtimedop): Do not use BP_SYM.
51417         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
51418         and <bp-asm.h>.
51419
51420 2013-02-21  Allan McRae  <allan@archlinux.org>
51421
51422         * manual/message.texi (Charset conversion in gettext):
51423         Move @end statement to beginning of line.
51424
51425 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51426
51427         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
51428         static.
51429         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
51430         Likewise.
51431
51432         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
51433         (denorm): Likewise.
51434         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
51435         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
51436
51437 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51438
51439         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
51440         tail-call to the resolved function if pltexit isn't needed.
51441
51442 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51443
51444         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51445         or Y being zero as being unlikely.
51446         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51447         Likewise.
51448
51449 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51450
51451         * manual/nss.texi (System Databases and Name Service Switch):
51452         Remove frobnicate @pxref.
51453
51454 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51455
51456         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51457         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51458
51459 2013-02-20  Petr Machata  <pmachata@redhat.com>
51460
51461         * elf/elf.h (R_ARM_TARGET1): New macro.
51462         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51463         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51464         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51465         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51466         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51467         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51468         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51469         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51470         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51471         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51472         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51473         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51474         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51475         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51476         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51477         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51478         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51479         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51480         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51481         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51482         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51483         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51484         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51485         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51486         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51487         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51488         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51489         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51490         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51491         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51492         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51493         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51494         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51495         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51496         (R_ARM_THM_GOT_BREL12): Likewise.
51497         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51498         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51499         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51500         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51501         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51502         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51503         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51504         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51505         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51506
51507 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51508
51509         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51510         __attribute_used__ to __attribute__ ((unused)).
51511
51512 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51513
51514         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51515         powerpc mpa.c.
51516         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51517         comment formatting.
51518         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51519
51520 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51521
51522         [BZ #13550]
51523         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51524         Remove macro.
51525         (ENTER): Remove both macro definitions.
51526         (LEAVE): Likewise.
51527         (CHECK_BOUNDS_LOW): Likewise.
51528         (CHECK_BOUNDS_HIGH): Likewise.
51529         (CHECK_BOUNDS_BOTH): Likewise.
51530         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51531         (RETURN_BOUNDED_POINTER): Likewise.
51532         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51533         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51534         (POP_ERRNO_LOCATION_RETURN): Likewise.
51535         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51536         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51537         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51538         macros.
51539         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51540         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51541         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51542         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51543         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51544         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51545         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51546         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51547         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51548         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51549         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51550         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51551         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51552         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51553         removed macros.
51554         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51555         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51556         macros.
51557         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51558         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51559         * sysdeps/i386/i586/memset.S (memset): Likewise.
51560         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51561         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51562         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51563         macros.
51564         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51565         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51566         Change uses of L(2) to L(out).
51567         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51568         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51569         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51570         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51571         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51572         removed macros.
51573         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51574         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51575         macros.
51576         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51577         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51578         (RETURN): Do not use macro LEAVE.
51579         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51580         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51581         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51582         * sysdeps/i386/i686/memset.S (memset): Likewise.
51583         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51584         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51585         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51586         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51587         Likewise.
51588         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51589         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51590         L(1_2) and L(1_3) into L(1).
51591         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51592         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51593         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51594         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51595         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51596         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51597         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51598         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51599         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51600         macros.
51601         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51602         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51603         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51604         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51605         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51606         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51607         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51608         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51609         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51610         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51611         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51612         * sysdeps/i386/strspn.S (strspn): Likewise.
51613         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51614         conditional code.
51615         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51616         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51617         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51618         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51619         L(1_3) into L(1_1).
51620         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51621         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51622         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51623         macros.
51624         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51625
51626 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51627
51628         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51629         macro.
51630
51631 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51632
51633         * math/atest-exp.c (exp_mpn): Remove ROUND.
51634         * math/atest-exp2.c (exp_mpn): Likewise.
51635         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51636
51637         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51638         * stdlib/tst-tls-atexit-lib.c: Likewise.
51639         * stdlib/tst-tls-atexit.c: Likewise.
51640
51641 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51642
51643         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51644         and __attribute_alloc_size__.
51645
51646 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51647
51648         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51649         __attribute_alloc_size__.
51650         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51651         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51652
51653 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51654
51655         * include/programs/xmalloc.h: New file.
51656         * catgets/gencat.c: Include it.
51657         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51658         * elf/pldd.c: Likewise.
51659         * iconv/iconv_charmap.c: Likewise.
51660         * iconv/iconvconfig.c: Likewise.
51661         * iconv/strtab.c: Likewise.
51662         * locale/programs/locale.c: Likewise.
51663         * locale/programs/localedef.h: Likewise.
51664         * locale/programs/simple-hash.c: Likewise.
51665         * nscd/nscd.h: Likewise.
51666         * nss/makedb.c: Likewise.
51667         * sysdeps/generic/ldconfig.h: Likewise.
51668
51669 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51670
51671         * Versions.def: Add GLIBC_2.18.
51672         * include/link.h (struct link_map): New member l_tls_dtor_count.
51673         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51674         (__call_tls_dtors): Likewise.
51675         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51676         __cxa_thread_atexit_impl.
51677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51678         Likewise.
51679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51680         Likewise.
51681         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51682         Likewise.
51683         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51684         Likewise.
51685         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51686         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51687         Likewise.
51688         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51689         Likewise.
51690         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51691         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51692         Likewise.
51693         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51694         (tests): Add test case tst-tls-atexit.
51695         (modules-names): Add shared library for tst-tls-atexit.
51696         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51697         (GLIBC_PRIVATE): Add __call_tls_dtors.
51698         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51699         for libstdc++.
51700         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51701         * stdlib/tst-tls-atexit.c: New test case.
51702         * stdlib/tst-tls-atexit-lib.c: New test case.
51703
51704         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51705
51706         * elf/Versions (ld): Add _dl_find_dso_for_object.
51707         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51708         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51709         (dl_open_worker): Use _dl_find_dso_for_object.
51710         * elf/dl-sym.c (do_sym): Likewise.
51711         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51712
51713 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51714
51715         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51716         Syntactic changes only.
51717         (_dl_runtime_profile): Do a tail-call to the resolved function.
51718
51719 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51720
51721         [BZ #13550]
51722         * sysdeps/x86_64/bp-asm.h: Remove file.
51723         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51724         <bp-sym.h> and <bp-asm.h>.
51725         (__clone): Do not use BP_SYM.
51726         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51727         <bp-sym.h> and <bp-asm.h>.
51728         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51729         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51730         "bp-asm.h".
51731         (_setjmp): Do not use BP_SYM.
51732         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51733         "bp-asm.h".
51734         (setjmp): Do not use BP_SYM.
51735         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51736         libc_hidden_def.
51737         (mempcpy): Do not use BP_SYM in weak_alias.
51738         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51739         "bp-asm.h".
51740         (strchr): Do not use BP_SYM.
51741         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51742         "bp-asm.h".
51743         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51744         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51745         (_start): Do not use BP_SYM.
51746         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51747         "bp-asm.h".
51748         (strcat): Do not use BP_SYM.
51749         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51750         "bp-asm.h".
51751         (STRCMP): Do not use BP_SYM.
51752         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51753         "bp-asm.h".
51754         (STRCPY): Do not use BP_SYM.
51755         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51756         "bp-asm.h".
51757         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51758         "bp-asm.h".
51759         (FUNCTION): Do not use BP_SYM.
51760         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51761         weak_alias.
51762         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51763
51764 2013-02-17  Andreas Jaeger  <aj@suse.de>
51765
51766         * time/Versions: Sort entries.
51767         * string/Versions: Likewise.
51768         * resolv/Versions: Likewise.
51769         * posix/Versions: Likewise.
51770         * iconv/Versions: Likewise.
51771         * elf/Versions: Likewise.
51772         * wcsmbs/Versions: Likewise.
51773
51774 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51775
51776         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51777         loop termination condition.
51778
51779         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51780         variable to calculate EZ.
51781         (__sqr): Likewise.
51782
51783         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51784         the lower precision input.
51785
51786 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51787
51788         [BZ #13550]
51789         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51790         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51791         (run-via-rtld-prefix): Do not handle %-bp tests.
51792         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51793         (all-object-suffixes): Remove .ob.
51794         (bppfx): Remove variable.
51795         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51796         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51797         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51798         [$(build-bounded) = yes] (libtype.ob): Likewise.
51799         * Makerules (elide-routines.ob): Remove variable.
51800         (do-tests-clean): Do not handle *-bp.out.
51801         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51802         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51803         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51804         (tests): Do not include $(tests-bp.out).
51805         (xtests): Do not include $(xtests-bp.out).
51806         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51807         [$(build-bounded) = yes] ($(addprefix
51808         $(objpfx),$(binaries-bounded))): Remove rule.
51809         ($(objpfx)%-bp.out): Remove rule.
51810         * config.make.in (build-bounded): Remove variable.
51811         * crypt/Makefile [$(build-bounded) = yes]
51812         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51813         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51814         append to variable.
51815         [$(build-bounded) = yes] (install-lib): Likewise.
51816         [$(build-bounded) = yes] (generated): Likewise.
51817         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51818         Remove rule.
51819         * intl/Makefile [$(build-bounded) = yes]
51820         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51821         * math/Makefile [$(build-bounded) = yes]
51822         ($(tests:%=$(objpfx)%-bp): Likewise.
51823         * misc/Makefile [$(build-bounded) = yes]
51824         ($(objpfx)tst-tsearch-bp): Likewise.
51825         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51826         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51827         Remove dependency.
51828         * string/Makefile (o-objects.ob): Remove variable.
51829         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51830         (CFLAGS-.ob): Remove variable.
51831         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51832         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51833         both definitions of variable.
51834         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51835         (ASFLAGS-.ob): Remove variable.
51836
51837 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51838
51839         [BZ #13550]
51840         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51841         Remove __BOUNDED_POINTERS__ from condition.
51842         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51843         * string/bits/string2.h [!__NO_STRING_INLINES &&
51844         !__BOUNDED_POINTERS__]: Likewise.
51845         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51846         Likewise.
51847         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51848         Remove conditional code.
51849         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51850         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51851         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51852         condition.
51853
51854         [BZ #13550]
51855         * csu/libc-start.c: Do not include <bp-sym.h>.
51856         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51857         * elf/dl-open.c: Do not include <bp-sym.h>.
51858         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51859         * math/fegetenv.c: Do not include <bp-sym.h>.
51860         (fegetenv): Do not use BP_SYM in versioned symbols.
51861         * nptl/sysdeps/pthread/bits/libc-lockP.h
51862         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51863         <bp-sym.h>.
51864         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51865         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51866         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51867         (__pthread_mutex_destroy): Likewise.
51868         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51869         (__pthread_mutex_lock): Likewise.
51870         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51871         (__pthread_mutex_trylock): Likewise.
51872         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51873         (__pthread_mutex_unlock): Likewise.
51874         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51875         (__pthread_mutexattr_init): Likewise.
51876         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51877         (__pthread_mutexattr_destroy): Likewise.
51878         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51879         (__pthread_mutexattr_settype): Likewise.
51880         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51881         (__pthread_rwlock_init): Likewise.
51882         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51883         (__pthread_rwlock_destroy): Likewise.
51884         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51885         (__pthread_rwlock_rdlock): Likewise.
51886         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51887         (__pthread_rwlock_tryrdlock): Likewise.
51888         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51889         (__pthread_rwlock_wrlock): Likewise.
51890         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51891         (__pthread_rwlock_trywrlock): Likewise.
51892         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51893         (__pthread_rwlock_unlock): Likewise.
51894         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51895         (__pthread_key_create): Likewise.
51896         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51897         (__pthread_setspecific): Likewise.
51898         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51899         (__pthread_getspecific): Likewise.
51900         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51901         Likewise.
51902         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51903         (_pthread_cleanup_push_defer): Likewise.
51904         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51905         (_pthread_cleanup_pop_restore): Likewise.
51906         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51907         (pthread_setcancelstate): Likewise.
51908         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
51909         <bp-sym.h>.
51910         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
51911         (memchr): Do not use BP_SYM in weak_alias.
51912         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
51913         (fegetenv): Do not use BP_SYM in versioned symbols.
51914         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
51915         (fesetenv): Do not use BP_SYM in versioned symbols.
51916         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51917         (feupdateenv): Do not use BP_SYM in versioned symbols.
51918         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51919         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51920         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
51921         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
51922         (open64): Do not use BP_SYM in weak_alias.
51923         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
51924         (fegetenv): Do not use BP_SYM in versioned symbols.
51925         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
51926         (fesetenv): Do not use BP_SYM in versioned symbols.
51927         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51928         (feupdateenv): Do not use BP_SYM in versioned symbols.
51929         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
51930         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
51931         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
51932         (feraiseexcept): Do not use BP_SYM in versioned symbols.
51933         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51934         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51935         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
51936         <bp-sym.h>.
51937         (__libc_start_main): Do not use BP_SYM.
51938
51939 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51940
51941         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
51942         redundant return line.
51943         (norm): Likewise.
51944         (denorm): Likewise.
51945         (dbl_mp): Likewise.
51946         (sub_magnitudes): Likewise.
51947         (__add): Likewise.
51948         (__sub): Likewise.
51949         (__mul): Likewise.
51950         (__inv): Likewise.
51951         (__dvd): Likewise.
51952         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
51953         (norm): Likewise.
51954         (denorm): Likewise.
51955         (dbl_mp): Likewise.
51956         (sub_magnitudes): Likewise.
51957         (__add): Likewise.
51958         (__sub): Likewise.
51959         (__mul): Likewise.
51960         (__inv): Likewise.
51961         (__dvd): Likewise.
51962
51963         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
51964         instead of __mul.
51965         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
51966         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
51967         (cc32): Likewise.
51968
51969         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
51970         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
51971         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
51972         of __mul for squares.
51973         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
51974         function
51975         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
51976         Likewise.
51977         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
51978         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
51979
51980 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
51981
51982         [BZ #13550]
51983         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
51984         code.
51985         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
51986         prototype or function definition.  Rename ubp_* variables and
51987         parameters.  Remove argv definitions conditional on
51988         [__BOUNDED_POINTERS__].
51989         * debug/backtrace.c (__backtrace): Do not use __unbounded.
51990         * elf/dl-runtime.c (_dl_fixup): Likewise.
51991         * include/set-hooks.h (RUN_HOOK): Likewise.
51992         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
51993         definition.
51994         * string/strcpy.c (strcpy): Do not use __unbounded.
51995         * sysdeps/generic/frame.h (struct layout): Likewise.
51996         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
51997         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
51998         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
51999         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
52000         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
52001         (__backtrace): Likewise.
52002         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
52003         use __ptrvalue.
52004         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
52005         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
52006         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
52007         Likewise.
52008         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
52009         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
52010         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
52011         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52012         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
52013         Do not use __unbounded.
52014         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
52015         Rename __unboundedrlimits parameter to rlimits in prototype.
52016         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
52017         Do not use __unbounded.
52018         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
52019         not use __ptrvalue.
52020         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52021         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
52022         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52023         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
52024         __ptrvalue or __unbounded.
52025         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
52026         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
52027         use __unbounded.
52028         (__new_msgctl): Do not use __ptrvalue.
52029         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
52030         __unbounded.
52031         (__libc_msgrcv): Do not use __ptrvalue.
52032         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
52033         startup_info): Do not use __unbounded.
52034         (__libc_start_main): Likewise.  Rename ubp_* variables and
52035         parameters.  Remove argv definitions conditional on
52036         [__BOUNDED_POINTERS__].
52037         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
52038         __ptrvalue.
52039         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
52040         use __unbounded.
52041         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
52042         or __ptrvalue.
52043         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
52044         use __unbounded.
52045         (__new_shmctl): Do not use __ptrvalue.
52046         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
52047         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
52048         Likewise.
52049         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
52050         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
52051         (__libc_sigaction): Likewise.
52052         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
52053         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
52054         Likewise.
52055         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52056
52057 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
52058
52059         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
52060
52061         * string/mempcpy.c: Implement by calling memcpy.
52062
52063 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
52064
52065         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
52066
52067         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
52068         evaluation.
52069
52070         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
52071         values in the mantissa.
52072
52073         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
52074         minimize writes to Z.
52075         (sub_magnitudes): Simplify code a bit.
52076
52077 2013-02-12  Roland McGrath  <roland@hack.frob.com>
52078
52079         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
52080         from the message.  The linker prefixes all warnings with that already.
52081
52082 2013-02-12  Andreas Schwab  <schwab@suse.de>
52083
52084         [BZ #15078]
52085         * posix/regexec.c (extend_buffers): Add parameter min_len.
52086         (check_matching): Pass minimum needed length.
52087         (clean_state_log_if_needed): Likewise.
52088         (get_subexp): Likewise.
52089         * posix/Makefile (tests): Add bug-regex34.
52090         (bug-regex34-ENV): Define.
52091         * posix/bug-regex34.c: New file.
52092
52093         [BZ #11561]
52094         * posix/regcomp.c (parse_bracket_exp): When looking up collating
52095         elements compare against the byte sequence of it, not its name.
52096         * posix/Makefile (tests): Add bug-regex35.
52097         (bug-regex35-ENV): Define.
52098         * posix/bug-regex35.c: New file.
52099
52100 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52101
52102         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
52103         comment.
52104         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
52105         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
52106         (CHECK_EOL): Add undef.
52107
52108 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
52109
52110         * bits/stdlib-bsearch.h: New file.
52111         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
52112         * stdlib/stdlib.h: Likewise.
52113
52114 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52115
52116         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
52117         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
52118         declaration.
52119         * manual/search.texi (Array Search Function): Add missing const in
52120         lfind prototype.
52121         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
52122         declaration to use rlim_t.
52123         (Basic Scheduling Functions): Remove erroneous const from
52124         sched_getparam prototype.  Remove erroneous * from
52125         sched_get_priority_max and sched_get_priority_min prototypes.
52126         (Resource Usage): Fix summary @comment on vtimes to refer to
52127         sys/vtimes.h rather than vtimes.h.
52128         Add missing *s in vtimes prototype.
52129         (Limits on Resources): Fix ulimit prototype to return long int.
52130         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
52131         prototypes to use long int rather than double.
52132         (BSD Random): Fix initstate and setstate to use char *, not void *.
52133         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
52134         prototype to make second argument 'struct aiocb64 *const[]'.
52135         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
52136         (Status of AIO Operations): Remove erroneous const in aio_return and
52137         aio_return64 prototypes.
52138         (Synchronizing I/O): Fix sync prototype to return void.
52139         * manual/startup.texi (Suboptions): Remove an erroneous const in
52140         getsubopt prototype.
52141         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
52142         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
52143         use size_t rather than int.
52144         (Scanning All Users): Likewise for getpwent_r.
52145         (Setting Groups): Add missing const to setgroups prototype.
52146         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
52147         * manual/socket.texi (Host Names): Fix gethostbyaddr and
52148         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
52149         'const void *' rather than 'const char *'.
52150         (Host Address Functions): Likewise for inet_ntop.
52151         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
52152         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
52153         ssize_t for return value.
52154         (Sending Data): Likewise for send, sendto, sendmsg.
52155         (Socket Option Functions): Add a missing const in setsockopt prototype.
52156         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
52157         use wchar_t for the argument.
52158         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
52159         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
52160         take no arguments.
52161         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
52162         double/float/long double for second argument.
52163         Fix return types of significand, significandf, significandl.
52164         * manual/filesys.texi (Setting Permissions): Use mode_t for second
52165         argument in fchmod prototype.
52166         (File Owner): Use uid_t and gid_t in fchown prototype.
52167         (File Times): Add const to utimes, futimes, and lutimes prototypes.
52168         (Making Special Files): Use mode_t and dev_t in mknod prototype.
52169         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
52170         use 'const struct dirent **' as argument types to CMP function pointer
52171         argument.
52172         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
52173         (File Times): Fix summary magic @comment for struct utimbuf and utime
52174         to refer to utime.h, not time.h.
52175         * manual/string.texi (Argz Functions): Add missing const in
52176         argz_extract and argz_next prototypes.
52177         (Finding Tokens in a String): Likewise for basename.
52178         (String/Array Comparison): Fix typo in wcscasecmp prototype.
52179         (Copying and Concatenation): Fix typo in wmemmove prototype.
52180         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
52181         (Signal Stack): Remove erroneous const in sigstack prototype.
52182         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
52183         prototype.
52184         (Simple Calendar Time): Likewise for stime.
52185         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
52186         prototype.
52187         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
52188         say sys/sysctl.h instead.
52189         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
52190         and vsyslog prototypes.
52191
52192 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52193
52194         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
52195         Remove.
52196
52197 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52198
52199         * misc/sys/mman.h: Fix typo in mremap comment.
52200
52201 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52202
52203         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
52204         the '\0' terminator.
52205
52206 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52207
52208         [BZ #13550]
52209         * debug/segfault.c: Don't include <bp-checks.h>.
52210         * sysdeps/generic/bp-checks.h: Remove file.
52211         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
52212         (__GETDENTS): Don't use CHECK_N.
52213         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
52214         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
52215         (__getgroups): Don't use CHECK_N.
52216         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
52217         (setgroups): Don't use CHECK_N.
52218         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
52219         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
52220         (__libc_msgrcv): Don't use CHECK_N.
52221         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
52222         (__libc_msgsnd): Don't use CHECK_N.
52223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
52224         <bp-checks.h>.
52225         (__libc_pread): Don't use CHECK_N.
52226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
52227         include <bp-checks.h>.
52228         (__libc_pread64): Don't use CHECK_N.
52229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
52230         include <bp-checks.h>.
52231         (__libc_pwrite): Don't use CHECK_N.
52232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
52233         include <bp-checks.h>.
52234         (__libc_pwrite64): Don't use CHECK_N.
52235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
52236         <bp-checks.h>.
52237         (__libc_pread): Don't use CHECK_N.
52238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
52239         include <bp-checks.h>.
52240         (__libc_pread64): Don't use CHECK_N.
52241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
52242         include <bp-checks.h>.
52243         (__libc_pwrite): Don't use CHECK_N.
52244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
52245         include <bp-checks.h>.
52246         (__libc_pwrite64): Don't use CHECK_N.
52247         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
52248         (do_pread): Don't use CHECK_N.
52249         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
52250         (do_pread64): Don't use CHECK_N.
52251         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
52252         (do_pwrite): Don't use CHECK_N.
52253         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
52254         (do_pwrite64): Don't use CHECK_N.
52255         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
52256         (__libc_readv): Don't use CHECK_N.
52257         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
52258         (semop): Don't use CHECK_N.
52259         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
52260         <bp-checks.h>.
52261         (semtimedop): Don't use CHECK_N.
52262         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
52263         (__libc_pread): Don't use CHECK_N.
52264         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
52265         <bp-checks.h>.
52266         (__libc_pread64): Don't use CHECK_N.
52267         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
52268         <bp-checks.h>.
52269         (__libc_pwrite): Don't use CHECK_N.
52270         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
52271         <bp-checks.h>.
52272         (__libc_pwrite64): Don't use CHECK_N.
52273         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
52274         <bp-checks.h>.
52275         (__libc_msgrcv): Don't use CHECK_N.
52276         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
52277         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
52278         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
52279         (__libc_writev): Don't use CHECK_N.
52280
52281 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52282
52283         * string/strcpy.c: Removed unused variable.
52284
52285         * Makeconfig (+sysdep-includes): Define with := rather than =.
52286         Use an existing include/ subdir of each sysdeps dir before it.
52287
52288 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52289
52290         * nscd/connection.c (register_traced_file): Comment function.
52291         [HAVE_INOTIFY] (union __inev): Define.
52292         [HAVE_INOTIFY] (inotify_check_files): New function.
52293         [HAVE_INOTIFY] (clear_db_cache): Likewise.
52294         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
52295         clear_db_cache.
52296         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
52297
52298 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52299
52300         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
52301         loaded if not already and that a failure is permanent.
52302
52303 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52304
52305         [BZ #15006]
52306         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
52307         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
52308
52309 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52310
52311         [BZ #13550]
52312         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
52313         (CHECK_1_NULL_OK): Likewise.
52314         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
52315         (__fxstat): Do not use CHECK_1.
52316         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
52317         <bp-checks.h>.
52318         (___fxstat64): Do not use CHECK_1.
52319         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
52320         <bp-checks.h>.
52321         (__fxstatat): Do not use CHECK_1.
52322         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
52323         <bp-checks.h>.
52324         (__fxstatat64): Do not use CHECK_1.
52325         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
52326         <bp-checks.h>.
52327         (__fxstat): Do not use CHECK_1.
52328         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
52329         <bp-checks.h>.
52330         (__fxstatat): Do not use CHECK_1.
52331         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
52332         <bp-checks.h>.
52333         (__getresgid): Do not use CHECK_1.
52334         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
52335         <bp-checks.h>.
52336         (__getresuid): Do not use CHECK_1.
52337         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
52338         <bp-checks.h>.
52339         (__lxstat): Do not use CHECK_1.
52340         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
52341         <bp-checks.h>.
52342         (__old_msgctl): Do not use CHECK_1.
52343         (__new_msgctl): Likewise.
52344         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
52345         <bp-checks.h>.
52346         (__new_setrlimit): Do not use CHECK_1.
52347         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
52348         <bp-checks.h>.
52349         (__old_shmctl): Do not use CHECK_1.
52350         (__new_shmctl): Likewise.
52351         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
52352         <bp-checks.h>.
52353         (__xstat): Do not use CHECK_1.
52354         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
52355         (__lxstat): Do not use CHECK_1.
52356         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
52357         <bp-checks.h>.
52358         (___lxstat64): Do not use CHECK_1.
52359         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
52360         (__old_msgctl): Do not use CHECK_1.
52361         (__new_msgctl): Likewise.
52362         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
52363         <bp-checks.h>.
52364         (__gettimeofday): Do not use CHECK_1.
52365         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
52366         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
52367         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
52368         <bp-checks.h>.
52369         (__gettimeofday): Do not use CHECK_1.
52370         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
52371         (__old_shmctl): Do not use CHECK_1_NULL_OK.
52372         (__new_shmctl): Do not use CHECK_1.
52373         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
52374         <bp-checks.h>.
52375         (do_sigtimedwait): Do not use CHECK_1.
52376         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
52377         <bp-checks.h>.
52378         (do_sigwaitinfo): Do not use CHECK_1.
52379         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
52380         <bp-checks.h>.
52381         (msgctl): Do not use CHECK_1.
52382         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
52383         <bp-checks.h>.
52384         (shmctl): Do not use CHECK_1.
52385         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
52386         (ustat): Do not use CHECK_1.
52387         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
52388         <bp-checks.h>.
52389         (__fxstat): Do not use CHECK_1.
52390         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
52391         <bp-checks.h>.
52392         (__fxstatat): Do not use CHECK_1.
52393         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
52394         <bp-checks.h>.
52395         (__lxstat): Do not use CHECK_1.
52396         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
52397         <bp-checks.h>.
52398         (__xstat): Do not use CHECK_1.
52399         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
52400         (__xstat): Do not use CHECK_1.
52401         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
52402         (___xstat64): Do not use CHECK_1.
52403
52404         [BZ #13550]
52405         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
52406         definitions.
52407         (CHECK_BOUNDS_HIGH): Likewise.
52408         * string/strcpy.c: Do not include <bp-checks.h>.
52409         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
52410
52411 2013-02-07  Roland McGrath  <roland@hack.frob.com>
52412
52413         * nscd/nscd-client.h (__nscd_drop_map_ref):
52414         Add __attribute__ ((unused)).
52415         * nis/nss-nisplus.h (niserr2nss): Likewise.
52416
52417         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
52418         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
52419
52420         * csu/libc-tls.c (init_static_tls, init_slotinfo):
52421         Remove inline keyword.
52422         * include/rounding-mode.h (round_away): Likewise.
52423         * libio/wfileops.c (adjust_wide_data): Likewise.
52424         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
52425         (__m128i_strloadu_tolower): Likewise.
52426         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
52427         (__m128i_strloadu_tolower): Likewise.
52428         * time/mktime.c (ydhms_diff): Likewise.
52429         * locale/elem-hash.h (elem_hash): Likewise.
52430         * locale/setlocale.c (setdata): Likewise.
52431         * posix/regex_internal.h (re_string_char_size_at): Likewise.
52432         (re_string_wchar_at): Likewise.
52433         (bitset_not, bitset_merge, bitset_mask): Likewise.
52434         [!(__GNUC__ > 3)] (inline): Remove macro.
52435         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
52436         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
52437         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
52438         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
52439         * string/memcmp.c (memcmp_bytes): Likewise.
52440         * locale/programs/locarchive.c (compute_hashval): Likewise.
52441         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52442         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52443         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52444         * nss/getent.c (print_rpc, print_protocols): Likewise.
52445         (print_passwd, print_group, print_aliases): Likewise.
52446         * nis/nss-nisplus.h (niserr2nss): Likewise.
52447         * nscd/connections.c (restart_p): Likewise.
52448         Change return type to bool.
52449
52450 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52451
52452         * Makeconfig (all-Depend-files): Add existing
52453         $(sorted-subdirs:=/Depend) files.
52454         (all-subdirs): Remove nss.
52455         * sysdeps/unix/inet/Subdirs: Add it here instead.
52456         * hesiod/Depend: New file.
52457
52458         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52459         instead of calling alloca.
52460
52461         * io/lseek.c (__lseek): Rename to __libc_lseek.
52462         Define __lseek as an alias.
52463
52464         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52465
52466 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52467
52468         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52469         else clause and remove check for non-standard endianness.
52470
52471 2013-02-04  David S. Miller  <davem@davemloft.net>
52472
52473         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52474
52475 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52476
52477         [BZ #13550]
52478         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52479         (__ubp_memchr): Remove prototype.
52480         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52481         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52482         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52483         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52484         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52485         Remove alias.
52486         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52487         (__ubp_memchr): Likewise.
52488         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52489         (__ubp_memchr): Likewise.
52490         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52491         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52492         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52493         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52494         CHECK_STRING.
52495         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52496         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52497         (__getcwd): Do not use CHECK_STRING.
52498         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52499         <bp-checks.h>.
52500         (__real_chown): Do not use CHECK_STRING.
52501         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52502         <bp-checks.h>.
52503         (fchownat): Do not use CHECK_STRING.
52504         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52505         CHECK_STRING.
52506         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52507         <bp-checks.h>.
52508         (__lchown): Do not use CHECK_STRING.
52509         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52510         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52511         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52512         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52514         include <bp-checks.h>.
52515         (truncate64): Do not use CHECK_STRING.
52516         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52517         <bp-checks.h>.
52518         (__real_chown): Do not use CHECK_STRING.
52519         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52520         <bp-checks.h>.
52521         (__lchown): Do not use CHECK_STRING.
52522         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52523         <bp-checks.h>.
52524         (__chown): Do not use CHECK_STRING.
52525         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52526         <bp-checks.h>.
52527         (truncate64): Do not use CHECK_STRING.
52528         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52529         Likewise.
52530         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52531         (__xmknod): Do not use CHECK_STRING.
52532         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52533         <bp-checks.h>.
52534         (__xmknodat): Do not use CHECK_STRING.
52535         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52536         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52537
52538 2013-02-04  Andreas Schwab  <schwab@suse.de>
52539
52540         [BZ #14142]
52541         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52542         * include/netdb.h: Likewise for h_errno.
52543         * elf/tst-stackguard1.c: Include <tls.h>.
52544
52545 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52546
52547         * elf/link.h (struct link_map): Extend the l_addr comment.
52548         * include/link.h (struct link_map): Likewise.
52549
52550 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52551
52552         [BZ #13550]
52553         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52554         (BOUNDED_1): Remove macro.
52555         * debug/backtrace.c: Don't include <bp-checks.h>.
52556         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52557         (__backtrace): Likewise.
52558         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52559         <bp-checks.h>.
52560         (__backtrace): Don't use BOUNDED_1.
52561         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52562         <bp-checks.h>.
52563         (__backtrace): Don't use BOUNDED_1.
52564         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52565         (__backtrace): Don't use BOUNDED_1.
52566         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52567         (shmat): Don't use BOUNDED_N.
52568
52569 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52570
52571         [BZ #13550]
52572         * sysdeps/generic/bp-start.h: Remove file.
52573         * csu/libc-start.c: Don't include <bp-start.h>.
52574         (LIBC_START_MAIN): Set up __environ directly instead of using
52575         INIT_ARGV_and_ENVIRON.
52576         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52577         <bp-start.h>.
52578
52579         [BZ #13550]
52580         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52581         definitions.
52582         (CHECK_FCNTL): Likewise.
52583         (CHECK_N_PAGES): Likewise.
52584
52585         [BZ #13550]
52586         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52587         definitions.
52588         (CHECK_SIGSET_NULL_OK): Likewise.
52589         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52590         <bp-checks.h>.
52591         (sigpending): Don't use CHECK_SIGSET.
52592         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52593         <bp-checks.h>.
52594         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52595         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52596         <bp-checks.h>.
52597         (do_sigsuspend): Don't use CHECK_SIGSET.
52598         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52599         use CHECK_SIGSET.
52600         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52601         (do_sigwait): Don't use CHECK_SIGSET.
52602         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52603         use CHECK_SIGSET.
52604         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52605         include <bp-checks.h>.
52606         (sigpending): Don't use CHECK_SIGSET.
52607         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52608         include <bp-checks.h>.
52609         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52610         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52611         <bp-checks.h>.
52612         (sigpending): Don't use CHECK_SIGSET.
52613         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52614         <bp-checks.h>.
52615         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52616
52617         [BZ #13550]
52618         * sysdeps/generic/bp-semctl.h: Remove file.
52619         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52620         <bp-checks.h> and <bp-semctl.h>.
52621         (__old_semctl): Don't use CHECK_SEMCTL.
52622         (__new_semctl): Likewise.
52623         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52624         and <bp-semctl.h>.
52625         (__old_semctl): Don't use CHECK_SEMCTL.
52626         (__new_semctl): Likewise.
52627         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52628         <bp-checks.h> and <bp-semctl.h>.
52629         (__old_semctl): Don't use CHECK_SEMCTL.
52630         (__new_semctl): Likewise.
52631         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52632         <bp-checks.h> and <bp-semctl.h>.
52633         (semctl): Don't use CHECK_SEMCTL.
52634
52635         [BZ #13550]
52636         * Makerules (elide-bp-thunks): Remove variable.
52637         (elide-routines.oS): Don't use $(elide-bp-thunks).
52638         (elide-routines.os): Likewise.
52639         (elide-routines.o): Likewise.
52640         (elide-routines.op): Likewise.
52641         (elide-routines.og): Likewise.
52642         (objects): Don't use $(bp-thunks).
52643         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52644         include.
52645         (common-generated): Do not add s-proto-bp.d.
52646         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52647         (int): Likewise.
52648         (typ): Likewise.
52649         Do not generate makefile rules for bounded-pointer thunks.
52650         * sysdeps/generic/bp-thunks.h: Remove file.
52651         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52652         * sysdeps/unix/s-proto-bp.S: Likewise.
52653
52654         [BZ #15062]
52655         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52656         parts of result separately when argument is not close to line from
52657         -i to i and one part of argument is small.
52658         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52659         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52660         * math/libm-test.inc (cacos_test): Add more tests.
52661         (casin_test): Likewise.
52662         (casinh_test): Likewise.
52663         * sysdeps/i386/fpu/libm-test-ulps: Update.
52664         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52665
52666 2013-01-31  David S. Miller  <davem@davemloft.net>
52667
52668         * po/de.po: Update from translation team.
52669
52670 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52671
52672         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52673
52674 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52675
52676         * configure.in (_AC_PROG_CC_C89): New definition.
52677         * configure: Regenerate.
52678
52679         * configure.in (AC_PROG_CPP): New definition.
52680         * configure: Regenerate.
52681
52682 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52683
52684         * debug/tst-backtrace.h: New file.
52685         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52686         (ret): Remove variable.
52687         (x): Likewise.
52688         (FAIL): Remove macro.
52689         (NO_INLINE): Likewise.
52690         (fn1): Use match function instead of strstr.
52691         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52692         (ret): Remove variable.
52693         (x): Likewise.
52694         (FAIL): Remove macro.
52695         (NO_INLINE): Likewise.
52696         (fn): Use match function instead of strstr.
52697         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52698         (ret): Remove variable.
52699         (x): Likewise.
52700         (FAIL): Remove macro.
52701         (NO_INLINE): Likewise.
52702         (handle_signal): Use match function instead of strstr.
52703         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52704         (ret): Remove variable.
52705         (x): Likewise.
52706         (FAIL): Remove macro.
52707         (NO_INLINE): Likewise.
52708         (handle_signal): Use match function instead of strstr.
52709
52710 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52711
52712         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52713
52714 2013-01-23  David S. Miller  <davem@davemloft.net>
52715
52716         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52717         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52718         argument of CAS if possible.
52719         * sysdeps/sparc/sparc64/bits/atomic.h
52720         (__arch_compare_and_exchange_val_32_acq): Likewise.
52721         (__arch_compare_and_exchange_val_64_acq): Likewise.
52722
52723 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52724
52725         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52726         * sysdeps/posix/ulimit.c: ... this.
52727         Include <limits.h>.
52728         * sysdeps/unix/bsd/ulimit.c: Remove file.
52729
52730 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52731
52732         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52733         (LDFLAGS-tst-array5): Likewise.
52734
52735 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52736
52737         [BZ #15036]
52738         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52739         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52740         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52741         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52742
52743 2013-01-21  David S. Miller  <davem@davemloft.net>
52744
52745         * sysdeps/sparc/backtrace.c: New file.
52746         * sysdeps/sparc/sparc32/backtrace.h: New file.
52747         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52748         * sysdeps/sparc/sparc64/backtrace.h: New file.
52749         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52750         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52751         -funwind-tables.
52752
52753 2013-01-21  Andreas Schwab  <schwab@suse.de>
52754
52755         [BZ #15020]
52756         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52757         closed its stdout.
52758
52759 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52760
52761         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52762         "mpa2.h".
52763         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52764
52765 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52766             Mark Mitchell  <mark@codesourcery.com>
52767             Tom de Vries  <tom@codesourcery.com>
52768             Paul Pluzhnikov  <ppluzhnikov@google.com>
52769
52770         * debug/tst-backtrace2.c: New file.
52771         * debug/tst-backtrace3.c: Likewise.
52772         * debug/tst-backtrace4.c: Likewise.
52773         * debug/tst-backtrace5.c: Likewise.
52774         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52775         (CFLAGS-tst-backtrace3.c): Likewise.
52776         (CFLAGS-tst-backtrace4.c): Likewise.
52777         (CFLAGS-tst-backtrace5.c): Likewise.
52778         (LDFLAGS-tst-backtrace2): Likewise.
52779         (LDFLAGS-tst-backtrace3): Likewise.
52780         (LDFLAGS-tst-backtrace4): Likewise.
52781         (LDFLAGS-tst-backtrace5): Likewise.
52782         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52783         tst-backtrace4 and tst-backtrace5.
52784
52785 2013-01-18  Anton Blanchard  <anton@samba.org>
52786             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52787
52788         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52789         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52790         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52791         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52793         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52794         "+r" and remove output regs list as redundant.  Add explicit inline
52795         asm to specify register of return val to work around compiler codegen
52796         bug.  Remove (int) cast on return value.  Add return type parameter to
52797         use in macro so that this macro does not truncate return value for
52798         64-bit values.
52799         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52800         pass to INTERNAL_VSYSCALL_NCS.
52801         (INLINE_VSYSCALL): Add 'long int' as return type to
52802         INTERNAL_VSYSCALL_NCS macro invocation.
52803         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52804         INTERNAL_VSYSCALL_NCS macro invocation.
52805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52806
52807 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52808
52809         [BZ #14496]
52810         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52811         Fix application of SIMD FP exception mask.
52812
52813         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52814         mp_no from a power of two.
52815         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52816         __mpexp_twomm1.  Use __pow_mp.
52817
52818         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52819         multiplication.
52820
52821 2013-01-17  David S. Miller  <davem@davemloft.net>
52822
52823         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52824
52825 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52826
52827         [BZ #15023]
52828         * include/complex.h: Condition contents on [!_COMPLEX_H].
52829         (__kernel_casinhf): New prototype.
52830         (__kernel_casinh): Likewise.
52831         (__kernel_casinhl): Likewise.
52832         * math/Makefile (libm_calls): Add k_casinh.
52833         * math/k_casinh.c: New file.
52834         * math/k_casinhf.c: Likewise.
52835         * math/k_casinhl.c: Likewise.
52836         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52837         finite nonzero arguments.
52838         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52839         finite nonzero arguments.
52840         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52841         finite nonzero arguments.
52842         * math/s_casinh.c: Do not include <float.h>.
52843         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52844         * math/s_casinhf.c: Do not include <float.h>.
52845         (__casinhf): Move code for finite nonzero arguments to
52846         k_casinhf.c.
52847         * math/s_casinhl.c: Do not include <float.h>.
52848         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52849         redefine.
52850         (__casinhl): Move code for finite nonzero arguments to
52851         k_casinhl.c.
52852         * math/libm-test.inc (cacos_test): Add more tests.
52853         * sysdeps/i386/fpu/libm-test-ulps: Update.
52854         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52855
52856 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52857
52858         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52859         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52860         [!HAVE_MREMAP]: Remove [defined linux] case.
52861         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52862
52863 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52864
52865         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52866
52867 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52868
52869         * elf/elf.h (R_386_SIZE32): New relocation.
52870         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52871         R_386_SIZE32.
52872         (elf_machine_rela): Likewise.
52873         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52874         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52875
52876 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52877
52878         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52879         (FP_FAST_FMA): Do not define.
52880         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52881         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52882         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52883         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52884         !_SOFT_FLOAT]: Likewise.
52885         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52886         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52887         value.
52888         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52889         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52890         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52891         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52892         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52893         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52894         file.
52895
52896 2013-01-16  Andreas Schwab  <schwab@suse.de>
52897
52898         [BZ #14327]
52899         * include/stdlib.h (__mktemp): Add declaration.
52900         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52901         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52902
52903 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52904
52905         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
52906         definitions.
52907         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
52908         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
52909         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
52910         definitions here.
52911         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
52912         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
52913         definitions.
52914         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
52915         and ONE.
52916         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
52917         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
52918         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
52919         definitions.
52920         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
52921         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
52922         definitions.
52923         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
52924
52925         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
52926
52927 2013-01-15  David S. Miller  <davem@davemloft.net>
52928
52929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52930         trunc{,f} to libm-sysdep_routes.
52931         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
52933         file.
52934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
52935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
52936         file.
52937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
52938         file.
52939         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
52940         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
52941         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
52942         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
52943         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
52944         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
52945         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
52946         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
52947
52948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52949         nearbyint{,f} to libm-sysdep_routes.
52950         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
52952         New file.
52953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
52954         file.
52955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
52956         New file.
52957         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
52958         file.
52959         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
52960         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
52961         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
52962         file.
52963         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
52964         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
52965         file.
52966         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
52967         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
52968         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
52969
52970         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
52971         libc_feholdexcept and libc_fesetenv.
52972
52973 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
52974
52975         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
52976
52977 2013-01-14  David S. Miller  <davem@davemloft.net>
52978
52979         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
52980         (SPARC_ASM_VIS2_IFUNC): Likewise.
52981         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
52982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
52983         use of 'siam' instruction.
52984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
52985         Likewise.
52986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
52987         Likewise.
52988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
52989         Likewise.
52990         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
52991         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
52992         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
52993         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
52994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
52995         file.
52996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
52997         file.
52998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
52999         file.
53000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
53001         file.
53002         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
53003         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
53004         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
53005         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
53006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
53007         new VIS2 routines.
53008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
53009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
53010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
53011         Likewise.
53012         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
53013         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
53014         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
53015         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
53016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
53017         routines to libm-sysdep_routines.
53018         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53019
53020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53021         fdim/fdimf to libm-sysdep_routines.
53022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
53023         file.
53024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
53025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
53026         file.
53027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
53028         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
53029         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
53030         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
53031         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
53032         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
53033         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
53034
53035 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
53036
53037         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
53038         to optimize copies.
53039
53040         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
53041         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53042         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53043
53044         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
53045         local variable MPTWO.
53046         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
53047         Likewise.
53048
53049 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53050
53051         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
53052         GLOB_NOESCAPE.
53053
53054 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53055
53056         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
53057
53058 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53059
53060         * manual/pattern.texi (glob_t): Document gl_flags.
53061         (glob64_t): Likewise.
53062
53063 2013-01-11  David S. Miller  <davem@davemloft.net>
53064
53065         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
53066         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
53067         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
53068         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
53069         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
53070         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
53071         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
53072         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
53073         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
53074         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
53075         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
53076         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
53077         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
53078
53079         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53080         sparc V9 rather than using V8 code.
53081         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53082         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53083
53084         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
53085         Move to...
53086         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
53087         Here.
53088
53089 2013-01-11  Roland McGrath  <roland@hack.frob.com>
53090
53091         [BZ #14941]
53092         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
53093         not in the main loop.
53094         * configure: Regenerated.
53095
53096 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
53097
53098         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
53099         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
53100         to just #else.
53101         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
53102         [!__GLIBC_HAVE_LONG_LONG] case.
53103         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
53104         condition to just #else.
53105         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
53106         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
53107         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
53108         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
53109         unconditional.
53110         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
53111         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53112         #elif condition to just #else.
53113         * sysdeps/unix/sysv/linux/sys/sysmacros.h
53114         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
53115         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53116         #elif condition to just #else.
53117
53118 2013-01-11  Steve Ellcey  <sellcey@mips.com>
53119
53120         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
53121         (EF_MIPS_ARCH_64): Fix value.
53122         (EF_MIPS_ARCH_32R2): New.
53123         (EF_MIPS_ARCH_64R2): New.
53124
53125 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
53126
53127         * Makeconfig (+link-pie-before-libc): New.
53128         (+link-pie-after-libc): Likewise.
53129         (+link-pie-tests): Likewise.
53130         (+link-pie): Rewritten.
53131         (link-before-libc): Remove $(config-LDFLAGS).
53132         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
53133         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
53134         (config-LDFLAGS): Renamed to ...
53135         (rtld-LDFLAGS): This.
53136         (rtld-tests-LDFLAGS): New macro.
53137         (link-libc-rpath-link): Likewise.
53138         (link-libc-tests-rpath-link): Likewise.
53139         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
53140         (link-libc): Prepand $(link-libc-rpath-link).
53141         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
53142         (test-program-prefix): New macro.
53143         (test-via-rtld-prefix): Likewise.
53144         (test-program-cmd): Likewise.
53145         (host-test-program-cmd): Likewise.
53146         * Makefile ($(common-objpfx)testrun.sh): Replace
53147         $(run-program-prefix) with $(test-program-prefix).
53148         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
53149         $(rtld-LDFLAGS).
53150         ($(common-objpfx)shlib.lds): Likewise.
53151         (build-module-helper): Likewise.
53152         ($(common-objpfx)format.lds): Likewise.
53153         * Rules (binaries-pie-tests): New.
53154         (binaries-pie-notests): Likewise.
53155         (binaries-pie): Rewritten.
53156         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
53157         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
53158         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
53159         (make-test-out): Replace $(host-built-program-cmd) with
53160         $(host-test-program-cmd).
53161         * config.make.in (build-hardcoded-path-in-tests): New variable.
53162         * configure.in (--enable-hardcoded-path-in-tests): New configure
53163         option.
53164         (hardcoded_path_in_tests): New AC_SUBST.
53165         * configure: Regenerated.
53166         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
53167         $(built-program-cmd) with $(test-program-cmd).
53168         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
53169         (test_program_cmd): This.
53170         * elf/Makefile ($(objpfx)order.out): Run test with
53171         $(test-program-prefix).
53172         ($(objpfx)order2.out): Likewise.
53173         ($(objpfx)tst-initorder.out): Likewise.
53174         ($(objpfx)tst-initorder2.out): Likewise.
53175         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
53176         $(test-program-cmd).
53177         ($(objpfx)tst-array1-static.out): Likewise.
53178         ($(objpfx)tst-array2.out): Likewise.
53179         ($(objpfx)tst-array3.out): Likewise.
53180         ($(objpfx)tst-array4.out): Likewise.
53181         ($(objpfx)tst-array5.out): Likewise.
53182         ($(objpfx)tst-array5-static.out): Likewise.
53183         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
53184         $(test-program-cmd).
53185         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
53186         $(run-program-prefix) with $(test-program-prefix).
53187         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
53188         (test_program_prefix): This.
53189         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
53190         $(run-program-prefix) with $(test-program-prefix).
53191         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
53192         (test_program_prefix): This.
53193         * iconvdata/tst-tables.sh: Likewise.
53194         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
53195         $(run-program-prefix) with $(test-program-prefix).
53196         ($(objpfx)tst-translit.out): Likewise.
53197         ($(objpfx)tst-gettext2.out): Likewise.
53198         ($(objpfx)tst-gettext4.out): Likewise.
53199         ($(objpfx)tst-gettext6.out): Likewise.
53200         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
53201         (test_program_prefix): This.
53202         * intl/tst-gettext2.sh: Likewise.
53203         * intl/tst-gettext4.sh  Likewise.
53204         * intl/tst-gettext6.sh: Likewise.
53205         * intl/tst-translit.sh: Likewise.
53206         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
53207         with $(test-program-cmd).
53208         * libio/Makefile ($(objpfx)test-freopen.out): Replace
53209         $(run-program-prefix) with $(test-program-prefix).
53210         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
53211         (test_program_prefix): This.
53212         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
53213         $(run-program-prefix) with $(test-program-prefix).
53214         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
53215         (test_program_prefix): This.
53216         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
53217         * posix/Makefile ($(objpfx)globtest.out): Replace
53218         $(run-via-rtld-prefix) and $(test-wrapper) with
53219         $(test-program-prefix) and $(test-via-rtld-prefix).
53220         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
53221         $(test-program-prefix).
53222         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
53223         $(host-test-program-cmd).
53224         (tst-spawn-ARGS): Likewise.
53225         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
53226         $(test-program-prefix).
53227         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
53228         (test_via_rtld_prefix): This.
53229         (test_wrapper): Renamed to ...
53230         (test_program_prefix): This.
53231         (run_program_prefix): Replaced by test_program_prefix.
53232         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
53233         (test_program_prefix): This.
53234         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
53235         with $(host-test-program-cmd).
53236         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
53237         $(run-program-prefix) with $(test-program-prefix).
53238         ($(objpfx)tst-printf.out): Likewise.
53239         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
53240         $(test-program-cmd).
53241         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
53242         (test_program_prefix): This.
53243         * stdio-common/tst-unbputc.sh: Likewise.
53244         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
53245         $(run-program-prefix) with $(test-program-prefix).
53246         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
53247         (test_program_prefix): This.
53248         * string/Makefile ($(objpfx)tst-svc.out):  Replace
53249         $(built-program-cmd) with $(test-program-cmd).
53250
53251 2013-01-11  Andreas Jaeger  <aj@suse.de>
53252
53253         [BZ #15003]
53254         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
53255         value. Sync with Linux 3.7.
53256
53257 2013-01-10  David S. Miller  <davem@davemloft.net>
53258
53259         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
53260         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53261         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53262
53263 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53264
53265         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
53266         never set.
53267         * configure: Regenerated.
53268
53269 2013-01-10  David S. Miller  <davem@davemloft.net>
53270
53271         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53272         sparc V9 rather than using V8 code.
53273         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53274         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53275
53276 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53277
53278         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
53279         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
53280         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
53281         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
53282         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
53283         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
53284         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
53285         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
53286         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
53287         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
53288         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
53289         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
53290         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
53291         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
53292         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
53293         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
53294         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
53295         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
53296         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
53297         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
53298         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
53299         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
53300         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
53301         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
53302         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
53303         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
53304         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
53305
53306 2013-01-10  David S. Miller  <davem@davemloft.net>
53307
53308         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53309
53310 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53311
53312         * posix/Makefile (tests-static): New variable.
53313         (tests): Add $(tests-static).
53314         (tst-exec-static-ARGS): New variable.
53315         (tst-spawn-static-ARGS): Likewise.
53316         * posix/tst-exec-static.c: New file.
53317         * posix/tst-spawn-static.c: Likewise.
53318         * posix/tst-exec.c: Support run directly.
53319         * posix/tst-spawn.c: Likewise.
53320
53321 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
53322
53323         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
53324         long.
53325         * math/bits/mathcalls.h (llrint): Likewise.
53326         (llround): Likewise.
53327         * stdlib/stdlib.h (struct drand48_data): Likewise.
53328         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
53329         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
53330         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
53331         Likewise.
53332         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
53333         Likewise.
53334         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
53335         (elf_greg_t): Likewise.
53336         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
53337         (__jmp_buf): Likewise.
53338         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
53339         definitions.
53340         (llrint): Likewise, for all definitions.
53341         (llrintl): Likewise.
53342
53343         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
53344         Remove [__GNUC__] condition.
53345         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
53346         condition to just [__USE_ISOC99].
53347         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
53348
53349 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53350
53351         [BZ #14200]
53352         * sysdeps/unix/sysv/linux/x86/bits/environments.h
53353         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
53354         defined.
53355         (_POSIX_V6_ILP32_OFF32): Likewise.
53356         (_XBS5_ILP32_OFF32): Likewise.
53357         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
53358         (__ILP32_OFFBIG_LDFLAGS): Likewise.
53359
53360 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53361
53362         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
53363
53364         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
53365         doubles __mpexp_twomm1.  Adjust usage.
53366         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
53367         Remove.
53368
53369 2013-01-10  Andreas Schwab  <schwab@suse.de>
53370
53371         [BZ #14964]
53372         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
53373         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
53374
53375 2013-01-09  David S. Miller  <davem@davemloft.net>
53376
53377         [BZ #15003]
53378         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
53379         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
53380         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
53381         (TCP_FASTOPEN): Define.
53382         (tcp_repair_opt): New structure.
53383         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
53384         enum values.
53385         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
53386         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
53387         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
53388         (tcp_cookie_transactions): New structure.
53389
53390 2013-01-09  Anton Blanchard  <anton@samba.org>
53391
53392         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
53393         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
53394         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
53395         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
53396
53397 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
53398
53399         * include/features.h (__USE_ANSI): Remove.
53400
53401 2013-01-09  Roland McGrath  <roland@hack.frob.com>
53402
53403         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
53404
53405         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
53406
53407 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
53408
53409         * sysdeps/s390/fpu/libm-test-ulps: Update.
53410
53411         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53412
53413         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
53414         (__acr): Likewise.
53415         (__cpy): Likewise.
53416         (norm): Likewise.
53417         (denorm): Likewise.
53418         (__mp_dbl): Likewise.
53419         (__dbl_mp): Likewise.
53420         (add_magnitudes): Likewise.
53421         (sub_magnitudes): Likewise.
53422         (__add): Likewise.
53423         (__sub): Likewise.
53424         (__mul): Likewise.
53425         (__inv): Likewise.
53426         (__dvd): Likewise.
53427         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
53428         (__acr): Likewise.
53429         (__cpy): Likewise.
53430         (norm): Likewise.
53431         (denorm): Likewise.
53432         (__mp_dbl): Likewise.
53433         (__dbl_mp): Likewise.
53434         (add_magnitudes): Likewise.
53435         (sub_magnitudes): Likewise.
53436         (__add): Likewise.
53437         (__sub): Likewise.
53438         (__mul): Likewise.
53439         (__inv): Likewise.
53440         (__dvd): Likewise.
53441         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
53442         (__acr): Likewise.
53443         (__cpy): Likewise.
53444         (norm): Likewise.
53445         (denorm): Likewise.
53446         (__mp_dbl): Likewise.
53447         (__dbl_mp): Likewise.
53448         (add_magnitudes): Likewise.
53449         (sub_magnitudes): Likewise.
53450         (__add): Likewise.
53451         (__sub): Likewise.
53452         (__mul): Likewise.
53453         (__inv): Likewise.
53454         (__dvd): Likewise.
53455
53456 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53457
53458         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53459         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53460         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53461         2 && __USE_EXTERN_INLINES]: Likewise.
53462
53463 2013-01-08  Andreas Jaeger  <aj@suse.de>
53464
53465         [BZ# 14985]
53466         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53467         Remove.
53468         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53469         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53470
53471 2013-01-07  Anton Blanchard  <anton@samba.org>
53472
53473         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53474         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53475         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53476         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53477         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53478         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53479         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53480         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53481         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53482         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53483         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53484         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53485         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53486         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53487         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53488         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53489         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53490         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53491         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53492         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53493         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53494         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53495         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53496         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53497         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53498         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53499         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53500         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53501         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53502         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53503         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53504         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53505         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53506         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53507         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53508         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53509         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53510         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53511         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53512         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53513         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53514         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53515         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53516
53517 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53518
53519         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53520         (__MALLOC_PMT): Likewise.
53521         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53522         [__GNUC__], only on [_LIBC].
53523         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53524         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53525         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53526         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53527         forward declaration.
53528         (realloc_hook_ini): Likewise.
53529         (memalign_hook_ini): Likewise.
53530         (__libc_memalign): Do not use __MALLOC_PMT in variable
53531         declaration.
53532         (__libc_valloc): Likewise.
53533         (__libc_pvalloc): Likewise.
53534         (__libc_calloc): Likewise.
53535         (__posix_memalign): Likewise.
53536
53537         [BZ #14996]
53538         * math/s_casinh.c: Include <float.h>.
53539         (__casinh): Do not do computation with squaring and square root
53540         for large arguments.
53541         * math/s_casinhf.c: Include <float.h>.
53542         (__casinhf): Do not do computation with squaring and square root
53543         for large arguments.
53544         * math/s_casinhl.c: Include <float.h>.
53545         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53546         (__casinhl): Do not do computation with squaring and square root
53547         for large arguments.
53548         * math/libm-test.inc (casin_test): Add more tests.
53549         (casinh_test): Likewise.
53550         * sysdeps/i386/fpu/libm-test-ulps: Update.
53551         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53552
53553 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53554
53555         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53556         (__x86_64_raw_data_cache_size): Likewise.
53557         (__x86_64_data_cache_size_half): Likewise.
53558         (__x86_64_raw_data_cache_size_half): Likewise.
53559         (__x86_64_shared_cache_size): Likewise.
53560         (__x86_64_raw_shared_cache_size): Likewise.
53561         (__x86_64_shared_cache_size_half): Likewise.
53562         (__x86_64_raw_shared_cache_size_half): Likewise.
53563         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53564         to ...
53565         (__x86_data_cache_size): This.
53566         (__x86_64_raw_data_cache_size): Renamed to ...
53567         (__x86_raw_data_cache_size): This.
53568         (__x86_64_data_cache_size_half): Renamed to ...
53569         (__x86_data_cache_size_half): This.
53570         (__x86_64_raw_data_cache_size_half): Renamed to ...
53571         (__x86_raw_data_cache_size_half): This.
53572         (__x86_64_shared_cache_size): Renamed to ...
53573         (__x86_shared_cache_size): This.
53574         (__x86_64_raw_shared_cache_size): Renamed to ...
53575         (__x86_raw_shared_cache_size): This.
53576         (__x86_64_shared_cache_size_half): Renamed to ...
53577         (__x86_shared_cache_size_half): This.
53578         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53579         (__x86_raw_shared_cache_size_half): This.
53580         * sysdeps/x86_64/memcpy.S: Updated.
53581         * sysdeps/x86_64/memset.S: Likewise.
53582         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53583         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53584         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53585
53586 2013-01-04  David S. Miller  <davem@davemloft.net>
53587
53588         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53589
53590 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53591
53592         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53593         1 to avoid redefinition warning.
53594         (__USE_GNU): Don't define.
53595         (init_signaling_nan): Protoize.
53596
53597         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53598
53599 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53600
53601         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53602         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53603         (__cpymn): Likewise.
53604         (norm): Remove commented code.
53605         (denorm): Likewise.
53606         (__mp_dbl): Likewise.
53607         (__inv): Likewise.
53608         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53609         (__cpymn): Likewise.
53610         (norm): Remove commented code.
53611         (denorm): Likewise.
53612         (__mp_dbl): Likewise.
53613         (__inv): Likewise.
53614
53615         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53616         mp_no value for 1.0 and 2.0.
53617         (norm): Use RADIXI instead of radixi.d.
53618         (denorm): Likewise.
53619         (__mul): Use 0.0 instead of zero.d.
53620         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53621         mp_no value for 1.0 and 2.0.
53622         (norm): Use RADIXI instead of radixi.d.
53623         (denorm): Likewise.
53624         (__mul): Use 0.0 instead of zero.d.
53625
53626 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53627
53628         [BZ #14994]
53629         * math/s_casinh.c (__casinh): Reduce finite argument to first
53630         quadrant then set signs of results at the end.
53631         * math/s_casinhf.c (__casinhf): Likewise.
53632         * math/s_casinhl.c (__casinhl): Likewise.
53633         * math/libm-test.inc (casin_test): Add more tests.
53634         (casinh_test): Likewise.
53635         * sysdeps/i386/fpu/libm-test-ulps: Update.
53636         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53637
53638 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53639
53640         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53641
53642         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53643
53644         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53645         declarations.
53646         (denorm): Likewise.
53647         (__mp_dbl): Likewise.
53648         (__inv): Likewise.
53649
53650         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53651         and adjust the header comment.
53652
53653         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53654         variable name from declaration.
53655
53656 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53657
53658         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53659         Initialize COMMON_CPUID_INDEX_7 element.
53660         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53661         (CPUID_RTM): Likewise.
53662         (HAS_RTM): Likewise.
53663         (COMMON_CPUID_INDEX_7): New enum.
53664
53665 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53666
53667         [BZ #14981]
53668         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53669         size is zero, record memory as freed.
53670
53671 2013-01-03  Andreas Jaeger  <aj@suse.de>
53672
53673         * po/ia.po: Add new Interlingua translation.
53674
53675 2012-01-03  Allan McRae  <allan@archlinux.org>
53676
53677         * locale/programs/localedef.c: Fix description of '--posix' flag.
53678
53679 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53680
53681         * NEWS: Update dates in second copyright notice.
53682         * README: Update copyright dates in example.
53683         * manual/libc.texinfo: Update copyright dates.
53684         * scripts/test-installation.pl: Update copyright date in --version
53685         output.
53686
53687         * hurd/ctty-input.c: Fix copyright notice formatting.
53688         * hurd/ctty-output.c: Likewise.
53689         * hurd/dtable.c: Likewise.
53690         * hurd/hurd-raise.c: Likewise.
53691         * hurd/hurdprio.c: Likewise.
53692         * hurd/msgportdemux.c: Likewise.
53693         * misc/sys/file.h: Likewise.
53694         * misc/sys/ioctl.h: Likewise.
53695         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53696         * sysdeps/mach/hurd/chdir.c: Likewise.
53697         * sysdeps/mach/hurd/fchdir.c: Likewise.
53698         * sysdeps/mach/hurd/rename.c: Likewise.
53699         * sysdeps/mach/hurd/rmdir.c: Likewise.
53700         * sysdeps/mach/hurd/seekdir.c: Likewise.
53701         * sysdeps/mach/hurd/setsid.c: Likewise.
53702         * sysdeps/posix/wait3.c: Likewise.
53703
53704         * All files with FSF copyright notices: Update copyright dates
53705         using scripts/update-copyrights.
53706         * intl/plural.c: Regenerated.
53707         * locale/programs/charmap-kw.h: Likewise.
53708         * locale/programs/locfile-kw.h: Likewise.
53709
53710 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53711
53712         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53713         four values.
53714
53715         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53716         calculation loop and add branch prediction.
53717
53718         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53719         check access beyond bounds of m1np.
53720
53721         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53722         MPTWO.
53723         (__inv): Remove local variable MPTWO to use the global
53724         constant.
53725         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53726         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53727         variable MPTWO.
53728         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53729         MP3HALFS static const.
53730
53731 2013-01-01  David S. Miller  <davem@davemloft.net>
53732
53733         * po/ca.po: Update from translation team.
53734
53735 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53736
53737         * scripts/update-copyrights: New file.
53738         * Makeconfig: Reformat copyright notice.
53739         * ctype/ctype.h: Likewise.
53740         * debug/swprintf_chk.c: Likewise.
53741         * elf/dl-cache.c: Likewise.
53742         * elf/dl-debug.c: Likewise.
53743         * elf/dl-object.c: Likewise.
53744         * grp/initgroups.c: Likewise.
53745         * hurd/Makefile: Likewise.
53746         * hurd/hurd/signal.h: Likewise.
53747         * hurd/hurdfault.c: Likewise.
53748         * hurd/hurdioctl.c: Likewise.
53749         * hurd/hurdlookup.c: Likewise.
53750         * hurd/intr-msg.c: Likewise.
53751         * iconv/gconv_open.c: Likewise.
53752         * libio/swprintf.c: Likewise.
53753         * locale/lc-ctype.c: Likewise.
53754         * locale/nl_langinfo.c: Likewise.
53755         * mach/Machrules: Likewise.
53756         * mach/Makefile: Likewise.
53757         * malloc/obstack.h: Likewise.
53758         * manual/Makefile: Likewise.
53759         * manual/tsort.awk: Likewise.
53760         * misc/bits/stab.def: Likewise.
53761         * nis/nis_print_group_entry.c: Likewise.
53762         * nis/nis_table.c: Likewise.
53763         * nis/nss_compat/compat-pwd.c: Likewise.
53764         * nis/nss_compat/compat-spwd.c: Likewise.
53765         * po/Makefile: Likewise.
53766         * posix/fnmatch.c: Likewise.
53767         * posix/regex.h: Likewise.
53768         * resolv/Makefile: Likewise.
53769         * resolv/nss_dns/dns-network.c: Likewise.
53770         * resolv/res_hconf.c: Likewise.
53771         * scripts/gen-sorted.awk: Likewise.
53772         * soft-fp/soft-fp.h: Likewise.
53773         * stdio-common/printf.h: Likewise.
53774         * stdlib/monetary.h: Likewise.
53775         * stdlib/random.c: Likewise.
53776         * stdlib/random_r.c: Likewise.
53777         * sysdeps/generic/Makefile: Likewise.
53778         * sysdeps/gnu/Makefile: Likewise.
53779         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53780         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53781         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53782         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53783         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53784         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53785         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53786         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53787         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53788         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53789         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53790         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53791         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53792         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53793         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53794         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53795         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53796         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53797         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53798         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53799         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53800         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53801         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53802         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53803         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53804         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53805         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53806         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53807         * sysdeps/mach/hurd/errnos.awk: Likewise.
53808         * sysdeps/mach/hurd/fork.c: Likewise.
53809         * sysdeps/mach/hurd/getcwd.c: Likewise.
53810         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53811         * sysdeps/mach/hurd/mmap.c: Likewise.
53812         * sysdeps/mach/hurd/utimes.c: Likewise.
53813         * sysdeps/mach/hurd/xmknod.c: Likewise.
53814         * sysdeps/posix/profil.c: Likewise.
53815         * sysdeps/posix/readdir_r.c: Likewise.
53816         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53817         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53818         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53819         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53820         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53821         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53822         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53823         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53824         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53825         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53826         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53827         * sysdeps/pthread/lio_listio.c: Likewise.
53828         * sysdeps/sparc/dl-procinfo.h: Likewise.
53829         * sysdeps/unix/i386/sysdep.S: Likewise.
53830         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53831         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53832         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53833         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53835         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53836         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53837         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53838         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53839         * sysdeps/wordsize-32/divdi3.c: Likewise.
53840         * time/sys/time.h: Likewise.
53841         * wcsmbs/Makefile: Likewise.
53842
53843 2013-01-01  David S. Miller  <davem@davemloft.net>
53844
53845         * po/fr.po: Update from translation team.
53846
53847         * catgets/gencat.c: Update copyright year.
53848         * csu/version.c: Likewise.
53849         * debug/catchsegv.sh: Likewise.
53850         * debug/pcprofiledump.c: Likewise.
53851         * debug/xtrace.sh: Likewise.
53852         * elf/ldconfig.c: Likewise.
53853         * elf/ldd.bash.in: Likewise.
53854         * elf/pldd.c: Likewise.
53855         * elf/sotruss.ksh: Likewise.
53856         * elf/sprof.c: Likewise.
53857         * iconv/iconv_prog.c: Likewise.
53858         * iconv/iconvconfig.c: Likewise.
53859         * locale/programs/locale.c: Likewise.
53860         * locale/programs/localedef.c: Likewise.
53861         * login/programs/pt_chown.c: Likewise.
53862         * malloc/memusage.sh: Likewise.
53863         * malloc/memusagestat.c: Likewise.
53864         * malloc/mtrace.pl: Likewise.
53865         * nscd/nscd.c: Likewise.
53866         * nss/getent.c: Likewise.
53867         * nss/makedb.c: Likewise.
53868         * posix/getconf.c: Likewise.
53869
53870 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53871
53872         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53873         numbers.
53874
53875 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53876
53877         * math/bits/mathcalls.h (modf): Use __nonnull.
53878
53879 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53880
53881         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53882         (split): Use macro CN instead of the bare value.
53883         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53884         could be used.
53885         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53886         instead of the bare value.
53887         (power1): Likewise.
53888
53889 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53890
53891         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53892         __ATAN_TWOM.
53893         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53894
53895         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53896         their values.
53897         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53898         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53899         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53900         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53901
53902 2012-12-28  Andreas Jaeger  <aj@suse.de>
53903
53904         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
53905         values are from Linux 3.7.
53906
53907         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
53908         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
53909
53910 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53911
53912         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
53913         TRUE case.
53914
53915         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
53916         (norm): Likewise.
53917         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
53918         variables with preprocessor constants.
53919         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53920         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
53921         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
53922
53923 2012-12-27  Bruno Haible  <bruno@clisp.org>
53924
53925         [BZ #14317]
53926         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
53927         only if needed.
53928
53929 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53930
53931         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
53932         and use variable directly.
53933         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
53934
53935         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53936         MPONE.
53937         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
53938         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53939         variable MPONE.
53940         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53941         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53942         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
53943         include directive.  Remove local variable MPONE.
53944         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
53945         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
53946         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
53947
53948 2012-12-25  David S. Miller  <davem@davemloft.net>
53949
53950         * version.h (RELEASE): Set to "development".
53951         (VERSION): Set to "2.17.90".
53952         * NEWS: Add 2.18 section.
53953
53954 2012-12-21  David S. Miller  <davem@davemloft.net>
53955
53956         * po/hr.po: Update from translation team.
53957
53958 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53959
53960         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
53961
53962 2012-12-19  Steve Ellcey  <sellcey@mips.com>
53963
53964         * NEWS:  Mention new memcpy for MIPS.
53965
53966 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53967
53968         * manual/contrib.texi (Contributors): Spelling correction.
53969
53970 2012-12-15  David S. Miller  <davem@davemloft.net>
53971
53972         * po/ru.po: Update from translation team.
53973
53974 2012-12-13  David S. Miller  <davem@davemloft.net>
53975
53976         * NEWS: Mention IFUNC testsuite enhancements.
53977
53978         * po/pl.po: Update from translation team.
53979         * po/bg.po: Likewise.
53980
53981         * manual/contrib.texi (Contributors): Update entries for Hongjiu
53982         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
53983
53984 2012-12-11  David S. Miller  <davem@davemloft.net>
53985
53986         * po/sv.po: Update from translation team.
53987
53988         * po/vi.po: Update from translation team.
53989
53990         * po/cs.po: Update from translation team.
53991
53992         * po/de.po: Update from translation team.
53993         * po/eo.po: Likewise.
53994         * po/nl.po: Likewise.
53995
53996 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
53997
53998         [BZ #14246]
53999         * manual/argp.texi (Argp Helper Functions): Move node to follow
54000         Argp Parsing State.
54001
54002         [BZ #14872]
54003         * manual/conf.texi (Limits on File System Capacity): Mention if
54004         terminating null is included in the max size.
54005
54006 2012-12-10  Andreas Jaeger  <aj@suse.de>
54007
54008         * po/cs.po: Update from translation team.
54009
54010 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
54011
54012         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
54013         void pointer and cast to uintptr_t.
54014         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
54015         path.
54016         * sysdeps/s390/s390-64/memcpy.S: Likewise.
54017         * sysdeps/s390/s390-64/memset.S: Likewise.
54018
54019 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
54020
54021         [BZ #14833]
54022         * menual/message.texi (Message Translation): Fix typos.
54023         (Helper programs for gettext): Likewise.
54024
54025 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
54026
54027         [BZ #14898]
54028         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
54029         Change to -1.
54030
54031 2012-12-07  David S. Miller  <davem@davemloft.net>
54032
54033         * po/libc.pot: Update.
54034
54035 2012-12-07  Richard Henderson  <rth@redhat.com>
54036
54037         [BZ #10114]
54038         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
54039         normal/normal case to before the switch.
54040         (_FP_DIV): Likewise.
54041
54042 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
54043             Mike Frysinger  <vapier@gentoo.org>
54044
54045         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
54046         check for __NR_fadvise64_64.
54047
54048 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
54049
54050         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
54051         0, not just to plain "0" as a statement.
54052         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
54053         with cw.
54054
54055 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
54056
54057         * NEWS: Use sourceware.org in Bugzilla URL.
54058
54059 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54060
54061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
54062         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54063
54064         * stdio-common/tst-put-error.c (do_test): Add newline to the
54065         padded test to ensure flush.
54066
54067 2012-12-05  Jeff Law  <law@redhat.com>
54068
54069         * sunrpc/etc.rpc (fedfs_admin): Add entry.
54070
54071 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
54072
54073         * README: Don't refer to ports add-on as distributed separately.
54074         Mention AArch64 in list of systems supported in the ports add-on.
54075
54076         * LICENSES: Add more non-FSF copyright and license notices.
54077
54078         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
54079         ((unused)).
54080
54081         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
54082
54083         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
54084         10000 as width of padded output.
54085
54086 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54087
54088         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
54089
54090         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
54091         variable LX with __attribute__ ((unused)).
54092         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
54093         Likewise.
54094         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
54095         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
54096         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
54097         with __attribute__ ((unused)).
54098
54099 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
54100
54101         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
54102
54103 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54104
54105         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
54106         (CFLAGS-nldbl-acos.c): New variable.
54107         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
54108         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
54109         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
54110         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
54111         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
54112         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
54113         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
54114         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
54115         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
54116         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
54117         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
54118         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
54119         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
54120         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
54121         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
54122         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
54123         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
54124         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
54125         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
54126         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
54127         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
54128         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
54129         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
54130         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
54131         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
54132         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
54133         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
54134         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
54135         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
54136         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
54137         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
54138         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
54139         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
54140         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
54141         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
54142         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
54143         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
54144         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
54145         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
54146         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
54147         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
54148         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
54149         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
54150         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
54151         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
54152         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
54153         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
54154         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
54155         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
54156         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
54157         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
54158         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
54159         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
54160         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
54161         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
54162         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
54163         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
54164         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
54165         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
54166         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
54167         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
54168         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
54169         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
54170         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
54171         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
54172         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
54173         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
54174         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
54175         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
54176         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
54177         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
54178         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
54179         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
54180         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
54181         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
54182         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
54183         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
54184         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
54185         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
54186         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
54187         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
54188         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
54189         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
54190         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
54191         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
54192         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
54193         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
54194         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
54195         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
54196         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
54197         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
54198         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
54199         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
54200         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
54201         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
54202         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
54203         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
54204
54205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
54206         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54207
54208         [BZ #14914]
54209         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
54210         whole low double instead of just low 47 bits when splitting values
54211         into two parts.
54212
54213 2012-12-03  Allan McRae  <allan@archlinux.org>
54214
54215         * manual/stdio.texi (Predefined Printf Handlers): Remove
54216         @hsep and @vsep usage.
54217
54218 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
54219
54220         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
54221         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
54222
54223 2012-12-03  Jeff Law  <law@redhat.com>
54224
54225         * time/sys/time.h (settimeofday): Do not mark TV argument
54226         as __nonnull.
54227
54228 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
54229
54230         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
54231         when currently writing and seek to current position when not.
54232         * libio/Makefile (tests): Remove bug-fclose1.
54233         * libio/bug-fclose1.c: Delete.
54234
54235 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
54236
54237         * manual/arith.texi (feenableexcept): Fix typo.
54238         (fedisableexcept): Likewise.
54239
54240 2012-11-30  Roland McGrath  <roland@hack.frob.com>
54241
54242         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
54243         second, differently-typed declaration, rather than a cast.
54244
54245 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
54246
54247         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
54248         * include/rpc/svc.h: ... here.
54249
54250 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
54251
54252         [BZ #13013]
54253         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
54254         depending n and resplen2 to catch cases where answer
54255         equals answerp2.
54256
54257 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
54258
54259         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
54260         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
54261
54262 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
54263
54264         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
54265
54266 2012-11-29  Roland McGrath  <roland@hack.frob.com>
54267
54268         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
54269
54270 2012-11-28  Jeff Law  <law@redhat.com>
54271
54272         [BZ #13761]
54273         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
54274         dataset_temporary.  Track alloca usage into alloca_used.
54275         If dataset is large allocate and release it via malloc/free.
54276
54277 2012-06-04  Florian Weimer  <fweimer@redhat.com>
54278
54279         [BZ #14197]
54280         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
54281
54282 2012-11-28  David S. Miller  <davem@davemloft.net>
54283
54284         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54285
54286 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54287
54288         [BZ #14803]
54289         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
54290         of pi/2 rounded to nearest to 64 bits.
54291         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
54292         nearest to 64 bits.
54293         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
54294         bits.
54295
54296 2012-11-28  Jeff Law <law@redhat.com>
54297             Martin Osvald <mosvald@redhat.com>
54298
54299         [BZ #14889]
54300         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
54301         * sunrpc/svc.c: Include time.h.
54302         (__svc_accept_failed): New function.
54303         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
54304         any reason other than EINTR, call __svc_accept_failed.
54305         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
54306         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
54307
54308 2012-11-28  Andreas Schwab  <schwab@suse.de>
54309
54310         * scripts/abilist.awk: Also handle indirect functions in .opd
54311         section.
54312
54313 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54314
54315         [BZ #13881]
54316         * sysdeps/x86/fpu/powl_helper.c: New file.
54317         * sysdeps/x86/fpu/Makefile: Likewise.
54318         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
54319         (p3): New object.
54320         (__ieee754_powl): Use __powl_helper for finite arguments except
54321         integer exponents below 8.
54322         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
54323         (p3): New object.
54324         (__ieee754_powl): Use __powl_helper for finite arguments except
54325         integer exponents below 8.
54326         * math/libm-test.inc (pow_test): Add more tests and enable some
54327         previously disabled tests.
54328         * sysdeps/i386/fpu/libm-test-ulps: Update.
54329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54330
54331 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54332             Carlos O'Donell  <carlos_odonell@mentor.com>
54333
54334         * nss/makedb.c (is_prime): Assert that input is odd and greater
54335         than 4.  Note that fact in a comment too.
54336         (next_prime): Add 4 to input.
54337
54338 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54339
54340         [BZ #11741]
54341         * libio/Makefile (tests): Add test case tst-fwrite-error.
54342         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
54343         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
54344         * libio/tst-fwrite-error.c: New test case.
54345
54346 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
54347
54348         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
54349         before casting to void *.
54350         * include/libc-internal.h (__pointer_type): New macro.
54351         (__integer_if_pointer_type_sub): Likewise.
54352         (__integer_if_pointer_type): Likewise.
54353         (cast_to_integer): Likewise.
54354         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
54355         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
54356         before casting to atomic64_t.
54357         (atomic_exchange_acq): Likewise.
54358         (__arch_exchange_and_add_body): Likewise.
54359         (__arch_add_body): Likewise.
54360         (atomic_add_negative): Likewise.
54361         (atomic_add_zero): Likewise.
54362
54363 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
54364
54365         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
54366         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
54367         (add_fdes): Likewise.
54368         (linear_search_fdes): Likewise.
54369         (binary_search_unencoded_fdes): Likewise.
54370
54371 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
54372
54373         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
54374
54375 2012-11-24  Adam Conrad  <adconrad@0c3.net>
54376
54377         * configure.in: Autodetect C++ header directories.
54378         * configure: Regenerated.
54379
54380 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
54381
54382         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
54383
54384 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
54385
54386         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54387
54388 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
54389
54390         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
54391         LDBL_MANT_DIG == 106]: Disable some tests.
54392         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54393         Likewise.
54394         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54395         Likewise.
54396
54397         [BZ #14871]
54398         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
54399         input for small inputs.  Return +/- pi/2 for large inputs.
54400         * math/libm-test.inc (atan_test): Add more tests.
54401
54402         * sysdeps/generic/unwind-dw2-fde-glibc.c
54403         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
54404         __attribute__ ((unused)).
54405
54406         [BZ #14645]
54407         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
54408         x * y if x and y are nonzero and z is zero.
54409
54410         [BZ #14811]
54411         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
54412         nonzero exponents with absolute value below 0x1p-117 to +/-
54413         0x1p-117.
54414
54415         [BZ #14869]
54416         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
54417         up arguments below 2**-450, not just those below 2**-500.
54418         * math/libm-test.inc (hypot_test): Add another test.
54419
54420         [BZ #14868]
54421         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
54422         Return a+b for ratio over 2**120, not 2**60.
54423         * math/libm-test.inc (hypot_test): Add another test.
54424
54425         * math/libm-test.inc (clog_test): Use
54426         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
54427         (clog10_test): Likewise.
54428
54429         [BZ #6778]
54430         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
54431
54432 2012-11-22  Andreas Schwab  <schwab@suse.de>
54433
54434         * sysdeps/i386/fpu/libm-test-ulps: Update.
54435
54436 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
54437
54438         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
54439         printf output with newline.
54440
54441 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54442
54443         [BZ #14865]
54444         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54445         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54446         -z nodlopen, -z initfirst and -z execstack support.
54447         * configure: Regenerated.
54448
54449         * elf/elf.h (DF_1_NODIRECT): New macro.
54450         (DF_1_IGNMULDEF): Likewise.
54451         (DF_1_NOKSYMS): Likewise.
54452         (DF_1_NOHDR): Likewise.
54453         (DF_1_EDITED): Likewise.
54454         (DF_1_NORELOC): Likewise.
54455         (DF_1_SYMINTPOSE): Likewise.
54456         (DF_1_GLOBAUDIT): Likewise.
54457         (DF_1_SINGLETON): Likewise.
54458         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54459         DT_1_SUPPORTED_MASK bits.
54460         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54461
54462 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54463
54464         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54465
54466 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54467
54468         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54469         macro.
54470
54471         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54472         (sendmmsg): Move declarations...
54473         * socket/sys/socket.h: ... here.
54474         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54475         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54476         include it from...
54477         * socket/recvmmsg.c: ... this new file.
54478         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54479         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54480         definition of __sendmmsg hidden.
54481         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54482         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54483         Move ENOSYS stub into and include it from...
54484         * socket/sendmmsg.c: ... this new file.
54485         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54486         (sysdep_routines): Move recvmmsg and sendmmsg...
54487         * socket/Makefile (routines): ... here.
54488         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54489         (GLIBC_PRIVATE): Add __sendmmsg.
54490         * include/sys/socket.h (__sendmmsg): Add declarations.
54491         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54492         sendmmsg.
54493
54494 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54495
54496         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54497         variable I1 with __attribute__ ((unused)).
54498         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54499
54500 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54501
54502         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54503         DUMMY variables with __attribute__ ((unused)).
54504
54505         * bits/byteswap.h: Include <bits/types.h>.
54506         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54507
54508 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54509
54510         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54511         string_t.  Do not manually set errno.
54512         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54513         length with __strnlen.  Make sure to both set errno and return it on
54514         failure.
54515
54516 2012-11-19  David S. Miller  <davem@davemloft.net>
54517
54518         With help from Joseph Myers.
54519         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54520         very large arguments properly.
54521         * math/libm-test.inc (atan_test): New tests.
54522         (atan2_test): New tests.
54523         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54524         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54525
54526 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54527
54528         [BZ #14856]
54529         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54530         Define to 3.
54531
54532         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54533         [POSIX] (EADDRNOTAVAIL): Likewise.
54534         [POSIX] (EAFNOSUPPORT): Likewise.
54535         [POSIX] (EALREADY): Likewise.
54536         [POSIX] (ECONNABORTED): Likewise.
54537         [POSIX] (ECONNREFUSED): Likewise.
54538         [POSIX] (ECONNRESET): Likewise.
54539         [POSIX] (EDESTADDRREQ): Likewise.
54540         [POSIX] (EDQUOT): Likewise.
54541         [POSIX] (EHOSTUNREACH): Likewise.
54542         [POSIX] (EIDRM): Likewise.
54543         [POSIX] (EISCONN): Likewise.
54544         [POSIX] (ELOOP): Likewise.
54545         [POSIX] (EMULTIHOP): Likewise.
54546         [POSIX] (ENETDOWN): Likewise.
54547         [POSIX] (ENETUNREACH): Likewise.
54548         [POSIX] (ENOBUFS): Likewise.
54549         [POSIX] (ENODATA): Likewise.
54550         [POSIX] (ENOLINK): Likewise.
54551         [POSIX] (ENOMSG): Likewise.
54552         [POSIX] (ENOPROTOOPT): Likewise.
54553         [POSIX] (ENOSR): Likewise.
54554         [POSIX] (ENOSTR): Likewise.
54555         [POSIX] (ENOTCONN): Likewise.
54556         [POSIX] (ENOTSOCK): Likewise.
54557         [POSIX] (EOPNOTSUPP): Likewise.
54558         [POSIX] (EOVERFLOW): Likewise.
54559         [POSIX] (EPROTO): Likewise.
54560         [POSIX] (EPROTONOSUPPORT): Likewise.
54561         [POSIX] (EPROTOTYPE): Likewise.
54562         [POSIX] (ESTALE): Likewise.
54563         [POSIX] (ETIME): Likewise.
54564         [POSIX] (ETXTBSY): Likewise.
54565         [POSIX] (EWOULDBLOCK): Likewise.
54566         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54567         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54568         [POSIX] (SEEK_CUR): Likewise.
54569         [POSIX] (SEEK_END): Likewise.
54570         [POSIX || UNIX98] (mode_t): Do not require.
54571         [POSIX] (off_t): Likewise.
54572         [POSIX] (pid_t): Likewise.
54573         [POSIX] (sys/stat.h): Do not allow header.
54574         [POSIX] (unistd.h): Likewise.
54575         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54576         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54577         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54578         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54579         require.
54580         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54581         sigevent): Specify elements.
54582         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54583         entry.
54584         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54585         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54586
54587         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54588         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54589         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54590         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54591         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54592         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54593         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54594         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54595         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54596         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54597         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54598         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54599         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54600         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54601         Likewise.
54602         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54603         Likewise.
54604         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54605         Likewise.
54606         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54607         Likewise.
54608         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54609         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54610         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54611         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54612         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54613         Specify lower bound on value.
54614         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54615         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54616         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54617         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54618         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54619         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54620         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54621         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54622         value.
54623         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54624         as optional.
54625         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54626         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54627         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54628         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54629         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54630         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54631         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54632         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54633         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54634         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54635         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54636         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54637         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54638         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54639         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54640         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54641         entry.
54642         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54643         optional.
54644         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54645         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54646         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54647         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54648         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54649         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54650         Likewise.
54651         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54652         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54653         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54654         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54655         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54656         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54657         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54658         as optional.
54659         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54660         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54661         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54662         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54663         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54664         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54665         specify as optional.
54666         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54667         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54668         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54669         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54670         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54671         [XPG3] (NL_LANGMAX): Likewise.
54672         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54673         [POSIX || XPG3] (NL_NMAX): Likewise.
54674         [POSIX || XPG3] (NL_SETMAX): Likewise.
54675         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54676         [XPG3] (NZERO): Likewise.
54677         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54678         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54679         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54680         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54681         (REG_ERANGE): Expect.
54682         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54683         optional-constant.
54684         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54685         Use (void) in prototype.
54686         [POSIX] (*_t): Allow.
54687         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54688         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54689         (WRDE_BADVAL): Expect.
54690
54691         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54692         expect.
54693         [XPG3 || XPG4] (O_RSYNC): Likewise.
54694         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54695         Likewise.
54696         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54697         [XPG3 || XPG4] (sigqueue): Likewise.
54698         [XPG3 || XPG4] (sigtimedwait): Likewise.
54699         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54700         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54701         [XPG3 || XPG4] (vsnprintf): Likewise.
54702         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54703         Likewise.
54704         [XPG3 || XPG4] (blksize_t): Likewise.
54705         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54706         Likewise.
54707         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54708         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54709         [XPG3 || XPG4] (struct itimerspec): Likewise.
54710         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54711         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54712         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54713         [XPG3 || XPG4] (clockid_t): Likewise.
54714         [XPG3 || XPG4] (timer_t): Likewise.
54715         [XPG3 || XPG4] (clock_getres): Likewise.
54716         [XPG3 || XPG4] (clock_gettime): Likewise.
54717         [XPG3 || XPG4] (clock_settime): Likewise.
54718         [XPG3 || XPG4] (nanosleep): Likewise.
54719         [XPG3 || XPG4] (timer_create): Likewise.
54720         [XPG3 || XPG4] (timer_delete): Likewise.
54721         [XPG3 || XPG4] (timer_gettime): Likewise.
54722         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54723         [XPG3 || XPG4] (timer_settime): Likewise.
54724         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54725         [XPG3 || XPG4] (getlogin_r): Likewise.
54726         [XPG3 || XPG4] (pread): Likewise.
54727         [XPG3 || XPG4] (pthread_atfork): Likewise.
54728         [XPG3 || XPG4] (pwrite): Likewise.
54729
54730         [BZ #14835]
54731         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54732         <bits/siginfo.h>.
54733
54734 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54735
54736         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54737         finalizing MALLSTREAM.
54738
54739         * sysdeps/mach/hurd/syncfs.c: New file.
54740
54741 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54742
54743         [BZ #14719]
54744         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54745         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54746         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54747         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54748         (_nss_dns_gethostbyname4_r): Likewise.
54749         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54750         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54751
54752 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54753
54754         [BZ #13763]
54755         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54756
54757 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54758
54759         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54760         * elf/cache.c (print_entry): Print ",AArch64" for
54761         FLAG_AARCH64_LIB64
54762
54763         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54764         * elf/cache.c (print_entry): Print ",hard-float" for
54765         FLAG_ARM_LIBHF.
54766
54767 2012-11-18  David S. Miller  <davem@davemloft.net>
54768
54769         With help from Joseph Myers.
54770         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54771         cutoff to 2**-13.
54772         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54773         cutoff to 2**-25.
54774         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54775         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54776         small.
54777         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54778         * math/libm-test.inc (y0_test): New tests.
54779         (y1_test): New tests.
54780         * sysdeps/i386/fpu/libm-test-ulps: Update.
54781         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54782         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54783
54784 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54785
54786         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54787         64-bit targets.
54788         * configure: Regenerated.
54789
54790 2012-11-17  David S. Miller  <davem@davemloft.net>
54791
54792         [BZ #14811]
54793         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54794         nonzero exponents with absolute value below 0x1p-128 to +/-
54795         0x1p-128.
54796
54797 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54798
54799         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54800
54801         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54802
54803         * posix/getconf-speclist.c: New file.
54804         * posix/posix-envs.def: Likewise.
54805         * posix/confstr.c (START_ENV_GROUP): New macro.
54806         (END_ENV_GROUP): Likewise.
54807         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54808         (KNOWN_PRESENT_ENV_STRING): Likewise.
54809         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54810         (UNKNOWN_ENVIRONMENT): Likewise.
54811         (confstr): Include posix-envs.def instead of handling
54812         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54813         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54814         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54815         (END_ENV_GROUP): Likewise.
54816         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54817         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54818         (UNKNOWN_ENVIRONMENT): Likewise.
54819         (__sysconf): Include posix-envs.def instead of handling associated
54820         cases directly here.
54821         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54822         preprocessing getconf-speclist.c rather than running getconf or
54823         generating empty file.
54824
54825 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54826
54827         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54828
54829 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54830
54831         [BZ #14672]
54832         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54833
54834 2012-11-16  David S. Miller  <davem@davemloft.net>
54835
54836         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54837         smaller than LDBL_EPSILON/2.0L, just return xm1.
54838
54839 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54840
54841         * elf/tst-array1.c (init): Set constructor priority to 1000.
54842         (fini): Set destructor priority to 1000.
54843         * elf/tst-array2dep.c: Likewise.
54844
54845 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54846
54847         [BZ #11741]
54848         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54849         (_IO_new_file_xsputn): Also return EOF if none of the input
54850         data was written when overflow failed.
54851         * libio/iopadn.c (_IO_padn): Likewise.
54852         * libio/iowpadn.c (_IO_wpadn): Likewise.
54853         * stdio-common/tst-put-error.c: Add copyright notice.
54854         (do_test): Add case for printing padded string.
54855         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54856         _IO_padn returned error.
54857         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54858         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54859         return EOF.
54860
54861 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54862
54863         * libio/libioP.h: Add comment note that the references to C++
54864         bits are now obsolete.
54865
54866 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54867
54868         * math/libm-test.inc (check_complex): Use asprintf.
54869
54870 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54871
54872         * debug/pcprofiledump.c (print_version): Update copyright year.
54873         * malloc/memusagestat.c (print_version): Likewise.
54874
54875 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54876
54877         [BZ #14831]
54878         * elf/Makefile (tests): Add tst-audit8.
54879         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54880         ($(objpfx)tst-audit8.out): New target.
54881         (tst-audit8-ENV): New variable.
54882         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54883         audit if l_reloc_result is NULL.
54884         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54885         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54886         * elf/tst-audit8.c: New file.
54887
54888 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54889
54890         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54891         * misc/Makefile (CFLAGS-select.c): Define.
54892         * posix/Makefile (CFLAGS-pause.c): Define.
54893
54894 2012-11-13  David S. Miller  <davem@davemloft.net>
54895
54896         * crypt/Makefile: Move test targets after toplevel Rules
54897         inclusion.  Grab any necessary sysdep routines when linking.
54898         * crypt/md5.c (md5_process_block): Remove define, we will always
54899         name it __md5_process_block.
54900         (md5_finish_ctx): Update md5_process_block call.
54901         (md5_stream): Likewise.
54902         (md5_process_bytes): Likewise.
54903         (md5_process_block): Rename to __md5_process_block and move to ...
54904         * crypt/md5-block.c: ... here.
54905         * crypt/sha256.c (sha256_process_block): Move to ...
54906         * crypt/sha256-block.c: ... here.
54907         * crypt/sha512.c (sha512_process_block): Move to ...
54908         * crypt/sha512-block.c: ... here.
54909         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
54910         path.
54911         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
54912         * sysdeps/sparc/sparc64/multiarch/Makefile
54913         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
54914         crypt subdir.
54915         (localedef-aux): Add md5 crypto assembler when in locale subdir.
54916         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
54917         multiarch changes.
54918         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
54919         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
54920         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
54921         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
54922         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
54923         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
54924         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
54925         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
54926         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
54927         file.
54928         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
54929         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
54930         file.
54931         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
54932
54933 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
54934
54935         * timezone/tzselect.ksh: Update from tzcode git revision
54936         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
54937         * timezone/zdump.c: Likewise.
54938         * timezone/zic.c: Likewise.
54939         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
54940         in TZVERSION setting, not $(PKGVERSION).
54941         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
54942         REPORT_BUGS_TO settings.
54943
54944         [BZ #14838]
54945         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
54946         macro.
54947
54948 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54949
54950         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
54951         detection to immediately after _FP_ROUND().
54952         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
54953         bits are 0.
54954
54955 2012-11-11  David S. Miller  <davem@davemloft.net>
54956
54957         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
54958         inttypes.h
54959         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
54960         __close rather than their public counterparts.
54961
54962 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
54963
54964         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
54965         file.
54966         [UNIX98] (sem_timedwait): Do not expect.
54967         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
54968         [XPG4 || UNIX98] (sockatmark): Do not expect.
54969         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
54970         (clock_getcpuclockid): Do not expect.
54971         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
54972         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
54973         Do not expect.
54974         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
54975         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
54976         [UNIX98] (vwscanf): Likewise.
54977         [UNIX98] (vswscanf): Likewise.
54978
54979 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
54980
54981         * timezone/version.h: Remove file.
54982         * timezone/README: Do not refer to version.h.
54983         * timezone/Makefile ($(objpfx)zic.o): New dependency on
54984         $(objpfx)version.h.
54985         ($(objpfx)zdump.o): Likewise.
54986         ($(objpfx)version.h): New target.
54987
54988         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
54989         2012i.
54990         * timezone/README: Don't mention modification to tzselect.ksh.
54991         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
54992         work on unmodified tzselect.ksh.  Substitute version numbers in
54993         tzselect.ksh.
54994
54995         * Makefile (format-me): Remove.
54996         (INSTALL): Adjust indentation.  Use commands directly instead of
54997         using $(format-me).
54998
54999         * aclocal.m4 (ACX_PKGVERSION): New macro.
55000         (ACX_BUGURL): Likewise.
55001         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
55002         (PKGVERSION): New AC_DEFINE_UNQUOTED.
55003         (REPORT_BUGS_TO): Likewise.
55004         * configure: Regenerated.
55005         * config.h.in (PKGVERSION): New macro.
55006         (REPORT_BUGS_TO): Likewise.
55007         * config.make.in (PKGVERSION): New variable.
55008         (PKGVERSION_TEXI): Likewise.
55009         (REPORT_BUGS_TO): Likewise.
55010         (REPORT_BUGS_TEXI): Likewise.
55011         * Makefile (format-me): Use -I$(common-objpfx)manual.
55012         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
55013         ($(common-objpfx)manual/%): New target.
55014         (manual/%): Remove target.
55015         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
55016         (print_version): Use PKGVERSION.
55017         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
55018         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
55019         and REPORT_BUGS_TO.
55020         ($(objpfx)xtrace): Likewise.
55021         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
55022         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
55023         (print_version): Use PKGVERSION.
55024         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
55025         (do_version): Use PKGVERSION.
55026         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
55027         REPORT_BUGS_TO.
55028         (common-ldd-rewrite): Likewise.
55029         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
55030         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
55031         (print_version): Use PKGVERSION.
55032         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
55033         * elf/pldd.c (argp_program_bug_address): Remove variable.
55034         (more_help): New function.
55035         (argp): Use more_help.
55036         (print_version): Use PKGVERSION.
55037         * elf/sln.c (main): Use PKGVERSION.
55038         (usage): Use REPORT_BUGS_TO.
55039         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
55040         (top level): Use PKGVERSION.
55041         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
55042         (print_version): Use PKGVERSION.
55043         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
55044         (print_version): Use PKGVERSION.
55045         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
55046         (print_version): Use PKGVERSION.
55047         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
55048         (print_version): Use PKGVERSION.
55049         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
55050         (print_version): Use PKGVERSION.
55051         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
55052         (print_version): Use PKGVERSION.
55053         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
55054         and BUGURL.
55055         ($(objpfx)memusage): Likewise.
55056         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
55057         (do_version): Use PKGVERSION.
55058         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
55059         (print_version): Use PKGVERSION.
55060         * malloc/mtrace.pl ($PACKAGE): Remove variable.
55061         ($PKGVERSION): New variable.
55062         ($REPORT_BUGS_TO): Likewise.
55063         (usage): Use $REPORT_BUGS_TO.
55064         (top level): Use $PKGVERSION.
55065         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
55066         ($(objpfx)pkgvers.texi): New rule.
55067         ($(objpfx)stamp-pkgvers): Likewise.
55068         * manual/install.texi: Include pkgvers.texi.
55069         (--with-pkgversion): Document new configure option.
55070         (--with-bugurl): Likewise.
55071         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
55072         than necessarily for this particular distribution.  Use
55073         REPORT_BUGS_TO for where to report bugs.
55074         * INSTALL: Regenerated.
55075         * manual/libc.texinfo: Include pkgvers.texi.
55076         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
55077         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
55078         (print_version): Use PKGVERSION.
55079         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
55080         (print_version): Use PKGVERSION.
55081         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
55082         (print_version): Use PKGVERSION.
55083         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
55084         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
55085         macro.
55086         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
55087         (print_version): Use PKGVERSION.
55088         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
55089         (print_version): Use PKGVERSION.
55090         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
55091         and PKGVERSION.
55092
55093         * timezone/checktab.awk: Update from tzcode 2012i.
55094         * timezone/ialloc.c: Likewise.
55095         * timezone/private.h: Likewise.
55096         * timezone/scheck.c: Likewise.
55097         * timezone/tzfile.h: Likewise.
55098         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
55099         (TZVERSION): Hardcode tzcode version number.
55100         * timezone/zdump.c: Update from tzcode 2012i.
55101         * timezone/zic.c: Likewise.
55102         * timezone/version.h: New file.
55103         * timezone/README: Describe version.h.  Update upstream location.
55104
55105         [BZ #14824]
55106         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
55107         (mktemp): Enable declaration.
55108         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
55109         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
55110         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
55111         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
55112         Likewise.
55113         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
55114         Likewise.
55115         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
55116         Likewise.
55117         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
55118         Likewise.
55119         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
55120         Likewise.
55121         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
55122         Likewise.
55123
55124         [BZ #14821]
55125         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
55126         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
55127         for copies of such integer values.
55128         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
55129         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
55130
55131 2012-11-09  Andreas Jaeger  <aj@suse.de>
55132
55133         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
55134         definitions and declarations that are provided by
55135         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
55136
55137 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55138
55139         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
55140         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
55141         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
55142         definition.
55143
55144 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55145
55146         * elf/elf.h: Update comment before AArch64 relocations.
55147
55148 2012-11-07  David S. Miller  <davem@davemloft.net>
55149
55150         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
55151         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
55152         (__start_context): Declare.
55153         (__makecontext_ret): Delete.
55154         (__makecontext): Hook up __start_context instead of
55155         __makecontext_ret.
55156         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
55157         (sysdep_routines): Add __start_context when in stdlib.
55158
55159 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55160
55161         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
55162         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
55163         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
55164         hardcoded "nm".
55165         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
55166         (READELF): New variable.  Use it instead of hardcoded "readelf".
55167
55168 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
55169
55170         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
55171         * sysdeps/x86/Makefile: Here.
55172         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
55173         * sysdeps/x86/tst-xmmymm.sh: This.
55174
55175 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55176
55177         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
55178         expectations.
55179         [UNIX98] (pthread_barrier_t): Do not expect.
55180         [UNIX98] (pthread_barrierattr_t): Likewise.
55181         [UNIX98] (pthread_spinlock_t): Likewise.
55182         [UNIX98] (pthread_barrier_destroy): Likewise.
55183         [UNIX98] (pthread_barrier_init): Likewise.
55184         [UNIX98] (pthread_barrier_wait): Likewise.
55185         [UNIX98] (pthread_barrierattr_destroy): Likewise.
55186         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
55187         [UNIX98] (pthread_barrierattr_init): Likewise.
55188         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
55189         [UNIX98] (pthread_getcpuclockid): Likewise.
55190         [UNIX98] (pthread_mutex_timedlock): Likewise.
55191         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
55192         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
55193         [UNIX98] (pthread_sigmask): Likewise.
55194         [UNIX98] (pthread_spin_destroy): Likewise.
55195         [UNIX98] (pthread_spin_init): Likewise.
55196         [UNIX98] (pthread_spin_lock): Likewise.
55197         [UNIX98] (pthread_spin_trylock): Likewise.
55198         [UNIX98] (pthread_spin_unlock): Likewise.
55199         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
55200         Do not expect.
55201         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
55202         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
55203         [XPG3 || XPG4] (pthread_cond_t): Likewise.
55204         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
55205         [XPG3 || XPG4] (pthread_key_t): Likewise.
55206         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
55207         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
55208         [XPG3 || XPG4] (pthread_once_t): Likewise.
55209         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
55210         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
55211         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
55212         [XPG3 || XPG4] (pthread_t): Likewise.
55213
55214         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
55215         not expect.
55216         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
55217
55218         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
55219         Change function return type to int.
55220
55221         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
55222         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
55223         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
55224         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
55225         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
55226         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
55227         [!POSIX] (posix_madvise): Likewise.
55228         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
55229         && !UNIX98].
55230         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
55231         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
55232         (mode_t): Likewise.
55233         (posix_mem_offset): Likewise.
55234         (posix_typed_mem_get_info): Likewise.
55235         (posix_typed_mem_open): Likewise.
55236
55237         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
55238         Change condition to [XOPEN2K8].
55239
55240         * conform/conformtest.pl: Preprocess allow-header data with -x c
55241         instead of from stdin.
55242         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
55243         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
55244         [C99-based standards] (cerfc): Likewise.
55245         [C99-based standards] (cexp2): Likewise.
55246         [C99-based standards] (cexpm1): Likewise.
55247         [C99-based standards] (clog10): Likewise.
55248         [C99-based standards] (clog1p): Likewise.
55249         [C99-based standards] (clog2): Likewise.
55250         [C99-based standards] (clgamma): Likewise.
55251         [C99-based standards] (ctgamma): Likewise.
55252         [C99-based standards] (cerff): Likewise.
55253         [C99-based standards] (cerfcf): Likewise.
55254         [C99-based standards] (cexp2f): Likewise.
55255         [C99-based standards] (cexpm1f): Likewise.
55256         [C99-based standards] (clog10f): Likewise.
55257         [C99-based standards] (clog1pf): Likewise.
55258         [C99-based standards] (clog2f): Likewise.
55259         [C99-based standards] (clgammaf): Likewise.
55260         [C99-based standards] (ctgammaf): Likewise.
55261         [C99-based standards] (cerfl): Likewise.
55262         [C99-based standards] (cerfcl): Likewise.
55263         [C99-based standards] (cexp2l): Likewise.
55264         [C99-based standards] (cexpm1l): Likewise.
55265         [C99-based standards] (clog10l): Likewise.
55266         [C99-based standards] (clog1pl): Likewise.
55267         [C99-based standards] (clog2l): Likewise.
55268         [C99-based standards] (clgammal): Likewise.
55269         [C99-based standards] (ctgammal): Likewise.
55270         * conform/data/inttypes.h-data [C99-based standards]: Include
55271         stdint.h-data.  Remove all expectations for stdint.h contents.
55272         [C99-based standards] (PRI*): Do not allow.
55273         [C99-based standards] (SCN*): Likewise.
55274         [C99-based standards] (*_t): Likewise.
55275         [C99-based-standards] (PRId8): Expect macro.
55276         [C99-based-standards] (PRIi8): Likewise.
55277         [C99-based-standards] (PRIo8): Likewise.
55278         [C99-based-standards] (PRIu8): Likewise.
55279         [C99-based-standards] (PRIx8): Likewise.
55280         [C99-based-standards] (PRIX8): Likewise.
55281         [C99-based-standards] (SCNd8): Likewise.
55282         [C99-based-standards] (SCNi8): Likewise.
55283         [C99-based-standards] (SCNo8): Likewise.
55284         [C99-based-standards] (SCNu8): Likewise.
55285         [C99-based-standards] (SCNx8): Likewise.
55286         [C99-based-standards] (PRIdLEAST8): Likewise.
55287         [C99-based-standards] (PRIiLEAST8): Likewise.
55288         [C99-based-standards] (PRIoLEAST8): Likewise.
55289         [C99-based-standards] (PRIuLEAST8): Likewise.
55290         [C99-based-standards] (PRIxLEAST8): Likewise.
55291         [C99-based-standards] (PRIXLEAST8): Likewise.
55292         [C99-based-standards] (SCNdLEAST8): Likewise.
55293         [C99-based-standards] (SCNiLEAST8): Likewise.
55294         [C99-based-standards] (SCNoLEAST8): Likewise.
55295         [C99-based-standards] (SCNuLEAST8): Likewise.
55296         [C99-based-standards] (SCNxLEAST8): Likewise.
55297         [C99-based-standards] (PRIdFAST8): Likewise.
55298         [C99-based-standards] (PRIiFAST8): Likewise.
55299         [C99-based-standards] (PRIoFAST8): Likewise.
55300         [C99-based-standards] (PRIuFAST8): Likewise.
55301         [C99-based-standards] (PRIxFAST8): Likewise.
55302         [C99-based-standards] (PRIXFAST8): Likewise.
55303         [C99-based-standards] (SCNdFAST8): Likewise.
55304         [C99-based-standards] (SCNiFAST8): Likewise.
55305         [C99-based-standards] (SCNoFAST8): Likewise.
55306         [C99-based-standards] (SCNuFAST8): Likewise.
55307         [C99-based-standards] (SCNxFAST8): Likewise.
55308         [C99-based-standards] (PRId16): Likewise.
55309         [C99-based-standards] (PRIi16): Likewise.
55310         [C99-based-standards] (PRIo16): Likewise.
55311         [C99-based-standards] (PRIu16): Likewise.
55312         [C99-based-standards] (PRIx16): Likewise.
55313         [C99-based-standards] (PRIX16): Likewise.
55314         [C99-based-standards] (SCNd16): Likewise.
55315         [C99-based-standards] (SCNi16): Likewise.
55316         [C99-based-standards] (SCNo16): Likewise.
55317         [C99-based-standards] (SCNu16): Likewise.
55318         [C99-based-standards] (SCNx16): Likewise.
55319         [C99-based-standards] (PRIdLEAST16): Likewise.
55320         [C99-based-standards] (PRIiLEAST16): Likewise.
55321         [C99-based-standards] (PRIoLEAST16): Likewise.
55322         [C99-based-standards] (PRIuLEAST16): Likewise.
55323         [C99-based-standards] (PRIxLEAST16): Likewise.
55324         [C99-based-standards] (PRIXLEAST16): Likewise.
55325         [C99-based-standards] (SCNdLEAST16): Likewise.
55326         [C99-based-standards] (SCNiLEAST16): Likewise.
55327         [C99-based-standards] (SCNoLEAST16): Likewise.
55328         [C99-based-standards] (SCNuLEAST16): Likewise.
55329         [C99-based-standards] (SCNxLEAST16): Likewise.
55330         [C99-based-standards] (PRIdFAST16): Likewise.
55331         [C99-based-standards] (PRIiFAST16): Likewise.
55332         [C99-based-standards] (PRIoFAST16): Likewise.
55333         [C99-based-standards] (PRIuFAST16): Likewise.
55334         [C99-based-standards] (PRIxFAST16): Likewise.
55335         [C99-based-standards] (PRIXFAST16): Likewise.
55336         [C99-based-standards] (SCNdFAST16): Likewise.
55337         [C99-based-standards] (SCNiFAST16): Likewise.
55338         [C99-based-standards] (SCNoFAST16): Likewise.
55339         [C99-based-standards] (SCNuFAST16): Likewise.
55340         [C99-based-standards] (SCNxFAST16): Likewise.
55341         [C99-based-standards] (PRId32): Likewise.
55342         [C99-based-standards] (PRIi32): Likewise.
55343         [C99-based-standards] (PRIo32): Likewise.
55344         [C99-based-standards] (PRIu32): Likewise.
55345         [C99-based-standards] (PRIx32): Likewise.
55346         [C99-based-standards] (PRIX32): Likewise.
55347         [C99-based-standards] (SCNd32): Likewise.
55348         [C99-based-standards] (SCNi32): Likewise.
55349         [C99-based-standards] (SCNo32): Likewise.
55350         [C99-based-standards] (SCNu32): Likewise.
55351         [C99-based-standards] (SCNx32): Likewise.
55352         [C99-based-standards] (PRIdLEAST32): Likewise.
55353         [C99-based-standards] (PRIiLEAST32): Likewise.
55354         [C99-based-standards] (PRIoLEAST32): Likewise.
55355         [C99-based-standards] (PRIuLEAST32): Likewise.
55356         [C99-based-standards] (PRIxLEAST32): Likewise.
55357         [C99-based-standards] (PRIXLEAST32): Likewise.
55358         [C99-based-standards] (SCNdLEAST32): Likewise.
55359         [C99-based-standards] (SCNiLEAST32): Likewise.
55360         [C99-based-standards] (SCNoLEAST32): Likewise.
55361         [C99-based-standards] (SCNuLEAST32): Likewise.
55362         [C99-based-standards] (SCNxLEAST32): Likewise.
55363         [C99-based-standards] (PRIdFAST32): Likewise.
55364         [C99-based-standards] (PRIiFAST32): Likewise.
55365         [C99-based-standards] (PRIoFAST32): Likewise.
55366         [C99-based-standards] (PRIuFAST32): Likewise.
55367         [C99-based-standards] (PRIxFAST32): Likewise.
55368         [C99-based-standards] (PRIXFAST32): Likewise.
55369         [C99-based-standards] (SCNdFAST32): Likewise.
55370         [C99-based-standards] (SCNiFAST32): Likewise.
55371         [C99-based-standards] (SCNoFAST32): Likewise.
55372         [C99-based-standards] (SCNuFAST32): Likewise.
55373         [C99-based-standards] (SCNxFAST32): Likewise.
55374         [C99-based-standards] (PRId64): Likewise.
55375         [C99-based-standards] (PRIi64): Likewise.
55376         [C99-based-standards] (PRIo64): Likewise.
55377         [C99-based-standards] (PRIu64): Likewise.
55378         [C99-based-standards] (PRIx64): Likewise.
55379         [C99-based-standards] (PRIX64): Likewise.
55380         [C99-based-standards] (SCNd64): Likewise.
55381         [C99-based-standards] (SCNi64): Likewise.
55382         [C99-based-standards] (SCNo64): Likewise.
55383         [C99-based-standards] (SCNu64): Likewise.
55384         [C99-based-standards] (SCNx64): Likewise.
55385         [C99-based-standards] (PRIdLEAST64): Likewise.
55386         [C99-based-standards] (PRIiLEAST64): Likewise.
55387         [C99-based-standards] (PRIoLEAST64): Likewise.
55388         [C99-based-standards] (PRIuLEAST64): Likewise.
55389         [C99-based-standards] (PRIxLEAST64): Likewise.
55390         [C99-based-standards] (PRIXLEAST64): Likewise.
55391         [C99-based-standards] (SCNdLEAST64): Likewise.
55392         [C99-based-standards] (SCNiLEAST64): Likewise.
55393         [C99-based-standards] (SCNoLEAST64): Likewise.
55394         [C99-based-standards] (SCNuLEAST64): Likewise.
55395         [C99-based-standards] (SCNxLEAST64): Likewise.
55396         [C99-based-standards] (PRIdFAST64): Likewise.
55397         [C99-based-standards] (PRIiFAST64): Likewise.
55398         [C99-based-standards] (PRIoFAST64): Likewise.
55399         [C99-based-standards] (PRIuFAST64): Likewise.
55400         [C99-based-standards] (PRIxFAST64): Likewise.
55401         [C99-based-standards] (PRIXFAST64): Likewise.
55402         [C99-based-standards] (SCNdFAST64): Likewise.
55403         [C99-based-standards] (SCNiFAST64): Likewise.
55404         [C99-based-standards] (SCNoFAST64): Likewise.
55405         [C99-based-standards] (SCNuFAST64): Likewise.
55406         [C99-based-standards] (SCNxFAST64): Likewise.
55407         [C99-based-standards] (PRIdMAX): Likewise.
55408         [C99-based-standards] (PRIiMAX): Likewise.
55409         [C99-based-standards] (PRIoMAX): Likewise.
55410         [C99-based-standards] (PRIuMAX): Likewise.
55411         [C99-based-standards] (PRIxMAX): Likewise.
55412         [C99-based-standards] (PRIXMAX): Likewise.
55413         [C99-based-standards] (SCNdMAX): Likewise.
55414         [C99-based-standards] (SCNiMAX): Likewise.
55415         [C99-based-standards] (SCNoMAX): Likewise.
55416         [C99-based-standards] (SCNuMAX): Likewise.
55417         [C99-based-standards] (SCNxMAX): Likewise.
55418         [C99-based-standards] (PRIdPTR): Likewise.
55419         [C99-based-standards] (PRIiPTR): Likewise.
55420         [C99-based-standards] (PRIoPTR): Likewise.
55421         [C99-based-standards] (PRIuPTR): Likewise.
55422         [C99-based-standards] (PRIxPTR): Likewise.
55423         [C99-based-standards] (PRIXPTR): Likewise.
55424         [C99-based-standards] (SCNdPTR): Likewise.
55425         [C99-based-standards] (SCNiPTR): Likewise.
55426         [C99-based-standards] (SCNoPTR): Likewise.
55427         [C99-based-standards] (SCNuPTR): Likewise.
55428         [C99-based-standards] (SCNxPTR): Likewise.
55429         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
55430         allow.
55431         * conform/data/stdint.h-data: Update comments to clarify
55432         requirements.
55433         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
55434         type.
55435         [C99-based standards] (INT8_MAX): Likewise.
55436         [C99-based standards] (INT16_MIN): Likewise.
55437         [C99-based standards] (INT16_MAX): Likewise.
55438         [C99-based standards] (INT32_MIN): Likewise.
55439         [C99-based standards] (INT32_MAX): Likewise.
55440         [C99-based standards] (INT64_MIN): Likewise.
55441         [C99-based standards] (INT64_MAX): Likewise.
55442         [C99-based standards] (UINT8_MAX): Likewise.
55443         [C99-based standards] (UINT16_MAX): Likewise.
55444         [C99-based standards] (UINT32_MAX): Likewise.
55445         [C99-based standards] (UINT64_MAX): Likewise.
55446         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55447         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55448         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55449         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55450         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55451         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55452         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55453         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55454         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55455         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55456         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55457         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55458         [C99-based standards] (INT_FAST8_MIN): Likewise.
55459         [C99-based standards] (INT_FAST8_MAX): Likewise.
55460         [C99-based standards] (INT_FAST16_MIN): Likewise.
55461         [C99-based standards] (INT_FAST16_MAX): Likewise.
55462         [C99-based standards] (INT_FAST32_MIN): Likewise.
55463         [C99-based standards] (INT_FAST32_MAX): Likewise.
55464         [C99-based standards] (INT_FAST64_MIN): Likewise.
55465         [C99-based standards] (INT_FAST64_MAX): Likewise.
55466         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55467         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55468         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55469         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55470         [C99-based standards] (INTPTR_MIN): Likewise.
55471         [C99-based standards] (INTPTR_MAX): Likewise.
55472         [C99-based standards] (UINTPTR_MAX): Likewise.
55473         [C99-based standards] (INTMAX_MIN): Likewise.
55474         [C99-based standards] (INTMAX_MAX): Likewise.
55475         [C99-based standards] (UINTMAX_MAX): Likewise.
55476         [C99-based standards] (PTRDIFF_MIN): Likewise.
55477         [C99-based standards] (PTRDIFF_MAX): Likewise.
55478         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55479         [C99-based standards] (SIZE_MAX): Likewise.
55480         [C99-based standards] (WCHAR_MAX): Likewise.
55481         [C99-based standards] (WINT_MAX): Likewise.
55482         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55483         constraint on value.
55484         [C99-based standards] (WCHAR_MIN): Likewise.
55485         [C99-based standards] (WINT_MIN): Likewise.
55486         [C99-based standards] (*_t): Allow.
55487         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55488         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55489         Include math.h-data and complex.h-data.  Remove all expectations
55490         of math.h and complex.h contents.
55491         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55492         at end of line.
55493         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55494         (struct tm): Expect tag.
55495         [C99-based-standards] (wcstof): Expect function.
55496         [C99-based-standards] (wcstold): Likewise.
55497         [C99-based-standards] (wcstoll): Likewise.
55498         [C99-based-standards] (wcstoull): Likewise.
55499         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55500         macro-int-constant.  Specify type.
55501         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55502         constraint on value.
55503         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55504         Specify type.
55505         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55506         Specify value.
55507         [ISO C standards]: Do not allow headers.
55508         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55509         wcs[abcdefghijklmnopqrstuvwxyz]*.
55510         [ISO C standards] (*_t): Do not allow.
55511         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55512         Expect function.
55513         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55514         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55515         Specify type.
55516         [ISO C standards]: Do not allow headers.
55517         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55518         is[abcdefghijklmnopqrstuvwxyz]*.
55519         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55520         to[abcdefghijklmnopqrstuvwxyz]*.
55521         [ISO C standards] (*_t): Do not allow.
55522         * conform/data/stdalign.h-data: New file.
55523         * conform/data/stdbool.h-data: Likewise.
55524         * conform/data/stdnoreturn.h-data: Likewise.
55525
55526 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55527
55528         [BZ #14815]
55529         * manual/filesys.texi (Directory Entries): Typo fix.
55530         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55531
55532 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55533
55534         * elf/elf.h (EM_AARCH64): New macro.
55535         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55536         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55537         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55538         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55539         (R_AARCH64_TLSDESC): Likewise.
55540         (NT_ARM_TLS): Likewise.
55541         (NT_ARM_HW_BREAK): Likewise.
55542         (NT_ARM_HW_WATCH): Likewise.
55543
55544 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55545
55546         [BZ #14811]
55547         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55548         (__ieee754_powl): Saturate nonzero exponents with absolute value
55549         below 0x1p-79 to +/- 0x1p-79.
55550         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55551         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55552         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55553         nonzero exponents with absolute value below 0x1p-32 to +/-
55554         0x1p-32.
55555         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55556         (__ieee754_powl): Saturate nonzero exponents with absolute value
55557         below 0x1p-79 to +/- 0x1p-79.
55558         * math/libm-test.inc (pow_test): Add more tests.
55559
55560 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55561
55562         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55563         _dl_s390_cap_flags with kernel. Increase string length.
55564         (_dl_s390_platforms): Add z196 and zEC12.
55565
55566 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55567
55568         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55569         Change XOPEN21K to XOPEN2K.
55570
55571 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55572
55573         * string/memmove.c: Use memcpy when possible.
55574
55575 2012-11-06  Andreas Jaeger  <aj@suse.de>
55576
55577         * po/eo.po: Update from translation team.
55578
55579 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55580
55581         [BZ #14793]
55582         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55583         exponent and small x and y exponents, scale x or y up.  Increase
55584         by 2 the exponent used in scaling up.
55585         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55586         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55587         * math/libm-test.inc (fma_test): Add more tests.
55588         (fma_test_towardzero): Likewise.
55589         (fma_test_downward): Likewise.
55590         (fma_test_upward): Likewise.
55591
55592 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55593
55594         [BZ #14805]
55595         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55596         fenv_t *.
55597
55598         [BZ #14801]
55599         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55600         namespace for names of struct fields.
55601         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55602         fenv_t fields.
55603         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55604         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55605
55606 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55607
55608         [BZ #3665]
55609         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55610
55611 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55612
55613         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55614         PTR_DEMANGLE.
55615
55616         [BZ #5246]
55617         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55618         PTR_DEMANGLE.
55619
55620 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55621
55622         [BZ #14797]
55623         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55624         definitely overflow as x * y not x * y + z.
55625         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55626         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55627         * math/libm-test.inc (fma_test): Add more tests.
55628         (fma_test_towardzero): Likewise.
55629         (fma_test_downward): Likewise.
55630         (fma_test_upward): Likewise.
55631
55632 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55633
55634         [BZ #157]
55635
55636         * include/stub-tag.h: Remove file.
55637         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55638         '#include' of it.
55639         * manual/maint.texi (Porting): Don't reference it.
55640         * Makerules ($(objpfx)stubs): Likewise.
55641         * dirent/closedir.c: Don't include <stub-tag.h>.
55642         * dirent/dirfd.c: Likewise.
55643         * dirent/fdopendir.c: Likewise.
55644         * dirent/getdents.c: Likewise.
55645         * dirent/getdents64.c: Likewise.
55646         * dirent/opendir.c: Likewise.
55647         * dirent/readdir.c: Likewise.
55648         * dirent/readdir64.c: Likewise.
55649         * dirent/readdir64_r.c: Likewise.
55650         * dirent/readdir_r.c: Likewise.
55651         * dirent/rewinddir.c: Likewise.
55652         * dirent/seekdir.c: Likewise.
55653         * dirent/telldir.c: Likewise.
55654         * gmon/profil.c: Likewise.
55655         * grp/setgroups.c: Likewise.
55656         * inet/if_index.c: Likewise.
55657         * io/access.c: Likewise.
55658         * io/chdir.c: Likewise.
55659         * io/chmod.c: Likewise.
55660         * io/chown.c: Likewise.
55661         * io/close.c: Likewise.
55662         * io/dup.c: Likewise.
55663         * io/dup2.c: Likewise.
55664         * io/dup3.c: Likewise.
55665         * io/euidaccess.c: Likewise.
55666         * io/faccessat.c: Likewise.
55667         * io/fchdir.c: Likewise.
55668         * io/fchmod.c: Likewise.
55669         * io/fchmodat.c: Likewise.
55670         * io/fchown.c: Likewise.
55671         * io/fchownat.c: Likewise.
55672         * io/fcntl.c: Likewise.
55673         * io/flock.c: Likewise.
55674         * io/fstatfs.c: Likewise.
55675         * io/fstatfs64.c: Likewise.
55676         * io/fstatvfs.c: Likewise.
55677         * io/fstatvfs64.c: Likewise.
55678         * io/futimens.c: Likewise.
55679         * io/fxstat.c: Likewise.
55680         * io/fxstat64.c: Likewise.
55681         * io/fxstatat.c: Likewise.
55682         * io/fxstatat64.c: Likewise.
55683         * io/getcwd.c: Likewise.
55684         * io/isatty.c: Likewise.
55685         * io/lchmod.c: Likewise.
55686         * io/lchown.c: Likewise.
55687         * io/link.c: Likewise.
55688         * io/linkat.c: Likewise.
55689         * io/lseek.c: Likewise.
55690         * io/lseek64.c: Likewise.
55691         * io/lxstat64.c: Likewise.
55692         * io/mkdir.c: Likewise.
55693         * io/mkdirat.c: Likewise.
55694         * io/mkfifo.c: Likewise.
55695         * io/mkfifoat.c: Likewise.
55696         * io/open.c: Likewise.
55697         * io/open64.c: Likewise.
55698         * io/openat.c: Likewise.
55699         * io/openat64.c: Likewise.
55700         * io/pipe.c: Likewise.
55701         * io/pipe2.c: Likewise.
55702         * io/poll.c: Likewise.
55703         * io/posix_fadvise.c: Likewise.
55704         * io/posix_fadvise64.c: Likewise.
55705         * io/posix_fallocate.c: Likewise.
55706         * io/posix_fallocate64.c: Likewise.
55707         * io/read.c: Likewise.
55708         * io/readlink.c: Likewise.
55709         * io/readlinkat.c: Likewise.
55710         * io/rmdir.c: Likewise.
55711         * io/sendfile.c: Likewise.
55712         * io/sendfile64.c: Likewise.
55713         * io/statfs.c: Likewise.
55714         * io/statfs64.c: Likewise.
55715         * io/statvfs.c: Likewise.
55716         * io/statvfs64.c: Likewise.
55717         * io/symlink.c: Likewise.
55718         * io/symlinkat.c: Likewise.
55719         * io/ttyname.c: Likewise.
55720         * io/ttyname_r.c: Likewise.
55721         * io/umask.c: Likewise.
55722         * io/unlink.c: Likewise.
55723         * io/unlinkat.c: Likewise.
55724         * io/utime.c: Likewise.
55725         * io/utimensat.c: Likewise.
55726         * io/write.c: Likewise.
55727         * io/xmknod.c: Likewise.
55728         * io/xmknodat.c: Likewise.
55729         * io/xstat.c: Likewise.
55730         * io/xstat64.c: Likewise.
55731         * login/getpt.c: Likewise.
55732         * login/grantpt.c: Likewise.
55733         * login/unlockpt.c: Likewise.
55734         * math/e_acoshl.c: Likewise.
55735         * math/e_acosl.c: Likewise.
55736         * math/e_asinl.c: Likewise.
55737         * math/e_atan2l.c: Likewise.
55738         * math/e_atanhl.c: Likewise.
55739         * math/e_coshl.c: Likewise.
55740         * math/e_expl.c: Likewise.
55741         * math/e_fmodl.c: Likewise.
55742         * math/e_gammal_r.c: Likewise.
55743         * math/e_hypotl.c: Likewise.
55744         * math/e_j0l.c: Likewise.
55745         * math/e_j1l.c: Likewise.
55746         * math/e_jnl.c: Likewise.
55747         * math/e_lgammal_r.c: Likewise.
55748         * math/e_log10l.c: Likewise.
55749         * math/e_log2l.c: Likewise.
55750         * math/e_logl.c: Likewise.
55751         * math/e_powl.c: Likewise.
55752         * math/e_rem_pio2l.c: Likewise.
55753         * math/e_sinhl.c: Likewise.
55754         * math/e_sqrtl.c: Likewise.
55755         * math/fclrexcpt.c: Likewise.
55756         * math/fedisblxcpt.c: Likewise.
55757         * math/feenablxcpt.c: Likewise.
55758         * math/fegetenv.c: Likewise.
55759         * math/fegetexcept.c: Likewise.
55760         * math/fegetround.c: Likewise.
55761         * math/feholdexcpt.c: Likewise.
55762         * math/fesetenv.c: Likewise.
55763         * math/fesetround.c: Likewise.
55764         * math/feupdateenv.c: Likewise.
55765         * math/fgetexcptflg.c: Likewise.
55766         * math/fraiseexcpt.c: Likewise.
55767         * math/fsetexcptflg.c: Likewise.
55768         * math/ftestexcept.c: Likewise.
55769         * math/k_cosl.c: Likewise.
55770         * math/k_rem_pio2l.c: Likewise.
55771         * math/k_sinl.c: Likewise.
55772         * math/k_tanl.c: Likewise.
55773         * math/s_asinhl.c: Likewise.
55774         * math/s_atanl.c: Likewise.
55775         * math/s_cbrtl.c: Likewise.
55776         * math/s_erfl.c: Likewise.
55777         * math/s_expm1l.c: Likewise.
55778         * math/s_log1pl.c: Likewise.
55779         * math/s_tanhl.c: Likewise.
55780         * misc/acct.c: Likewise.
55781         * misc/brk.c: Likewise.
55782         * misc/chflags.c: Likewise.
55783         * misc/chroot.c: Likewise.
55784         * misc/fchflags.c: Likewise.
55785         * misc/fgetxattr.c: Likewise.
55786         * misc/flistxattr.c: Likewise.
55787         * misc/fremovexattr.c: Likewise.
55788         * misc/fsetxattr.c: Likewise.
55789         * misc/fsync.c: Likewise.
55790         * misc/ftruncate.c: Likewise.
55791         * misc/futimes.c: Likewise.
55792         * misc/futimesat.c: Likewise.
55793         * misc/getdomain.c: Likewise.
55794         * misc/getdtsz.c: Likewise.
55795         * misc/gethostid.c: Likewise.
55796         * misc/gethostname.c: Likewise.
55797         * misc/getloadavg.c: Likewise.
55798         * misc/getpagesize.c: Likewise.
55799         * misc/getsysstats.c: Likewise.
55800         * misc/getxattr.c: Likewise.
55801         * misc/gtty.c: Likewise.
55802         * misc/ioctl.c: Likewise.
55803         * misc/lgetxattr.c: Likewise.
55804         * misc/listxattr.c: Likewise.
55805         * misc/llistxattr.c: Likewise.
55806         * misc/lremovexattr.c: Likewise.
55807         * misc/lsetxattr.c: Likewise.
55808         * misc/lutimes.c: Likewise.
55809         * misc/madvise.c: Likewise.
55810         * misc/mincore.c: Likewise.
55811         * misc/mlock.c: Likewise.
55812         * misc/mlockall.c: Likewise.
55813         * misc/mmap.c: Likewise.
55814         * misc/mprotect.c: Likewise.
55815         * misc/msync.c: Likewise.
55816         * misc/munlock.c: Likewise.
55817         * misc/munlockall.c: Likewise.
55818         * misc/munmap.c: Likewise.
55819         * misc/preadv.c: Likewise.
55820         * misc/preadv64.c: Likewise.
55821         * misc/ptrace.c: Likewise.
55822         * misc/pwritev.c: Likewise.
55823         * misc/pwritev64.c: Likewise.
55824         * misc/readv.c: Likewise.
55825         * misc/reboot.c: Likewise.
55826         * misc/remap_file_pages.c: Likewise.
55827         * misc/removexattr.c: Likewise.
55828         * misc/revoke.c: Likewise.
55829         * misc/select.c: Likewise.
55830         * misc/setdomain.c: Likewise.
55831         * misc/setegid.c: Likewise.
55832         * misc/seteuid.c: Likewise.
55833         * misc/sethostid.c: Likewise.
55834         * misc/sethostname.c: Likewise.
55835         * misc/setregid.c: Likewise.
55836         * misc/setreuid.c: Likewise.
55837         * misc/setxattr.c: Likewise.
55838         * misc/sstk.c: Likewise.
55839         * misc/stty.c: Likewise.
55840         * misc/swapoff.c: Likewise.
55841         * misc/swapon.c: Likewise.
55842         * misc/sync.c: Likewise.
55843         * misc/syncfs.c: Likewise.
55844         * misc/syscall.c: Likewise.
55845         * misc/truncate.c: Likewise.
55846         * misc/ualarm.c: Likewise.
55847         * misc/usleep.c: Likewise.
55848         * misc/ustat.c: Likewise.
55849         * misc/utimes.c: Likewise.
55850         * misc/vhangup.c: Likewise.
55851         * misc/writev.c: Likewise.
55852         * posix/_exit.c: Likewise.
55853         * posix/alarm.c: Likewise.
55854         * posix/execve.c: Likewise.
55855         * posix/fexecve.c: Likewise.
55856         * posix/fork.c: Likewise.
55857         * posix/fpathconf.c: Likewise.
55858         * posix/getaddrinfo.c: Likewise.
55859         * posix/getegid.c: Likewise.
55860         * posix/geteuid.c: Likewise.
55861         * posix/getgid.c: Likewise.
55862         * posix/getgroups.c: Likewise.
55863         * posix/getlogin.c: Likewise.
55864         * posix/getlogin_r.c: Likewise.
55865         * posix/getpgid.c: Likewise.
55866         * posix/getpid.c: Likewise.
55867         * posix/getppid.c: Likewise.
55868         * posix/getresgid.c: Likewise.
55869         * posix/getresuid.c: Likewise.
55870         * posix/getsid.c: Likewise.
55871         * posix/getuid.c: Likewise.
55872         * posix/glob64.c: Likewise.
55873         * posix/nanosleep.c: Likewise.
55874         * posix/pathconf.c: Likewise.
55875         * posix/pause.c: Likewise.
55876         * posix/posix_madvise.c: Likewise.
55877         * posix/pread.c: Likewise.
55878         * posix/pread64.c: Likewise.
55879         * posix/pwrite.c: Likewise.
55880         * posix/pwrite64.c: Likewise.
55881         * posix/sched_getaffinity.c: Likewise.
55882         * posix/sched_getp.c: Likewise.
55883         * posix/sched_gets.c: Likewise.
55884         * posix/sched_primax.c: Likewise.
55885         * posix/sched_primin.c: Likewise.
55886         * posix/sched_rr_gi.c: Likewise.
55887         * posix/sched_setaffinity.c: Likewise.
55888         * posix/sched_setp.c: Likewise.
55889         * posix/sched_sets.c: Likewise.
55890         * posix/sched_yield.c: Likewise.
55891         * posix/setgid.c: Likewise.
55892         * posix/setlogin.c: Likewise.
55893         * posix/setpgid.c: Likewise.
55894         * posix/setresgid.c: Likewise.
55895         * posix/setresuid.c: Likewise.
55896         * posix/setsid.c: Likewise.
55897         * posix/setuid.c: Likewise.
55898         * posix/sleep.c: Likewise.
55899         * posix/spawni.c: Likewise.
55900         * posix/sysconf.c: Likewise.
55901         * posix/times.c: Likewise.
55902         * posix/wait.c: Likewise.
55903         * posix/wait3.c: Likewise.
55904         * posix/wait4.c: Likewise.
55905         * posix/waitpid.c: Likewise.
55906         * resolv/gai_sigqueue.c: Likewise.
55907         * resource/getpriority.c: Likewise.
55908         * resource/getrlimit.c: Likewise.
55909         * resource/getrusage.c: Likewise.
55910         * resource/nice.c: Likewise.
55911         * resource/setpriority.c: Likewise.
55912         * resource/setrlimit.c: Likewise.
55913         * resource/ulimit.c: Likewise.
55914         * rt/aio_cancel.c: Likewise.
55915         * rt/aio_fsync.c: Likewise.
55916         * rt/aio_read.c: Likewise.
55917         * rt/aio_sigqueue.c: Likewise.
55918         * rt/aio_suspend.c: Likewise.
55919         * rt/aio_write.c: Likewise.
55920         * rt/clock_getres.c: Likewise.
55921         * rt/clock_gettime.c: Likewise.
55922         * rt/clock_nanosleep.c: Likewise.
55923         * rt/clock_settime.c: Likewise.
55924         * rt/lio_listio.c: Likewise.
55925         * rt/mq_close.c: Likewise.
55926         * rt/mq_getattr.c: Likewise.
55927         * rt/mq_notify.c: Likewise.
55928         * rt/mq_open.c: Likewise.
55929         * rt/mq_receive.c: Likewise.
55930         * rt/mq_send.c: Likewise.
55931         * rt/mq_setattr.c: Likewise.
55932         * rt/mq_timedreceive.c: Likewise.
55933         * rt/mq_timedsend.c: Likewise.
55934         * rt/mq_unlink.c: Likewise.
55935         * rt/shm_open.c: Likewise.
55936         * rt/shm_unlink.c: Likewise.
55937         * rt/timer_create.c: Likewise.
55938         * rt/timer_delete.c: Likewise.
55939         * rt/timer_getoverr.c: Likewise.
55940         * rt/timer_gettime.c: Likewise.
55941         * rt/timer_settime.c: Likewise.
55942         * setjmp/__longjmp.c: Likewise.
55943         * setjmp/setjmp.c: Likewise.
55944         * signal/kill.c: Likewise.
55945         * signal/killpg.c: Likewise.
55946         * signal/raise.c: Likewise.
55947         * signal/sigaction.c: Likewise.
55948         * signal/sigaltstack.c: Likewise.
55949         * signal/sigblock.c: Likewise.
55950         * signal/sigignore.c: Likewise.
55951         * signal/sigintr.c: Likewise.
55952         * signal/signal.c: Likewise.
55953         * signal/sigpause.c: Likewise.
55954         * signal/sigpending.c: Likewise.
55955         * signal/sigqueue.c: Likewise.
55956         * signal/sigreturn.c: Likewise.
55957         * signal/sigset.c: Likewise.
55958         * signal/sigsetmask.c: Likewise.
55959         * signal/sigstack.c: Likewise.
55960         * signal/sigsuspend.c: Likewise.
55961         * signal/sigtimedwait.c: Likewise.
55962         * signal/sigvec.c: Likewise.
55963         * signal/sigwait.c: Likewise.
55964         * signal/sigwaitinfo.c: Likewise.
55965         * signal/sysv_signal.c: Likewise.
55966         * socket/accept.c: Likewise.
55967         * socket/accept4.c: Likewise.
55968         * socket/bind.c: Likewise.
55969         * socket/connect.c: Likewise.
55970         * socket/getpeername.c: Likewise.
55971         * socket/getsockname.c: Likewise.
55972         * socket/getsockopt.c: Likewise.
55973         * socket/isfdtype.c: Likewise.
55974         * socket/listen.c: Likewise.
55975         * socket/recv.c: Likewise.
55976         * socket/recvfrom.c: Likewise.
55977         * socket/recvmsg.c: Likewise.
55978         * socket/send.c: Likewise.
55979         * socket/sendmsg.c: Likewise.
55980         * socket/sendto.c: Likewise.
55981         * socket/setsockopt.c: Likewise.
55982         * socket/shutdown.c: Likewise.
55983         * socket/sockatmark.c: Likewise.
55984         * socket/socket.c: Likewise.
55985         * socket/socketpair.c: Likewise.
55986         * stdio-common/ctermid.c: Likewise.
55987         * stdio-common/cuserid.c: Likewise.
55988         * stdio-common/remove.c: Likewise.
55989         * stdio-common/rename.c: Likewise.
55990         * stdio-common/renameat.c: Likewise.
55991         * stdio-common/tempname.c: Likewise.
55992         * stdlib/getcontext.c: Likewise.
55993         * stdlib/makecontext.c: Likewise.
55994         * stdlib/setcontext.c: Likewise.
55995         * stdlib/swapcontext.c: Likewise.
55996         * stdlib/system.c: Likewise.
55997         * streams/fattach.c: Likewise.
55998         * streams/fdetach.c: Likewise.
55999         * streams/getmsg.c: Likewise.
56000         * streams/getpmsg.c: Likewise.
56001         * streams/putmsg.c: Likewise.
56002         * streams/putpmsg.c: Likewise.
56003         * sysdeps/unix/bsd/getpt.c: Likewise.
56004         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
56005         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
56006         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
56007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
56008         Likewise.
56009         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
56010         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
56011         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
56012         * sysvipc/msgctl.c: Likewise.
56013         * sysvipc/msgget.c: Likewise.
56014         * sysvipc/msgrcv.c: Likewise.
56015         * sysvipc/msgsnd.c: Likewise.
56016         * sysvipc/semctl.c: Likewise.
56017         * sysvipc/semget.c: Likewise.
56018         * sysvipc/semop.c: Likewise.
56019         * sysvipc/semtimedop.c: Likewise.
56020         * sysvipc/shmat.c: Likewise.
56021         * sysvipc/shmctl.c: Likewise.
56022         * sysvipc/shmdt.c: Likewise.
56023         * sysvipc/shmget.c: Likewise.
56024         * termios/tcdrain.c: Likewise.
56025         * termios/tcflow.c: Likewise.
56026         * termios/tcflush.c: Likewise.
56027         * termios/tcgetattr.c: Likewise.
56028         * termios/tcgetpgrp.c: Likewise.
56029         * termios/tcsendbrk.c: Likewise.
56030         * termios/tcsetattr.c: Likewise.
56031         * termios/tcsetpgrp.c: Likewise.
56032         * time/adjtime.c: Likewise.
56033         * time/clock.c: Likewise.
56034         * time/getitimer.c: Likewise.
56035         * time/gettimeofday.c: Likewise.
56036         * time/setitimer.c: Likewise.
56037         * time/settimeofday.c: Likewise.
56038         * time/stime.c: Likewise.
56039         * time/time.c: Likewise.
56040
56041 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
56042
56043         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
56044         /usr/old/bin.
56045
56046         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
56047         instead of spaces.
56048         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
56049
56050 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
56051
56052         [BZ #14796]
56053         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
56054         FE_TONEAREST before applying Dekker multiplication and Knuth
56055         addition.  Clear inexact exceptions and check for exact zero
56056         results afterwards.
56057         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56058         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56059         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56060         * math/libm-test.inc (fma_test): Add more tests.
56061         (fma_test_towardzero): Likewise.
56062         (fma_test_downward): Likewise.
56063         (fma_test_upward): Likewise.
56064         * sysdeps/generic/math_private.h (default_libc_fesetround): New
56065         function.
56066         (libc_fesetround): New macro.
56067         (libc_fesetroundf): Likewise.
56068         (libc_fesetroundl): Likewise.
56069         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
56070         function.
56071         (libc_fesetround_387): Likewise.
56072         (libc_fesetroundf): New macro.
56073         (libc_fesetround): Likewise.
56074         (libc_fesetroundl): Likewise.
56075         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
56076         function.
56077         (libc_fesetroundf): New macro.
56078         (libc_fesetround): Likewise.
56079         (libc_fesetroundl): Likewise.
56080         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
56081         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
56082         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
56083         libm_hidden_ver.
56084         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
56085         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
56086         libm_hidden_def.
56087         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
56088         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
56089         libm_hidden_ver.
56090         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
56091         libm_hidden_def.
56092
56093         [BZ #3439]
56094         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
56095         integer constant usable in #if and use that to give value to enum
56096         constant.
56097         (FE_DIVBYZERO): Likewise.
56098         (FE_UNDERFLOW): Likewise.
56099         (FE_OVERFLOW): Likewise.
56100         (FE_INVALID): Likewise.
56101         (FE_INVALID_SNAN): Likewise.
56102         (FE_INVALID_ISI): Likewise.
56103         (FE_INVALID_IDI): Likewise.
56104         (FE_INVALID_ZDZ): Likewise.
56105         (FE_INVALID_IMZ): Likewise.
56106         (FE_INVALID_COMPARE): Likewise.
56107         (FE_INVALID_SOFTWARE): Likewise.
56108         (FE_INVALID_SQRT): Likewise.
56109         (FE_INVALID_INTEGER_CONVERSION): Likewise.
56110         (FE_TONEAREST): Likewise.
56111         (FE_TOWARDZERO): Likewise.
56112         (FE_UPWARD): Likewise.
56113         (FE_DOWNWARD): Likewise.
56114         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
56115         (FE_DIVBYZERO): Likewise.
56116         (FE_OVERFLOW): Likewise.
56117         (FE_UNDERFLOW): Likewise.
56118         (FE_INEXACT): Likewise.
56119         (FE_TONEAREST): Likewise.
56120         (FE_DOWNWARD): Likewise.
56121         (FE_UPWARD): Likewise.
56122         (FE_TOWARDZERO): Likewise.
56123         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
56124         (FE_UNDERFLOW): Likewise.
56125         (FE_OVERFLOW): Likewise.
56126         (FE_DIVBYZERO): Likewise.
56127         (FE_INVALID): Likewise.
56128         (FE_TONEAREST): Likewise.
56129         (FE_TOWARDZERO): Likewise.
56130         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
56131         (FE_OVERFLOW): Likewise.
56132         (FE_UNDERFLOW): Likewise.
56133         (FE_DIVBYZERO): Likewise.
56134         (FE_INEXACT): Likewise.
56135         (FE_TONEAREST): Likewise.
56136         (FE_TOWARDZERO): Likewise.
56137         (FE_UPWARD): Likewise.
56138         (FE_DOWNWARD): Likewise.
56139         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
56140         (FE_DIVBYZERO): Likewise.
56141         (FE_OVERFLOW): Likewise.
56142         (FE_UNDERFLOW): Likewise.
56143         (FE_INEXACT): Likewise.
56144         (FE_TONEAREST): Likewise.
56145         (FE_DOWNWARD): Likewise.
56146         (FE_UPWARD): Likewise.
56147         (FE_TOWARDZERO): Likewise.
56148
56149 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
56150
56151         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
56152
56153 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
56154
56155         * scripts/cross-test-ssh.sh (command): Use newlines to separate
56156         commands.  Quote $PWD.
56157         (blacklist_exports): Don't use remove_newlines.  Replace "declare
56158         -x" by "export".
56159         (remove_newlines): Remove.
56160
56161 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
56162
56163         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
56164         * stdlib/stdlib.h (atof): Moved to ...
56165         * include/bits/stdlib-float.h: Here.  New file.
56166         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
56167         * stdlib/bits/stdlib-float.h: New file.
56168         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
56169         -mno-sse -mno-mmx.
56170         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
56171         <xmmintrin.h>.
56172
56173 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56174
56175         * conform/conformtest.pl (@headers): Add fenv.h.
56176         * conform/data/fenv.h-data: New file.
56177         * include/fenv.h [_ISOMAC]: Disable all contents of file except
56178         include of <math/fenv.h>.
56179
56180         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
56181         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
56182         && !UNIX98].  Enables tests for XOPEN2K8.
56183         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
56184         POSIX2008]: Likewise.
56185
56186         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
56187         (struct rusage): Do not expect type or its members.
56188
56189         [BZ #3439]
56190         * math/math.h (FP_NAN): Define macro to integer constant usable in
56191         #if and use that to give value to enum constant.
56192         (FP_INFINITE): Likewise.
56193         (FP_ZERO): Likewise.
56194         (FP_SUBNORMAL): Likewise.
56195         (FP_NORMAL): Likewise.
56196
56197 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
56198
56199         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
56200         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
56201         arguments.
56202
56203 2012-11-02  Roland McGrath  <roland@hack.frob.com>
56204
56205         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
56206         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
56207         autoconf-time if not.
56208         * configure.in: Remove AC_PREREQ.
56209
56210 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56211
56212         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
56213         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
56214         of the internal implementation.
56215
56216 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56217
56218         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
56219         except include of <misc/sys/syslog.h>.
56220
56221 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56222
56223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
56224         function returns with a NULL context exit with zero.
56225
56226 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56227
56228         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
56229
56230 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
56231
56232         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
56233         (run_program_cmd): This.
56234         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
56235         (tst_langinfo): New variable.  Use it.
56236
56237 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
56238
56239         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
56240         floating point opcodes.
56241
56242 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56243
56244         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
56245         variable.
56246
56247         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
56248
56249         * sysdeps/mach/hurd/powerpc: Remove directory.
56250         * sysdeps/mach/powerpc: Likewise.
56251
56252 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56253
56254         * scripts/check-local-headers.sh: Ignore c++ headers.
56255
56256 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56257
56258         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
56259         __libc_cleanup_region_start argument.
56260
56261 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
56262
56263         [BZ #14784]
56264         [BZ #14785]
56265         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
56266         x * y using scaling, not as x * y + z.
56267         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56268         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56269         * math/libm-test.inc (fma_test): Add more tests.
56270         (fma_test_towardzero): Likewise.
56271         (fma_test_downward): Likewise.
56272         (fma_test_upward): Likewise.
56273
56274 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56275
56276         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
56277
56278 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56279
56280         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
56281         New variable.
56282
56283 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
56284
56285         * rt/tst-shm.c (worker): Correct checking for mmap failure.
56286
56287 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56288
56289         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56290         Fix sort order.
56291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56292         Likewise.
56293
56294 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56295
56296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56297         Fix the order of the list for glibc 2.17.
56298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56299         Likewise.
56300
56301 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56302
56303         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56304
56305 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56306
56307         [BZ #14610]
56308         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
56309         for low part of x being zero before using __atanl (y).
56310         * math/libm-test.inc (atan2_test): Add another test.
56311
56312         * manual/install.texi (Configuring and compiling): Document
56313         general use of test-wrapper and test-wrapper-env.
56314         * INSTALL: Regenerated.
56315
56316         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
56317         (__fma): Do not extract and scale down low bits on after-rounding
56318         systems when result rounded to normal precision would have normal
56319         exponent.
56320         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
56321         (__fmal): Do not extract and scale down low bits on after-rounding
56322         systems when result rounded to normal precision would have normal
56323         exponent.
56324         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
56325         (__fmal): Do not extract and scale down low bits on after-rounding
56326         systems when result rounded to normal precision would have normal
56327         exponent.
56328         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56329         macro.
56330         (fma_test): Add more tests.
56331         (fma_test_towardzero): Likewise.
56332         (fma_test_downward): Likewise.
56333         (fma_test_upward): Likewise.
56334
56335 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56336
56337         * sysdeps/i386/tininess.h: Renamed to ...
56338         * sysdeps/x86/tininess.h: This.
56339         * sysdeps/x86_64/tininess.h: Removed.
56340
56341 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56342
56343         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
56344         input.  Use $(build-program-cmd).
56345         ($(objpfx)tst-array1-static.out): Likewise.
56346         ($(objpfx)tst-array2.out): Likewise.
56347         ($(objpfx)tst-array3.out): Likewise.
56348         ($(objpfx)tst-array4.out): Likewise.
56349         ($(objpfx)tst-array5.out): Likewise.
56350         ($(objpfx)tst-array5-static.out): Likewise.
56351
56352 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
56353
56354         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
56355         if defined.
56356
56357         * nss/nsswitch.h (nss_interface_function): Provide new
56358         macro for use with NSS functions.
56359         * grp/initgroups.c: Use new macro.
56360         * nss/getXXbyYY.c: Likewise.
56361         * nss/getXXbyYY_r.c: Likewise.
56362         * nss/getXXent.c: Likewise.
56363         * nss/getXXent_r.c: Likewise.
56364         * sysdeps/posix/getaddrinfo.c: Likewise.
56365
56366 2012-10-30  Andreas Jaeger  <aj@suse.de>
56367
56368         * po/ru.po: Update Russion translation from translation project.
56369
56370 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56371
56372         [BZ #14152]
56373         [BZ #14783]
56374         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
56375         result and shift together with sticky bit instead of replicating
56376         round-to-nearest rounding.
56377         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56378         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56379         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
56380         missing underflow exceptions.
56381         (fma_test_towardzero): Add more tests.
56382         (fma_test_downward): Likewise.
56383         (fma_test_upward): Likewise.
56384
56385         [BZ #14047]
56386         * sysdeps/generic/tininess.h: New file.
56387         * sysdeps/i386/tininess.h: Likewise.
56388         * sysdeps/sh/tininess.h: Likewise.
56389         * sysdeps/x86_64/tininess.h: Likewise.
56390         * stdlib/tst-strtod-underflow.c: Likewise.
56391         * stdlib/tst-tininess.c: Likewise.
56392         * stdlib/strtod_l.c: Include <tininess.h>.
56393         (round_and_return): Do not set errno for exact underflow cases.
56394         Force an underflow exception when setting errno for underflow.
56395         Determine underflow based on rounding to normal precision if
56396         TININESS_AFTER_ROUNDING.
56397         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
56398         ERANGE for exact underflow cases.
56399         * stdlib/Makefile (tests): Add tst-tininess and
56400         tst-strtod-underflow.
56401         ($(objpfx)tst-tininess): Use $(link-libm).
56402         ($(objpfx)tst-strtod-underflow): Likewise.
56403
56404 2012-10-30  Andreas Jaeger  <aj@suse.de>
56405
56406         [BZ#14767]
56407         * elf/Makefile (tests): Remove conditional for have-initfini-array
56408         since this is now always required and the variable does not exist
56409         anymore.
56410         (tests-static): Likewise.
56411         (modules-names): Likewise.
56412
56413         * po/eo.po: Add Esperanto translation from translation project.
56414
56415         * elf/tst-array1.c (fini_array): Make writeable so that it can be
56416         merged with constructor/destructor.
56417         (init_array): Likewise.
56418         * elf/tst-array2dep.c (fini_array): Likewise.
56419         (init_array): Likewise.
56420
56421 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
56422
56423         * manual/message.texi: Delete @cartouche tags.
56424
56425 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
56426
56427         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
56428         EOPNOTSUPP.
56429         * sysdeps/mach/hurd/fsync.c: Likewise.
56430
56431         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
56432         [_POSIX_REALTIME_SIGNALS]: Change condition to
56433         [_POSIX_REALTIME_SIGNALS > 0].
56434
56435 2012-10-27  Andreas Jaeger  <aj@suse.de>
56436
56437         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
56438         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
56439         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
56440         [__WORDSIZE != 64]: Likewise.
56441
56442 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56443
56444         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56445         *  iconvdata/tst-tables.sh: Likewise.
56446
56447 2012-10-25  David S. Miller  <davem@davemloft.net>
56448
56449         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56450         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56451         of strtoull.
56452
56453         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56454         ifunc-impl-list.c
56455         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56456         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56457         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56458         file.
56459
56460 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56461
56462         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56463         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56464         __getdirentries.
56465
56466 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56467             Jim Blandy  <jimb@codesourcery.com>
56468
56469         * scripts/cross-test-ssh.sh: New file.
56470         * manual/install.texi (Configuring and compiling): Document use of
56471         cross-test-ssh.sh.
56472         * INSTALL: Regenerated.
56473
56474 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56475
56476         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56477         EOPNOTSUPP.
56478
56479 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56480
56481         * Makeconfig (run-program-prefix): Fix comment.
56482
56483 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56484             Jim Blandy  <jimb@codesourcery.com>
56485
56486         * Makeconfig (test-wrapper): New variable,
56487         (test-wrapper-env): Likewise.
56488         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56489         (run-built-tests): Define to yes.
56490         (run-program-prefix): Use $(test-wrapper).
56491         (built-program-cmd): Likewise.
56492         * Rules (make-test-out): Use $(test-wrapper-env) and
56493         $(host-built-program-cmd).
56494         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56495         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56496         tst-pathopt.sh.
56497         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56498         $(test-wrapper-env) to tst-rtld-load-self.sh.
56499         ($(objpfx)order2.out): Use $(test-wrapper).
56500         ($(objpfx)tst-initorder.out): Likewise.
56501         ($(objpfx)tst-initorder2.out): Likewise.
56502         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56503         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56504         (test_wrapper_env): New variable.  Use it to run ld.so.
56505         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56506         Use it to run ld.so.
56507         (test_wrapper_env): Likewise.
56508         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56509         $(test-wrapper) to run-iconv-test.sh.
56510         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56511         (ICONV): Use $test_wrapper.
56512         * posix/Makefile ($(objpfx)globtest.out): Pass
56513         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56514         globtest.sh, not $(run-program-prefix).
56515         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56516         (test_wrapper): Likewise.
56517         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56518         set together with run_via_rtld_prefix.
56519         (run_program_prefix): Define in terms of test_wrapper and
56520         run_via_rtld_prefix.
56521
56522 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56523
56524         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56525         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56526         Targets removed.
56527
56528         [BZ #14743]
56529         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56530         Declare __clock_getres, __clock_gettime, __clock_settime,
56531         __clock_nanosleep, and __clock_getcpuclockid.
56532         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56533         Remove librt_hidden_def (clock_gettime).
56534         * sysdeps/unix/clock_gettime.c: Likewise.
56535         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56536         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56537         * rt/clock_getres.c: Define __clock_getres as an alias.
56538         * sysdeps/posix/clock_getres.c: Likewise.
56539         * rt/clock_settime.c: Define __clock_settime as an alias.
56540         * sysdeps/unix/clock_settime.c: Likewise.
56541         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56542         * sysdeps/unix/clock_nanosleep.c: Likewise.
56543         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56544         * rt/clock-compat.c: New file.
56545         * rt/Makefile (librt-routines): Add clock-compat and move
56546         $(clock-routines) to ...
56547         (routines): ... here, new variable.
56548         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56549         Don't add get_clockfreq here.
56550         * rt/Versions (libc: GLIBC_2.17): New version set.
56551         Add clock_* symbols here.
56552         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56553         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56554         (GLIBC_2.17): Add clock_* symbols.
56555         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56556         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56557         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56559         Likewise.
56560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56561         Likewise.
56562         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56563         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56564         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56565         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56566         * NEWS: Mention the move.
56567
56568         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56569         Use __open, __read, __close rather than their public counterparts.
56570         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56571         (__get_clockfreq_via_cpuinfo): Likewise.
56572         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56573         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56574
56575         * config.h.in (HAVE_IFUNC): New #undef.
56576         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56577         was successful.
56578         * configure: Regenerated.
56579
56580 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56581
56582         * configure.in: Move READELF check to start of file.
56583         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56584         libc_cv_asm_gnu_indirect_function in the process.
56585         * configure: Regenerated.
56586
56587 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56588
56589         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56590         send the output to /dev/null.
56591         (libc_cv_cc_with_libunwind): Likewise.
56592         (libc_cv_as_noexecstack): Likewise.
56593         * configure: Regenerate.
56594
56595 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56596
56597         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56598
56599         * posix/globtest.sh (TMPDIR): Do not set.
56600         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56601         (testout): Likewise.
56602
56603 2012-10-24  Andreas Jaeger  <aj@suse.de>
56604
56605         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56606         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56607         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56608         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56609         posix_fadvise64, posix_fallocate64.
56610
56611         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56612         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56613         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56614         Likewise.
56615         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56616         Likewise.
56617         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56618
56619         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56620         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56621         <bits/fcntl-linux.h>.
56622         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56623
56624         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56625         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56626         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56627         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56628         [__WORDSIZE != 64]: Likewise.
56629
56630 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56631
56632         * Makeconfig (run-built-tests): New variable.
56633         * Rules [$(cross-compiling) = yes]: Change condition to
56634         [$(run-built-tests) = no].
56635         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56636         to [$(run-built-tests) = yes].
56637         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56638         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56639         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56640         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56641         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56642         * io/Makefile [$(cross-compiling) = no]: Likewise.
56643         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56644         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56645         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56646         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56647         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56648         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56649         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56650         * string/Makefile [$(cross-compiling) = no]: Likewise.
56651
56652         * posix/Makefile ($(objpfx)globtest.out): Pass
56653         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56654         $(rtld-installed-name).
56655         * posix/globtest.sh (elf_objpfx): Remove variable.
56656         (rtld_installed_name): Likewise.
56657         (library_path): Likewise.
56658         (run_program_prefix): New variable.  Use for running globtest
56659         binary.
56660
56661 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56662             Joseph Myers  <joseph@codesourcery.com>
56663
56664         * Makeconfig (host-built-program-cmd): New variable.
56665         * elf/Makefile (tst-stackguard1-ARGS): Use
56666         $(host-built-program-cmd).
56667         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56668         (tst-spawn-ARGS): Likewise.
56669         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56670
56671 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56672             Jim Blandy  <jimb@codesourcery.com>
56673
56674         * Makeconfig (run-via-rtld-prefix): New variable.
56675         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56676         (built-program-cmd): Likewise.
56677
56678 2012-10-22  Andreas Jaeger  <aj@suse.de>
56679
56680         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56681         __O_RSYNC if it exists, otherwise to O_SYNC.
56682
56683 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56684             Joseph Myers  <joseph@codesourcery.com>
56685
56686         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56687         /dev/null.
56688         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56689         from /dev/null
56690         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56691         /dev/null.
56692
56693 2012-10-22  Andreas Jaeger  <aj@suse.de>
56694
56695         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56696         Define always.
56697         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56698
56699         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56700         bits/fcntl-linux.h.
56701
56702         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56703         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56704
56705         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56706         to __O_LARGEFILE.
56707         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56708         to __O_LARGEFILE.
56709
56710 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56711             Joseph Myers  <joseph@codesourcery.com>
56712
56713         * config.make.in (NM): New variable.
56714
56715 2012-10-21  Andreas Jaeger  <aj@suse.de>
56716
56717         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56718         definitions and declarations that are provided by
56719         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56720
56721 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56722
56723         [BZ #14683]
56724         * elf/Makefile (tests-static): Add tst-leaks1-static.
56725         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56726         ($(objpfx)tst-leaks1-static): New rule.
56727         ($(objpfx)tst-leaks1-static-mem): Likewise.
56728         (tst-leaks1-static-ENV): New macro.
56729         * elf/dl-open.c (dl_open_worker): Check the main application
56730         only if SHARED is defined.
56731         * elf/tst-leaks1-static.c: New file.
56732
56733 2012-10-20  Andreas Jaeger  <aj@suse.de>
56734
56735         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56736         generic values for Linux.
56737         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56738         and declarations that are provided by <bits/fcntl-linux.h> and
56739         include <bits/fcntl-linux.h>.
56740         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56741         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56742
56743 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56744
56745         * io/fcntl.h: Move include of <bits/types.h> to the top and
56746         include it unconditionally.
56747
56748 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56749
56750         * wcsmbs/Makefile (tests-ifunc): New variable.
56751         (tests): Add $(tests-ifunc).
56752         * wcsmbs/test-wcschr-ifunc.c: New file.
56753         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56754         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56755         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56756         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56757         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56758
56759         * string/Makefile (tests-ifunc): New variable.
56760         (tests): Add $(tests-ifunc).
56761         * string/test-memccpy.c (TEST_NAME): New macro.
56762         * string/test-memchr.c (TEST_NAME): Likewise.
56763         * string/test-memcmp.c (TEST_NAME): Likewise.
56764         * string/test-memcpy.c (TEST_NAME): Likewise.
56765         * string/test-memmem.c (TEST_NAME): Likewise.
56766         * string/test-memmove.c (TEST_NAME): Likewise.
56767         * string/test-memset.c (TEST_NAME): Likewise.
56768         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56769         * string/test-stpcpy.c (TEST_NAME): Likewise.
56770         * string/test-stpncpy.c (TEST_NAME): Likewise.
56771         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56772         * string/test-strcasestr.c (TEST_NAME): Likewise.
56773         * string/test-strcat.c (TEST_NAME): Likewise.
56774         * string/test-strchr.c (TEST_NAME): Likewise.
56775         * string/test-strcmp.c(TEST_NAME): Likewise.
56776         * string/test-strcpy.c (TEST_NAME): Likewise.
56777         * string/test-strcspn.c (TEST_NAME): Likewise.
56778         * string/test-strlen.c (TEST_NAME): Likewise.
56779         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56780         * string/test-strncmp.c (TEST_NAME): Likewise.
56781         * string/test-strncpy.c (TEST_NAME): Likewise.
56782         * string/test-strnlen.c (TEST_NAME): Likewise.
56783         * string/test-strpbrk.c (TEST_NAME): Likewise.
56784         * string/test-strrchr.c (TEST_NAME): Likewise.
56785         * string/test-strspn.c (TEST_NAME): Likewise.
56786         * string/test-strstr.c (TEST_NAME): Likewise.
56787         * string/test-bcopy-ifunc.c: New file.
56788         * string/test-bzero-ifunc.c: Likewise.
56789         * string/test-memccpy-ifunc.c: Likewise.
56790         * string/test-memchr-ifunc.c: Likewise.
56791         * string/test-memcmp-ifunc.c: Likewise.
56792         * string/test-memcpy-ifunc.c: Likewise.
56793         * string/test-memmem-ifunc.c: Likewise.
56794         * string/test-memmove-ifunc.c: Likewise.
56795         * string/test-mempcpy-ifunc.c: Likewise.
56796         * string/test-memset-ifunc.c: Likewise.
56797         * string/test-rawmemchr-ifunc.c: Likewise.
56798         * string/test-stpcpy-ifunc.c: Likewise.
56799         * string/test-stpncpy-ifunc.c: Likewise.
56800         * string/test-strcasecmp-ifunc.c: Likewise.
56801         * string/test-strcasestr-ifunc.c: Likewise.
56802         * string/test-strcat-ifunc.c: Likewise.
56803         * string/test-strchr-ifunc.c: Likewise.
56804         * string/test-strchrnul-ifunc.c: Likewise.
56805         * string/test-strcmp-ifunc.c: Likewise.
56806         * string/test-strcpy-ifunc.c: Likewise.
56807         * string/test-strcspn-ifunc.c: Likewise.
56808         * string/test-strlen-ifunc.c: Likewise.
56809         * string/test-strncasecmp-ifunc.c: Likewise.
56810         * string/test-strncat-ifunc.c: Likewise.
56811         * string/test-strncmp-ifunc.c: Likewise.
56812         * string/test-strncpy-ifunc.c: Likewise.
56813         * string/test-strnlen-ifunc.c: Likewise.
56814         * string/test-strpbrk-ifunc.c: Likewise.
56815         * string/test-strrchr-ifunc.c: Likewise.
56816         * string/test-strspn-ifunc.c: Likewise.
56817         * string/test-strstr-ifunc.c: Likewise.
56818
56819         * debug/Makefile (tests-ifunc): New variable.
56820         (tests): Add $(tests-ifunc).
56821         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56822         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56823         * debug/test-stpcpy_chk-ifunc.c: New file.
56824         * debug/test-strcpy_chk-ifunc.c: Likewise.
56825
56826 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56827
56828         [BZ #13601]
56829         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56830         header is not read in.
56831
56832 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56833
56834         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56835         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56836         directly.  Pass built executable to script as
56837         $(built-program-cmd).
56838         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56839         $testprogram without using LD_LIBRARY_PATH and $ldso.
56840
56841         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56842         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56843         $(rtld-installed-name).
56844         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56845         (rtld_installed_name): Likewise.
56846         (library_path): Likewise.
56847         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56848         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56849         $(run-program-prefix) to tst-tables.sh.
56850         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56851         it to run tst-table-from and tst-table-to.
56852         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56853         Pass it to tst-table.sh.
56854         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56855         $(run-program-prefix) to tst-gettext.sh.
56856         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56857         tst-translit.sh.
56858         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56859         tst-gettext2.sh.
56860         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56861         to run tst-gettext.
56862         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56863         to run tst-gettext2.
56864         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56865         to run tst-translit.
56866         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56867         $(run-program-prefix) to tst-mtrace.sh.
56868         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56869         to run tst-mtrace.
56870         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56871         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56872         $(rtld-installed-name).
56873         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56874         (rtld_installed_name): Likewise.
56875         (run_program_prefix): New variable.  Use it to run wordexp-test.
56876
56877         * Makeconfig (ARCH): Remove all definitions.
56878         (machine): Likewise.
56879         [ARCH]: Remove conditional code.
56880         [!objdir]: Give error.
56881         [!objdir] (objpfx): Remove.
56882         [!objdir] (common-objpfx): Likewise.
56883         [!objdir] (common-objdir): Likewise.
56884         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56885         AC_CONFIG_FILES call.
56886         * configure: Regenerated.
56887
56888         [BZ #13888]
56889         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56890         or TMPDIR.
56891         (testout): Likewise.
56892
56893         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56894         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56895         $(rtld-installed-name).
56896         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56897         (rtld_installed_name): Likwise.
56898         (runit): Remove function.
56899         (run_getconf): New variable,  Use it for running getconf binary.
56900
56901 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56902
56903         [BZ #14716]
56904         * string/test-memmem.c (check_result): New function.
56905         (do_one_test): Use it.
56906         (check1): New function.
56907         (test_main): Use it.
56908
56909 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
56910
56911         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
56912
56913 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
56914
56915         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
56916         (_G_LSEEK64): Likewise.
56917         (_G_MMAP64): Likewise.
56918         (_G_FSTAT64): Likewise.
56919         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
56920         (_G_LSEEK64): Likewise.
56921         (_G_MMAP64): Likewise.
56922         (_G_FSTAT64): Likewise.
56923         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
56924         unconditional.  Call __mmap64 directly.
56925         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
56926         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
56927         __lseek64 directly.
56928         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
56929         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
56930         __mmap64 directly.
56931         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
56932         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56933         __lseek64 directly.
56934         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
56935         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56936         __lseek64 directly.
56937         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
56938         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
56939         __lseek64 directly.
56940         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
56941         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
56942         __fxstat64 directly.
56943         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
56944         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
56945         unconditional.
56946         (freopen64) [!_G_OPEN64]: Remove conditional code.
56947         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
56948         unconditional.
56949         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
56950         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
56951         unconditional.
56952         (ftello64) [!_G_LSEEK64]: Remove conditional code.
56953         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
56954         unconditional.
56955         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56956         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
56957         unconditional.
56958         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
56959         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
56960         unconditional.
56961         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56962         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
56963         unconditional.
56964         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56965         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
56966         unconditional.
56967         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56968
56969 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56970
56971         [BZ #12140]
56972         * manual/memory.texi (Malloc Tunable Parameters): Add note
56973         about free list pointers overwriting some perturb bytes.
56974         Wording suggested by Roland McGrath.
56975
56976 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
56977
56978         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
56979         (lgamma_test): Likewise.
56980         (tgamma_test): Likewise.
56981
56982 2012-10-16  Florian Weimer  <fweimer@redhat.com>
56983
56984         [BZ #14700]
56985         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
56986         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
56987
56988 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
56989
56990         * NEWS: Mention BZ #14716.
56991         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
56992         when removing AVAILABLE1_USES_J macro.
56993
56994 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
56995
56996         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
56997         (__bswap_64): __uint64_t for unsigned 64-bit int.
56998
56999 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
57000
57001         * include/string.h (memmem): Declare libc hidden alias.
57002         * string/memmem.c (memmem): Define libc hidden alias.
57003         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
57004         __read, __close instead of open, read, close.
57005
57006 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
57007
57008         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
57009         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
57010         global and hidden.
57011         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
57012         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
57013         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
57014         Likewise.
57015         (__rawmemchr_sse2): Likewise.
57016         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
57017         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
57018         (__strchr_sse2): Likewise.
57019         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
57020         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
57021         (__strcasecmp_sse2): Likewise.
57022         (__strncasecmp_sse2): Likewise.
57023         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
57024         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
57025         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
57026         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
57027         (__strrchr_sse2): Likewise.
57028         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
57029         ifunc-impl-list.c.
57030         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
57031         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
57032         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
57033         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
57034         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
57035         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
57036         * sysdeps/x86_64/multiarch/memset.S: Likewise.
57037         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
57038         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
57039         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
57040         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
57041         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
57042         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
57043         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
57044         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
57045         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
57046         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
57047         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
57048         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
57049         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
57050         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
57051         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
57052         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
57053         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
57054         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
57055         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57056         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
57057         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
57058         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
57059         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
57060
57061         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
57062         global and hidden.
57063         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
57064         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
57065         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
57066         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
57067         Likewise.
57068         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
57069         Likewise.
57070         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
57071         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
57072         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
57073         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
57074         ifunc-impl-list.c.
57075         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
57076         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
57077         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
57078         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
57079         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
57080         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
57081         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
57082         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
57083         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
57084         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
57085         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
57086         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
57087         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
57088         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
57089         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
57090         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
57091         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
57092         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
57093         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
57094         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
57095         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
57096         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
57097         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
57098         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
57099         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
57100         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
57101         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
57102         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
57103         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
57104         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
57105         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
57106         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
57107         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
57108         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
57109         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
57110         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
57111         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
57112         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
57113         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
57114         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
57115         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
57116
57117         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
57118         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
57119         * include/ifunc-impl-list.h: New file.
57120         * misc/ifunc-impl-list.c: Likewise.
57121         * misc/Makefile (routines): Add ifunc-impl-list.
57122         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
57123         * string/test-string.h: Include <ifunc-impl-list.h>.
57124         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
57125         TEST_NAME]: New variables.
57126         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
57127         are defined.
57128         (test_init): Call __libc_ifunc_impl_list to initialize
57129         func_list if TEST_IFUNC and TEST_NAME are defined.
57130
57131         * string/Makefile (strop-tests): Add bcopy and bzero.
57132         * string/test-bcopy.c: New file.
57133         * string/test-bzero.c: Likewise.
57134         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
57135         defined.
57136         * string/test-memset.c: Support bzero test if TEST_BZERO is
57137         defined.
57138         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
57139         __libc_memmove.
57140         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
57141         __libc_memset.
57142         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
57143         of memset.
57144
57145 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
57146
57147         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
57148         * configure: Regenerated.
57149
57150         * Makeconfig (+link-static-before-libc): Don't include
57151         $(link-static-libc).
57152
57153         * libio/libio.h (_IO_pos_t): Remove.
57154
57155 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57156
57157         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
57158         McGrath.
57159
57160 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57161
57162         * crypt/crypt-entry.c: Include fips-private.h.
57163         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
57164         * crypt/md5c-test.c (main): Tolerate disabled MD5.
57165         * sysdeps/unix/sysv/linux/fips-private.h: New file.
57166         * sysdeps/generic/fips-private.h: New file, dummy fallback.
57167
57168 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57169
57170         * crypt/crypt-private.h: Include stdbool.h.
57171         (_ufc_setup_salt_r): Return bool.
57172         * crypt/crypt-entry.c: Include errno.h.
57173         (__crypt_r): Return NULL with EINVAL for bad salt.
57174         * crypt/crypt_util.c (bad_for_salt): New.
57175         (_ufc_setup_salt_r): Check that salt is long enough and within
57176         the specified alphabet.
57177         * crypt/badsalttest.c: New file.
57178         * crypt/Makefile (tests): Add it.
57179         ($(objpfx)badsalttest): New.
57180
57181 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
57182
57183         * NEWS: Add entry for BZ #14602.
57184
57185 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57186
57187         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
57188         type-generic.
57189         * math/libm-test.inc: Update comment listing what functions and
57190         macros are tested.
57191         (isgreater_test): New function.
57192         (isgreaterequal_test): Likewise.
57193         (isless_test): Likewise.
57194         (islessequal_test): Likewise.
57195         (islessgreater_test): Likewise.
57196         (isunordered_test): Likewise.
57197         (main): Call the new functions.
57198
57199 2012-10-09  Roland McGrath  <roland@hack.frob.com>
57200
57201         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
57202         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
57203         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
57204         * sysdeps/i386/configure: Regenerated.
57205         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
57206         * sysdeps/mach/configure: Regenerated.
57207         * sysdeps/mach/hurd/configure: Regenerated.
57208         * sysdeps/powerpc/configure: Regenerated.
57209         * sysdeps/powerpc/powerpc32/configure: Regenerated.
57210         * sysdeps/powerpc/powerpc64/configure: Regenerated.
57211         * sysdeps/s390/s390-32/configure: Regenerated.
57212         * sysdeps/s390/s390-64/configure: Regenerated.
57213         * sysdeps/sh/configure: Regenerated.
57214         * sysdeps/sparc/configure: Regenerated.
57215         * sysdeps/unix/sysv/linux/configure: Regenerated.
57216         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
57217         * sysdeps/x86_64/configure: Regenerated.
57218
57219         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
57220         defined.  Don't check if MAP is NULL.
57221
57222 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57223
57224         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
57225         (_G_stat64): Likewise.
57226         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
57227         (_G_stat64): Likewise.
57228         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
57229         instead of struct _G_stat64.
57230         * libio/fileops.c (mmap_remap_check): Likewise.
57231         (decide_maybe_mmap): Likewise.
57232         (_IO_new_file_seekoff): Likewise.
57233         (_IO_file_stat): Likewise.
57234         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
57235         _G_off64_t.
57236         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
57237         instead of struct _G_stat64.
57238         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57239
57240 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
57241
57242         [BZ #14602]
57243         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57244         Replace with ...
57245         (CHECK_EOL): New macro.
57246         (two_way_short_needle): Check beginning of haystack for EOL.  Use
57247         CHECK_EOL.
57248         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57249         Replace with CHECK_EOL.
57250         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57251         Replace with CHECK_EOL.
57252
57253 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
57254
57255         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
57256         type-generic.
57257         * math/libm-test.inc: Update comment listing what functions and
57258         macros are tested.
57259         (finite_test): New function.
57260         (isinf_test): Likewise.
57261         (isnan_test): Likewise.
57262         (fpclassify_test): Test subnormal input.
57263         (isfinite_test): Likewise.
57264         (isnormal_test): Likewise.
57265         (main): Call the new functions.
57266
57267 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
57268
57269         [BZ #14660]
57270         * Makerules (%.dynsym): Force C locale when running
57271         $(OBJDUMP) --dynamic-syms.
57272
57273 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
57274
57275         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
57276         <stdint.h>.
57277
57278 2012-10-06  David S. Miller  <davem@davemloft.net>
57279
57280         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
57281         upper 32-bits of the length value in %o2 since we use branch-on-register
57282         tests which consider the entire 64-bit register.
57283
57284 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
57285
57286         * string/test-strstr.c (check2): Add a test for page boundary.
57287
57288 2012-10-05  David S. Miller  <davem@davemloft.net>
57289
57290         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
57291         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
57292         file.
57293         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57294         sysdep_routines.
57295         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57296         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
57297         and bzero when HWCAP_SPARC_CRYPTO is present.
57298
57299 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
57300
57301         [BZ #14602]
57302         * string/test-strstr.c (check2): New function.
57303         (test_main): Call check2.
57304
57305         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
57306         and bug-strchr1.
57307         * string/bug-strcasestr1.c (do_test): Moved to ...
57308         * string/test-strcasestr.c (check1): Here.  New function.
57309         (do_one_test): Break out result checking code into ...
57310         (check_result): This.  New function.
57311         (do_one_test): Call check_result.
57312         (test_main): Call check1.
57313         * string/bug-strchr1.c (do_test): Moved to ...
57314         * string/test-strchr.c (check1): Here.  New function.
57315         (do_one_test): Break out result checking code into ...
57316         (check_result): This.  New function.
57317         (do_one_test): Call check_result.
57318         (test_main): Call check1.
57319         * string/bug-strstr1.c (main): Moved to ...
57320         * string/test-strstr.c (check1): Here.  New function.
57321         (do_one_test): Break out result checking code into ...
57322         (check_result): This.  New function.
57323         (do_one_test): Call check_result.
57324         (test_main): Call check1.
57325         * string/bug-strcasestr1.c: Removed.
57326         * string/bug-strchr1.c: Likewise.
57327         * string/bug-strstr1.c: Likewise.
57328
57329         * elf/Makefile (dl-routines): Add hwcaps.
57330         * elf/dl-support.c (_dl_important_hwcaps): Removed.
57331         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
57332         (_dl_important_hwcaps): Moved to ...
57333         * elf/dl-hwcaps.c: Here.  New file.
57334         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
57335
57336         [BZ #14557]
57337         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
57338         if IS_IN_rtld isn't defined.
57339
57340         * elf/dl-support.c (_dl_sysinfo_map): New.
57341         Include "get-dynamic-info.h" and "setup-vdso.h".
57342         (_dl_non_dynamic_init): Call setup_vdso.
57343         * elf/dynamic-link.h: Don't include <assert.h>.
57344         (elf_get_dynamic_info): Moved to ...
57345         * elf/get-dynamic-info.h: Here.  New file.
57346         * elf/dynamic-link.h: Include "get-dynamic-info.h".
57347         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
57348         * elf/setup-vdso.h: Here.  New file.
57349         * elf/rtld.c: Include "setup-vdso.h".
57350         (dl_main): Call setup_vdso.
57351
57352 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
57353
57354         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57355         creal in comment listing functions tested.  List finite, isinf,
57356         isnan, isless, islessequal, isgreater, isgreaterequal,
57357         islessgreater, isunordered, lgamma_r and pow10 as functions and
57358         macros not tested.  Mention which functions not tested are aliases
57359         for other functions.  Fix typo.  Note that signs of NaNs are not
57360         tested.
57361
57362         * scripts/config.guess: Update from config.git.
57363         * scripts/config.sub: Likewise.
57364
57365 2012-10-04  Roland McGrath  <roland@hack.frob.com>
57366
57367         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
57368         * misc/madvise.c (madvise): Renamed to __madvise.
57369         Make madvise a weak alias.
57370         * include/sys/mman.h: Declare __madvise.
57371         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
57372         * sysdeps/unix/syscalls.list
57373         (madvise): Make __madvise the strong name, and madvise a weak alias.
57374         * sysdeps/unix/sysv/linux/syscalls.list
57375         (madvise, mmap): Remove redundant entries.
57376         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
57377         * malloc/malloc.c (mtrim): Likewise.
57378         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
57379
57380 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57381
57382         * sysdeps/mach/hurd/dl-cache.c: File removed.
57383         * config.h.in (USE_LDCONFIG): New #undef.
57384         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
57385         * configure: Regenerated.
57386         * elf/Makefile (dl-routines): Add dl-cache only under
57387         [$(use-ldconfig) = yes].
57388         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
57389         cache on [USE_LDCONFIG].
57390         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
57391         [USE_LDCONFIG].
57392         * elf/rtld.c (dl_main): Likewise.
57393
57394 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
57395
57396         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
57397         _SC_LEVEL4_CACHE_LINESIZE.
57398
57399 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57400
57401         * sysdeps/unix/bsd/confstr.h: File removed.
57402
57403 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
57404
57405         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
57406         sys/sdt-config.h.
57407
57408 2012-10-02  Roland McGrath  <roland@hack.frob.com>
57409
57410         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
57411         Make 'mapoff' field ElfW(Off) rather than off_t.
57412
57413 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57414
57415         * nscd/Makefile: Remove nscd-cflags and all its users.
57416         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
57417         (CFLAGS-nonlib): Add compiler flags for nscd modules.
57418
57419         [BZ #10631]
57420         * malloc.c (malloc_printerr): Clarify error message.
57421
57422 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
57423
57424         [BZ #14648]
57425         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57426         Set bit_FMA_Usable if FMA is supported.
57427         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
57428         macro.
57429         (bit_FMA4_Usable): Updated.
57430         (index_FMA_Usable): New macro.
57431         (CPUID_FMA): Likewise.
57432         (HAS_FMA): Defined with bit_FMA_Usable.
57433
57434 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57435
57436         * bits/types.h (__swblk_t): Type removed.
57437         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
57438         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
57439         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
57440         (__SWBLK_T_TYPE): Likewise.
57441         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57442         (__SWBLK_T_TYPE): Likewise.
57443         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57444         (__SWBLK_T_TYPE): Likewise.
57445         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57446         (__SWBLK_T_TYPE): Likewise.
57447
57448 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57449             Honza Horak <hhorak@redhat.com>
57450
57451         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57452         (xdr_mapname): Use YPMAXMAP as maxsize.
57453         (xdr_peername): Use YPMAXPEER as maxsize.
57454         (xdr_keydat): Use YPAXRECORD as maxsize.
57455         (xdr_valdat): Use YPMAXRECORD as maxsize.
57456
57457 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57458
57459         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57460
57461         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57462         * csu/init-first.c: ... here.
57463         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57464         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57465         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57466         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57467         * sysdeps/i386/init-first.c: File removed.
57468         * sysdeps/sh/init-first.c: File removed.
57469
57470 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57471
57472         [BZ #14645]
57473         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57474         if x * y might underflow to zero and z is zero.
57475         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57476         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57477         * math/libm-test.inc (min_subnorm_value): New variable.
57478         (fma_test): Add more tests.
57479         (fma_test_towardzero): Likewise.
57480         (fma_test_downward): Likewise.
57481         (fma_test_upward): Likewise.
57482         (initialize): Set min_subnorm_value.
57483
57484 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57485
57486         [BZ #14638]
57487         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57488         0 + 0.
57489         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57490         mode for addition resulting in exact zero.
57491         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57492         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57493         exact 0 + 0.
57494         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57495         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57496         * math/libm-test.inc (fma_test): Add more tests.
57497         (fma_test_towardzero): New function.
57498         (fma_test_downward): Likewise.
57499         (fma_test_upward): Likewise.
57500         (main): Call the new functions.
57501
57502 2012-09-28  David S. Miller  <davem@davemloft.net>
57503
57504         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57505
57506 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57507
57508         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57509         instead of SIGALRM.
57510
57511         * sysdeps/gnu/_G_config.h: Moved to ...
57512         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57513         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57514         * sysdeps/generic/_G_config.h: ... here.
57515
57516         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57517
57518         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57519
57520         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57521         Conditionalize target on [libnss_test1.so-version].
57522
57523         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57524
57525         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57526         (elfobjdir): Move out of conditionals.
57527
57528         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57529         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57530         (__nss_lookup_function): Conditionalize label remove_from_tree on
57531         [!DO_STATIC_NSS || SHARED], matching its only use.
57532
57533 2012-09-28  David S. Miller  <davem@davemloft.net>
57534
57535         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57536         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57537         file.
57538         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57539         sysdep_routines.
57540         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57541         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57542         when HWCAP_SPARC_CRYPTO is present.
57543
57544 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57545
57546         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57547
57548 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57549
57550         [BZ #6530]
57551         * stdio-common/vfprintf.c (process_string_arg): Revert
57552         2000-07-22 change.
57553
57554 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57555
57556         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57557         for testcase.
57558         * stdio-common/tst-sprintf.c: Include <locale.h>
57559         (main): Test sprintf's handling of incomplete multibyte
57560         characters.
57561
57562 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57563
57564         * elf/dl-runtime.c (VERSYMIDX): Removed.
57565         * elf/dl-version.c (VERSYMIDX): Likewise.
57566         * elf/do-rel.h (VERSYMIDX): Likewise.
57567         (VALIDX): Likewise.
57568         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57569         * elf/rtld.c (VALIDX): Likewise.
57570         (ADDRIDX): Likewise.
57571         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57572         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57573         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57574         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57575         (VALIDX): Likewise.
57576         (ADDRIDX): Likewise.
57577
57578 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57579
57580         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57581
57582 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57583
57584         [BZ #11438]
57585         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57586         to global scope.
57587         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57588         addresses are in the same scope as 192.0.2/24.
57589         * posix/gai.conf: Document new scope table defaults.
57590
57591 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57592
57593         [BZ #5298]
57594         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57595         for ftell.  Compute offsets from write pointers instead.
57596         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57597
57598 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57599
57600         [BZ #14543]
57601         * libio/Makefile (tests): New test case tst-fseek.
57602         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57603         combination works in wide mode.
57604         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57605         state when the external buffer state changes.
57606
57607 2012-09-27  David S. Miller  <davem@davemloft.net>
57608
57609         [BZ #14376]
57610         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57611         pass reloc->r_addend in as the 'high' argument to
57612         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57613
57614         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57615
57616 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57617
57618         * rt/tst-aio2.c: Include <pthread.h>.
57619         * rt/tst-aio3.c: Likewise.
57620
57621 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57622
57623         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57624
57625 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57626
57627         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57628         contents on [SHARED].
57629
57630 2012-09-26  Marek Polacek  <polacek@redhat.com>
57631
57632         [BZ #14530]
57633         [BZ #13741]
57634         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57635         for C++ and GCC <4.3 as well as for non GCC compilers.
57636
57637 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57638
57639         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57640
57641 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57642
57643         * Makefile.in (all, install): Declare with .PHONY.
57644         Reported by Michael Hope <michael.hope@linaro.org>.
57645
57646 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57647
57648         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57649         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57650         system header.
57651         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57652         Likewise.
57653         (sydep_routines): Add the new and the internal functions.
57654         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57655         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57657         (GLIBC_2.17): Add the new function.
57658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57659         (GLIBC_2.17): Likewise.
57660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57661         (GLIBC_2.17): Likewise.
57662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57663         (GLIBC_2.17): Likewise.
57664         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57665
57666 2012-09-25  Alan Modra  <amodra@gmail.com>
57667
57668         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57669         Add release barrier before setting once_control to say
57670         initialisation is done.  Add hints on lwarx.  Use macro in
57671         place of isync.
57672         (clear_once_control): Add release barrier.
57673
57674 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57675
57676         [BZ #13629]
57677         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57678         specially.
57679         * math/s_clog10.c (__clog10): Likewise.
57680         * math/s_clog10f.c (__clog10f): Likewise.
57681         * math/s_clog10l.c (__clog10l): Likewise.
57682         * math/s_clogf.c (__clogf): Likewise.
57683         * math/s_clogl.c (__clogl): Likewise.
57684         * math/Makefile (libm-calls): Add x2y2m1.
57685         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57686         (__x2y2m1): Likewise.
57687         (__x2y2m1l): Likewise.
57688         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57689         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57690         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57691         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57692         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57693         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57694         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57695         * sysdeps/i386/fpu/libm-test-ulps: Update.
57696         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57697
57698         [BZ #14621]
57699         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57700         int as type of variable DEPTH.
57701         (glob): Use size_t instead of int as type of variables NEWCOUNT
57702         and OLD_PATHC.
57703
57704 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57705
57706         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57707         Add s_sincosf-sse2.
57708         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57709         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57710         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57711         macros for using routine as __sincosf_ia32.
57712         Use macro for function declaration and weak_alias.
57713         * sysdeps/i386/fpu/libm-test-ulps: Update.
57714
57715         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57716         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57717
57718         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57719         subnormal argument.
57720         * math/s_cexpf.c (__cexpf): Likewise.
57721         * math/s_csinf.c (__csinf): Likewise.
57722         * math/s_csinhf.c (__csinhf): Likewise.
57723         * math/s_ctanf.c (__ctanf): Likewise.
57724         * math/s_ctanhf.c (__ctanhf): Likewise.
57725         * math/s_ccosh.c (__ccoshf): Likewise.
57726         * math/s_cexp.c (__cexpl): Likewise.
57727         * math/s_csin.c (__csin): Likewise.
57728         * math/s_csinh.c (__csinh): Likewise.
57729         * math/s_ctan.c (__ctan): Likewise.
57730         * math/s_ctanh.c (ctanh): Likewise.
57731         * math/s_ccoshl.c (__ccoshl): Likewise.
57732         * math/s_cexpl.c (__cexpl): Likewise.
57733         * math/s_csinl.c (__csinl): Likewise.
57734         * math/s_csinhl.c (__csinhl): Likewise.
57735         * math/s_ctanl.c (__ctanl): Likewise.
57736         * math/s_ctanhl.c (__ctanhl): Likewise.
57737
57738 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57739
57740         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57741         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57742         (_IO_off_t): Define to __off_t, not _G_off_t.
57743         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57744         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57745         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57746         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57747         type of __dummy and __dummy2 fields.
57748         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57749         (_G_ssize_t): Likewise.
57750         (_G_off_t): Likewise.
57751         (_G_pid_t): Likewise.
57752         (_G_uid_t): Likewise.
57753         (_G_wchar_t): Likewise.
57754         (_G_wint_t): Likewise.
57755         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57756         (_G_ssize_t): Likewise.
57757         (_G_off_t): Likewise.
57758         (_G_pid_t): Likewise.
57759         (_G_uid_t): Likewise.
57760         (_G_wchar_t): Likewise.
57761         (_G_wint_t): Likewise.
57762         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57763         (_G_ssize_t): Likewise.
57764         (_G_off_t): Likewise.
57765         (_G_pid_t): Likewise.
57766         (_G_uid_t): Likewise.
57767         (_G_wchar_t): Likewise.
57768         (_G_wint_t): Likewise.
57769
57770 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57771
57772         * malloc/arena.c: Include malloc-sysdep.h.
57773         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57774         is sufficient to shrink the heap or an unmap is needed.
57775         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57776         new function check_may_shrink_heap.
57777         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57778         new function check_may_shrink_heap.
57779
57780 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57781
57782         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57783         comments.
57784
57785 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57786
57787         * catgets/test-gencat.sh: Add "set -e".
57788         * elf/tst-pathopt.sh: Likewise.
57789         * grp/tst_fgetgrent.sh: Likewise.
57790         * iconvdata/run-iconv-test.sh: Likewise.
57791         * intl/tst-gettext.sh: Likewise.
57792         * intl/tst-gettext2.sh: Likewise.
57793         * intl/tst-gettext4.sh: Likewise.
57794         * intl/tst-gettext6.sh: Likewise.
57795         * intl/tst-translit.sh: Likewise.
57796         * io/ftwtest-sh: Likewise.
57797         * libio/test-freopen.sh: Likewise.
57798         * malloc/tst-mtrace.sh: Likewise.
57799         * posix/globtest.sh: Likewise.
57800         * posix/tst-getconf.sh: Likewise.
57801         * posix/wordexp-tst.sh: Likewise.
57802         * stdio-common/tst-printf.sh: Likewise.
57803         * stdio-common/tst-unbputc.sh: Likewise.
57804         * stdlib/tst-fmtmsg.sh: Likewise.
57805         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57806         * catgets/Makefile: Do not specify -e option when running
57807         testsuite shell scripts.
57808         * elf/Makefile: Likewise.
57809         * grp/Makefile: Likewise.
57810         * iconvdata/Makefile: Likewise.
57811         * intl/Makefile: Likewise.
57812         * io/Makefile: Likewise.
57813         * libio/Makefile: Likewise.
57814         * malloc/Makefile: Likewise.
57815         * posix/Makefile: Likewise.
57816         * stdio-common/Makefile: Likewise.
57817         * stdlib/Makefile: Likewise.
57818         * sysdeps/x86_64/Makefile: Likewise.
57819
57820         * io/ftwtest-sh: Add copyright header.
57821         * posix/globtest.sh: Likewise.
57822         * posix/tst-getconf.sh: Likewise.
57823         * posix/wordexp-tst.sh: Likewise.
57824         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57825
57826 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57827
57828         [BZ #13679]
57829         * Makeconfig (+link): Defined as $(+link-static) if
57830         $(build-shared) isn't yes.
57831         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57832         isn't yes.
57833         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57834
57835         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57836
57837         [BZ #14562]
57838         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57839         new chunk size with MALLOC_ALIGN_MASK.
57840
57841 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57842
57843         [BZ #5044]
57844         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57845         <rounding-mode.h>.
57846         (__printf_fphex): Determine rounding using get_rounding_mode and
57847         round_away.
57848         * stdio-common/tst-printf-round.c (struct hex_test): New
57849         structure.
57850         (hex_tests): New variable.
57851         (test_hex_in_one_mode): New function.
57852         (do_test): Also run tests for hex float output.
57853
57854 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57855
57856         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57857         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57858         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57859         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57860         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57861         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57862         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57863         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57864
57865 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57866
57867         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57868         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57869         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57870         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57871
57872 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57873
57874         [BZ #14579]
57875         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57876         mode only.
57877         * elf/tst-rtld-load-self.sh: New test.
57878         * elf/Makefile: Run it.
57879
57880 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57881
57882         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57883         (tst-writev-ENV): Remove.
57884         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57885
57886 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57887
57888         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57889
57890 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57891
57892         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57893         unconditional.
57894         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57895         Likewise.
57896         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57897         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57898         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57899         Likewise.
57900
57901 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57902
57903         [BZ #14587]
57904         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
57905         * config.make.in (have-cpp-asm-debuginfo): Removed.
57906         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
57907         * configure: Regenerated.
57908
57909 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
57910
57911         [BZ #5044]
57912         * stdio-common/printf_fp.c: Include <stdbool.h> and
57913         <rounding-mode.h>.
57914         (___printf_fp): Determine rounding using get_rounding_mode and
57915         round_away.
57916         * stdio-common/tst-printf-round.c: New file.
57917         * stdio-common/Makefile (tests): Add tst-printf-round.
57918         (link-libm): New variable.
57919         ($(objpfx)tst-printf-round): Depend in $(link-libm).
57920
57921 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
57922
57923         [BZ #14576]
57924         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
57925         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
57926         Likewise.
57927         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
57928         Likewise.
57929
57930 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
57931
57932         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
57933         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57934         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57935         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57936
57937 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
57938
57939         [BZ #14518]
57940         * include/rounding-mode.h: New file.
57941         * sysdeps/generic/get-rounding-mode.h: Likewise.
57942         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
57943         * stdlib/strtod_l.c: Include <rounding-mode.h>.
57944         (MAX_VALUE): New macro.
57945         (MIN_VALUE): Likewise.
57946         (overflow_value): New function.
57947         (underflow_value): Likewise.
57948         (round_and_return): Use overflow_value and underflow_value to
57949         determine return values in overflow and underflow cases.  Use
57950         round_away to determine rounding depending on rounding mode.
57951         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
57952         determine return values in overflow and underflow cases.
57953         * stdlib/tst-strtod-round.c: Include <fenv.h>.
57954         (struct test_results): New structure.
57955         (struct test): Use struct test_results to store expected results
57956         for all rounding modes.
57957         (TEST): Include expected results for all rounding modes.
57958         (test_in_one_mode): New function.
57959         (do_test): Use test_in_one_mode to compute and check results.
57960         Check results for all rounding modes.
57961         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
57962         $(link-libm).
57963
57964 2012-12-09  Allan McRae  <allan@archlinux.org>
57965
57966         * sysdeps/i386/fpu/libm-test-ulps: Update
57967
57968 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
57969
57970         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
57971         (_G_int32_t): Likewise.
57972         (_G_uint16_t): Likewise.
57973         (_G_uint32_t): Likewise.
57974         (_G_HAVE_BOOL): Likewise.
57975         (_G_HAVE_ATEXIT): Likewise.
57976         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57977         (_G_HAVE_IO_FILE_OPEN): Likewise.
57978         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
57979         (_G_int32_t): Likewise.
57980         (_G_uint16_t): Likewise.
57981         (_G_uint32_t): Likewise.
57982         (_G_HAVE_BOOL): Likewise.
57983         (_G_HAVE_ATEXIT): Likewise.
57984         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57985         (_G_HAVE_IO_FILE_OPEN): Likewise.
57986         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
57987         (_G_int32_t): Likewise.
57988         (_G_uint16_t): Likewise.
57989         (_G_uint32_t): Likewise.
57990         (_G_HAVE_BOOL): Likewise.
57991         (_G_HAVE_ATEXIT): Likewise.
57992         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
57993         (_G_HAVE_IO_FILE_OPEN): Likewise.
57994
57995 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
57996
57997         * csu/libc-tls.c: Update copyright years.
57998
57999 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
58000
58001         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
58002         [!_G_USING_THUNKS]: Remove conditional code.
58003         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
58004         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
58005
58006         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
58007         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
58008         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58009         (_G_VTABLE_LABEL_PREFIX): Likewise.
58010         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58011         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58012         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58013         (_G_VTABLE_LABEL_PREFIX): Likewise.
58014         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58015         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58016         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58017         (_G_VTABLE_LABEL_PREFIX): Likewise.
58018         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58019
58020 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
58021
58022         * libio/Makefile: Include ../Makeconfig before tests.
58023         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
58024         only if $(build-shared) is yes.
58025
58026         * iconv/gconv_db.c: Update copyright years.
58027
58028 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58029
58030         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
58031         unwind info if defined PIC. Fix special cases description.
58032         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
58033
58034         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
58035         DP_HI_MASK entry.
58036         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
58037
58038 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
58039
58040         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
58041
58042         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
58043         is NULL.
58044
58045         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
58046         (LDLIBS-tst-chk4): This.
58047         (LDFLAGS-tst-chk5): Renamed to ...
58048         (LDLIBS-tst-chk5): This.
58049         (LDFLAGS-tst-chk6): Renamed to ...
58050         (LDLIBS-tst-chk6): This.
58051         (LDFLAGS-tst-lfschk4): Renamed to ...
58052         (LDLIBS-tst-lfschk4): This.
58053         (LDFLAGS-tst-lfschk5): Renamed to ...
58054         (LDLIBS-tst-lfschk5): This.
58055         (LDFLAGS-tst-lfschk6): Renamed to ...
58056         (LDLIBS-tst-lfschk6): This.
58057
58058         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
58059         on $(common-objpfx)soversions.mk.
58060
58061 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
58062
58063         [BZ #10014]
58064         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
58065         example host name.
58066
58067 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
58068
58069         * malloc/arena.c (arena_get_retry): New function that gets
58070         another arena for the caller to try its request on.
58071         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
58072         current arena cannot fulfill the request.
58073         (__libc_memalign): Likewise.
58074         (__libc_memalign): Likewise.
58075         (__libc_pvalloc): Likewise.
58076         (__libc_calloc): Likewise.
58077
58078 2012-09-05  John Tobey  <john.tobey@gmail.com>
58079
58080         [BZ #13542]
58081         * manual/arith.texi (Operations on Complex): Fix description
58082         of carg branch cut.
58083
58084 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58085
58086         [BZ #10014]
58087         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
58088         host name.
58089
58090         [BZ #10038]
58091         * manual/memory.texi (Memory): Make order of menu items match
58092         order of sections.
58093
58094 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58095
58096         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
58097         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
58098         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
58099
58100 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58101
58102         * csu/libc-tls.c (static_dtv): Renamed to ...
58103         (_dl_static_dtv): This.  Make it global.
58104         (_dl_initial_dtv): Removed.
58105         (__libc_setup_tls): Updated.
58106         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
58107         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
58108         DL_INITIAL_DTV.
58109
58110 2012-09-06  Petr Machata  <pmachata@redhat.com>
58111
58112         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
58113         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
58114         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
58115         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
58116
58117 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58118
58119         [BZ #14545]
58120         * csu/libc-tls.c (_dl_initial_dtv): New variable.
58121         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
58122         freeing dtv[-1].
58123
58124 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58125
58126         [BZ #14544]
58127         * Makeconfig (link-static-before-libc): Replace $(+prector)
58128         with $(+prectorT).
58129         (link-static-after-libc): Replace $(+postctor) with
58130         $(+postctorT).
58131         (link-bounded): Replace $(+prector)/$(+postctor) with
58132         $(+prectorT)/$(+postctorT).
58133         (+prectorT): New macro.
58134         (+postctorT): Likewise.
58135
58136 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58137
58138         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
58139         (round_str): Handle values above the maximum for IBM long double
58140         as inexact.
58141         * stdlib/tst-strtod-round.c (tests): Regenerated.
58142
58143 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58144
58145         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
58146         assembler flag.
58147         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
58148         zarch_nohighgprs around the zarch optimized routines.
58149         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
58150         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
58151         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
58152         for zarch.
58153
58154 2012-09-05  David S. Miller  <davem@davemloft.net>
58155
58156         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58157
58158         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
58159         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
58160         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
58161         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
58162         entries.
58163
58164 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58165
58166         * malloc/arena.c: Fold copyright years.
58167         * malloc/mcheck.c, malloc/memusage.c: Likewise.
58168
58169 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58170
58171         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
58172
58173 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58174
58175         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
58176
58177 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58178
58179         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
58180         change internal state upon failure.
58181
58182 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58183
58184         * malloc/mcheck.c (mcheck_check_all): Fix typo.
58185         * malloc/memusage.c (mmap): Likewise.
58186         (mmap64, mremap): Likewise.  Adjust name in comment.
58187
58188 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58189
58190         * libio/fileops.c: Fix typos in comments.
58191         * libio/oldfileops.c: Likewise.
58192         * libio/wfileops.c: Likewise.
58193
58194 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58195
58196         [BZ #1349]
58197         * malloc/Makefile (tests): Add tst-malloc-usable test case.
58198         (tst-malloc-usable-ENV): Set environment for test case.
58199         * malloc/hooks.c (malloc_check_get_size): New function to get
58200         requested size.
58201         * malloc/malloc.c (musable): Use malloc_check_get_size.
58202         * malloc/tst-malloc-usable.c: New test case.
58203
58204 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58205
58206         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
58207
58208 2012-09-05  Allan McRae  <allan@archlinux.org>
58209
58210         [BZ #13966]
58211         * configure.in (CXX_SYSINCLUDES): Use compiler output to
58212         determine header location.
58213         * configure: Regenerated.
58214
58215 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58216
58217         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
58218         float format.
58219         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
58220         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
58221         format.
58222         (test): Regenerate.
58223
58224 2012-09-04  David S. Miller  <davem@davemloft.net>
58225
58226         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
58227         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
58228         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
58229
58230 2012-09-04  Florian Weimer  <fweimer@redhat.com>
58231
58232         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
58233         failures.
58234
58235         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
58236
58237 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
58238
58239         [BZ #9914]
58240         * libio/iogetdelim.c: Include <limits.h>.
58241         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
58242         + len + 1 would overflow.
58243
58244 2012-09-03  Andreas Jaeger  <aj@suse.de>
58245
58246         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58247         * sysdeps/i386/fpu/libm-test-ulps: Update.
58248
58249 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58250
58251         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
58252         Add s_sinf-sse2, s_conf-sse2.
58253
58254         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
58255         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
58256         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
58257         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
58258
58259         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
58260         for using routine as __sinf_ia32.
58261         Use macro for function declaration and weak_alias.
58262         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
58263         for using routine as __cosf_ia32.
58264         Use macro for function declaration and weak_alias.
58265
58266         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
58267         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
58268
58269         * sysdeps/x86_64/fpu/s_sinf.S: New file.
58270         * sysdeps/x86_64/fpu/s_cosf.S: New file.
58271         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58272
58273         * math/libm-test.inc (cos_test): Add more test cases.
58274         (sin_test): Likewise.
58275         (sincos_test): Likewise.
58276
58277 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58278
58279         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
58280         (IFUNC_RESOLVE): Make pointers to the specialized implementations
58281         hidden.
58282         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
58283
58284 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
58285
58286         [BZ #14538]
58287         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
58288         first element of the GOT.
58289         (elf_machine_load_address): Return the difference between
58290         the runtime address of _DYNAMIC and elf_machine_dynamic ().
58291
58292 2012-09-01  Allan McRae  <allan@archlinux.org>
58293
58294         [BZ #13412]
58295         * configure.in (AWK): Require gawk version 3.0 or later.
58296         * configure: Regenerated.
58297
58298 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
58299
58300         * sysdeps/unix/sysv/linux/kernel-features.h
58301         (__ASSUME_POSIX_CPU_TIMERS): Remove.
58302         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58303         [__NR_clock_getres]: Make code unconditional.
58304         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
58305         (clock_getcpuclockid): Remove code left unreachable by removal of
58306         conditionals.
58307         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
58308         code unconditional.
58309         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58310         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58311         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
58312         Make code unconditional.
58313         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58314         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58315         * sysdeps/unix/sysv/linux/clock_settime.c
58316         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
58317         conditional code.
58318         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
58319         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58320
58321 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
58322
58323         [BZ #14476]
58324         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
58325         scripts/test-installation.pl.
58326
58327         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
58328         and $ld_so_version if it is set.
58329
58330 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58331
58332         [BZ #14516]
58333         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
58334         failure if reading from procfs failed.
58335         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
58336
58337 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58338
58339         * sysdeps/unix/sysv/linux/kernel-features.h
58340         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
58341         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58342         Remove conditional code.
58343         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58344         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
58345         Remove conditional code.
58346         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58347         * sysdeps/unix/sysv/linux/i386/fxstat.c
58348         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58349         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58350         * sysdeps/unix/sysv/linux/i386/fxstatat.c
58351         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58352         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58353         * sysdeps/unix/sysv/linux/i386/lxstat.c
58354         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58355         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58356         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
58357         Remove conditional code.
58358         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58359         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58360         Remove conditional code.
58361         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58362         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
58363         <kernel-features.h>.
58364         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
58365         Remove.
58366         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
58367         Remove conditional code.
58368         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58369         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
58370         Remove conditional.
58371
58372 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
58373
58374         [BZ #5400]
58375         * NEWS: Add fixed bug number.
58376
58377 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58378
58379         [BZ #14519]
58380         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
58381         underflowing exponent in case of negative sign.
58382         * stdlib/tst-strtod-round-data: Add more tests.
58383         * stdlib/tst-strtod-round.c (tests): Regenerated.
58384
58385         [BZ #3479]
58386         * stdlib/strtod_l.c (NDIG): Remove.
58387         (HEXNDIG): Likewise.
58388         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
58389         smallest representable value.
58390         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
58391         lie within an exact representation of 1/2 ulp of the result.
58392         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
58393         unconditionally.
58394         (TENS_P9_IDX): Define unconditionally.
58395         (TENS_P9_SIZE): Likewise.
58396         (TENS_P10_IDX): Likewise.
58397         (TENS_P10_SIZE): Likewise.
58398         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
58399         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
58400         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
58401         entries for 10^2^13 and 10^2^14.
58402         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
58403         (TENS_P13_IDX): Define.
58404         (TENS_P13_SIZE): Likewise.
58405         (TENS_P14_IDX): Likewise.
58406         (TENS_P14_SIZE): Likewise.
58407         (_fpioconst_pow10): Change array size to
58408         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
58409         unconditional.
58410         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
58411         1024]: Add entries for 10^2^13 and 10^2^14.
58412         [LAST_POW10 > _LAST_POW10]: Remove #error.
58413         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
58414         (_fpioconst_pow10): Change array size to
58415         FPIOCONST_POW10_ARRAY_SIZE.
58416         * stdlib/gen-fpioconst.c: New file.
58417         * stdlib/gen-tst-strtod-round.c: Likewise.
58418         * stdlib/tst-strtod-round-data: Likewise.
58419         * stdlib/tst-strtod-round.c: Likewise.
58420         * stdlib/Makefile (tests): Add tst-strtod-round.
58421
58422         [BZ #14459]
58423         * stdlib/strtod_l.c: Include <stdint.h>.
58424         (NDEBUG): Do not define.
58425         (round_and_return): Change EXPONENT parameter to type intmax_t.
58426         Rearrange calculations to avoid internal overflow possibilities.
58427         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
58428         Rearrange calculations to avoid internal overflow possibilities.
58429         Assert that number fits inside MPNSIZE limbs.
58430         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
58431         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
58432         calculations and add assertions to avoid internal overflow
58433         possibilities.  Add casts to avoid signed/unsigned operations.
58434         * stdlib/tst-strtod-overflow.c: New file.
58435         * stdlib/Makefile (tests): Add tst-strtod-overflow.
58436
58437 2012-08-25  Marek Polacek  <polacek@redhat.com>
58438
58439         * time/time.h: Fix some typos in comments.
58440
58441 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58442
58443         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58444         * posix/tst-rfc3484-2.c: Likewise.
58445         * posix/tst-rfc3484-3.c: Likewise.
58446
58447 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58448
58449         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58450         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58451
58452 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58453
58454         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58455         #include of fxstatat64.c.
58456
58457 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58458
58459         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58460         * shadow/getspent_r.c: Likewise.
58461         * shadow/getspnam.c: Likewise.
58462         * shadow/getspnam_r.c: Likewise.
58463         * gshadow/getsgent.c: Likewise.
58464         * gshadow/getsgent_r.c: Likewise.
58465         * gshadow/getsgnam.c: Likewise.
58466         * gshadow/getsgnam_r.c: Likewise.
58467         * inet/getnetbyad.c: Likewise.
58468         * inet/getnetbyad_r.c: Likewise.
58469         * inet/getnetbynm.c: Likewise.
58470         * inet/getnetbynm_r.c: Likewise.
58471         * inet/getnetent.c: Likewise.
58472         * inet/getnetent_r.c: Likewise.
58473         * inet/getproto.c: Likewise.
58474         * inet/getproto_r.c: Likewise.
58475         * inet/getprtent.c: Likewise.
58476         * inet/getprtent_r.c: Likewise.
58477         * inet/getprtname.c: Likewise.
58478         * inet/getprtname_r.c: Likewise.
58479         * inet/getrpcbyname.c: Likewise.
58480         * inet/getrpcbyname_r.c: Likewise.
58481         * inet/getrpcbynumber.c: Likewise.
58482         * inet/getrpcbynumber_r.c: Likewise.
58483         * inet/getrpcent.c: Likewise.
58484         * inet/getrpcent_r.c: Likewise.
58485         * inet/getaliasent.c: Likewise.
58486         * inet/getaliasent_r.c: Likewise.
58487         * inet/getaliasname.c: Likewise.
58488         * inet/getaliasname_r.c: Likewise.
58489         * nscd/getgrgid_r.c: Likewise.
58490         * nscd/getgrnam_r.c: Likewise.
58491         * nscd/gethstbyad_r.c: Likewise.
58492         * nscd/gethstbynm3_r.c: Likewise.
58493         * nscd/getpwnam_r.c: Likewise.
58494         * nscd/getpwuid_r.c: Likewise.
58495         * nscd/getsrvbynm_r.c: Likewise.
58496         * nscd/getsrvbypt_r.c: Likewise.
58497         * nscd/gai.c: Likewise.
58498
58499         * configure.in (build_nscd): New substituted variable, set
58500         by --disable-build-nscd and defaults to $use_nscd.
58501         * configure: Regenerated.
58502         * config.make.in (build-nscd): New substituted variable.
58503         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58504         Change conditional to require [$(build-nscd) = yes] as well.
58505         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58506
58507         [BZ# 13696]
58508         * configure.in (use_nscd): New substituted variable, set by
58509         --disable-nscd.  If enabled, define USE_NSCD.
58510         * configure: Regenerated.
58511         * config.h.in: Add USE_NSCD.
58512         * config.make.in (use-nscd): New substituted variable.
58513         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58514         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58515         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58516         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58517         (CFLAGS-getgrnam_r.c): Likewise.
58518         (CFLAGS-initgroups.c): Likewise.
58519         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58520         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58521         Variables removed.
58522         * inet/getnetgrent_r.c
58523         (nscd_setnetgrent): New function, broken out of ...
58524         (setnetgrent): ... here.  Call it.
58525         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58526         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58527         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58528         * nscd/Makefile (routines, aux): Move definitions after include of
58529         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58530         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58531         Conditionalize on [USE_NSCD].
58532         (is_nscd, nscd_init_cb): Likewise.
58533         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58534         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58535         * nss/nss_db/db-init.c: Likewise.
58536         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58537         [USE_NSCD].
58538         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58539         (make_request): Use it.
58540         (cache_valid_p): New function.
58541         (__check_pf): Use it.
58542         * NEWS: Add item for --disable-nscd.
58543
58544 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58545
58546         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58547         to support sed >= 4.2.1-20-ga9bf076.
58548         * configure: Regenerated.
58549
58550 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58551
58552         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58553         Conditionalize whole body on [IREL].
58554
58555 2012-08-22  Jeff Law <law@redhat.com>
58556
58557         [BZ #14505]
58558         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58559         if the family is PF_UNSPEC.
58560
58561 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58562
58563         * Makerules (lib-version): Rename from V.
58564         (install-lib-nosubdir): Change V to lib-version.
58565
58566 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58567
58568         [BZ #14252]
58569         * powerpc32/power6/wcschr.c: New file.
58570         * powerpc32/power6/wcscpy.c: New file.
58571         * powerpc32/power6/wcsrchr.c: New file.
58572         * powerpc64/power6/wcschr.c: New file.
58573         * powerpc64/power6/wcscpy.c: New file.
58574         * powerpc64/power6/wcsrchr.c: New file.
58575
58576 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58577
58578         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58579         (two_way_short_needle): Use it.
58580         * string/strstr.c (AVAILABLE1_USES_J): Define.
58581         * string/strcasestr.c: Likewise.
58582
58583         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58584         array references.
58585         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58586
58587         [BZ #11607]
58588         * NEWS: Add an entry.
58589         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58590         define their defaults.
58591         (two_way_short_needle): Detect end-of-string on-the-fly.
58592         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58593         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58594         * string/bug-strcasestr1.c: New test.
58595         * string/Makefile: Run it.
58596
58597 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58598
58599         [BZ #11607]
58600         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58601         the first character.
58602
58603 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58604
58605         * csu/elf-init.c (__libc_csu_irel): Function removed.
58606         * csu/libc-start.c (apply_irel): New function.
58607         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58608
58609 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58610
58611         * sysdeps/unix/sysv/linux/kernel-features.h
58612         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58613         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58614         <kernel-features.h>.
58615         [__NR_fadvise64_64]: Make code unconditional.
58616         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58617         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58618         !__NR_fadvise64_64)]: Likewise.
58619         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58620         !__NR_fadvise64_64))]: Likewise.
58621         [__NR_fadvise64]: Make code unconditional.
58622         [!__NR_fadvise64]: Remove conditional code.
58623         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58624         <kernel-features.h>.
58625         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58626         unconditional.
58627         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58628         conditional code.
58629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58630         not include <kernel-features.h>.
58631         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58632         unconditional.
58633         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58634         conditional code.
58635         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58636         include <kernel-features.h>.
58637         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58638         unconditional.
58639         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58640         conditional code.
58641
58642 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58643
58644         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58645         slight instruction rearrangements per scrollpipe analysis.
58646         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58647
58648 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58649
58650         * manual/syslog.texi (syslog; vsyslog, closelog):
58651         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58652         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58653
58654         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58655         DSOCAPS to match condition on defining it.
58656
58657 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58658
58659         * sysdeps/unix/sysv/linux/kernel-features.h
58660         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58662         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58663         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58664         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58665         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58666         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58668         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58669         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58670
58671         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58672         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58673
58674         * sysdeps/unix/sysv/linux/kernel-features.h
58675         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58676         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58677         unconditional.
58678         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58679         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58680         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58681         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58682         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58683         Make code unconditional.
58684         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58685         (__mmap64) [!__NR_mmap2]: Likewise.
58686         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58687         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58688         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58689         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58690         [__NR_mmap2]: Make code unconditional.
58691         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58692         (__mmap64) [!__NR_mmap2]: Likewise.
58693
58694 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58695
58696         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58697
58698 2012-08-18  Andreas Jaeger  <aj@suse.de>
58699
58700         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58701
58702 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58703
58704         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58705         * include/unistd.h (__have_sock_cloexec): Likewise.
58706         (__have_pipe2): Likewise.
58707         (__have_dup3): Likewise.
58708
58709 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58710
58711         [BZ #9685]
58712         * include/unistd.h (__have_pipe2): Change define into an extern int.
58713         (__have_dup3): Likewise.
58714         * socket/have_sock_cloexec.c: Include fcntl.h.
58715         (__have_pipe2): New variable.
58716         (__have_dup3): Likewise.
58717
58718 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58719
58720         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58721
58722 2012-08-17  Marek Polacek  <polacek@redhat.com>
58723
58724         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58725         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58726
58727 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58728
58729         * configure.in: Add AC_SUBST for sysheaders.
58730         * configure: Regenerated.
58731         * config.make.in (sysheaders): New substituted variable.
58732
58733         * sysdeps/unix/mkfifo.c: Moved ...
58734         * sysdeps/posix/mkfifo.c: ... here.
58735         * sysdeps/unix/mkfifoat.c: Moved ...
58736         * sysdeps/posix/mkfifoat.c: ... here.
58737
58738         * sysdeps/unix/utime.c: Moved ...
58739         * sysdeps/posix/utime.c: ... here.
58740
58741         * sysdeps/unix/time.c: Moved ...
58742         * sysdeps/posix/time.c: ... here.
58743         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58744         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58745
58746         * sysdeps/unix/nice.c: Moved ...
58747         * sysdeps/posix/nice.c: ... here.
58748
58749         * sysdeps/unix/alarm.c: Moved ...
58750         * sysdeps/posix/alarm.c: ... here.
58751
58752         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58753
58754 2012-08-17  Jeff Law <law@redhat.com>
58755
58756         * intl/Makefile (codeset_mo): New variable.
58757         ($(codeset_mo)): New target.
58758         (tst-codeset.out): Depend on that.  Remove explicit rule.
58759         (tst-gettext3.out, tst-gettext5.out): Likewise.
58760         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58761         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58762         * intl/tst-codeset.sh: Remove.
58763         * intl/tst-gettext3.sh: Likewise.
58764         * intl/tst-gettext5.sh: Likewise.
58765
58766 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58767
58768         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58769         * sysdeps/unix/syscalls.list: ... here.
58770
58771         * sysdeps/posix/getaddrinfo.c
58772         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58773         (gaiconf_init, gaiconf_reload): Use them.
58774         [!_STATBUF_ST_NSEC]
58775         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58776         Define using time_t rather than struct timespec.
58777
58778         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58779         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58780         Macros removed.
58781         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58782         [!NO_THREADS].
58783         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58784         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58785         Likewise.
58786
58787         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58788         __libc_cleanup_push argument.
58789
58790         * bits/param.h: New file.
58791         * misc/sys/param.h: New file.
58792         * include/sys/param.h: New file.
58793         * misc/Makefile (headers): Add bits/param.h.
58794         * sysdeps/generic/sys/param.h: File removed.
58795         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58796         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58797         * sysdeps/mach/hurd/bits/param.h: New file.
58798         * sysdeps/mach/hurd/sys/param.h: File removed.
58799
58800         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58801         last change.
58802
58803         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58804         [_IO_MTSAFE_IO].
58805         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58806         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58807         New macros.
58808
58809         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58810         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58811         rather than -D_IO_MTSAFE_IO conditionally.
58812         * stdio-common/Makefile (CPPFLAGS): Likewise.
58813         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58814         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58815         Use $(libio-mtsafe).
58816         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58817         of -D_IO_MTSAFE_IO.
58818         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58819         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58820         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58821         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58822         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58823         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58824         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58825         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58826         (CFLAGS-fread_u_chk.c): Likewise.
58827         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58828         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58829         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58830         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58831         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58832         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58833         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58834         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58835         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58836
58837         * libio/Makefile: Test [$(libc-reentrant) = yes]
58838         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58839
58840         * Makeconfig
58841         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58842         * sysdeps/pthread/configure: File removed.
58843         * sysdeps/pthread/Makeconfig: New file.
58844         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58845         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58846
58847 2012-08-16  Gary Benson  <gbenson@redhat.com>
58848
58849         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58850         unmapping the first object in a namespace.
58851
58852 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58853
58854         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58855         (__internal_setnetgrent): ... this.  Add internal_function to
58856         definition.  Add libc_hidden_def.
58857         (setnetgrent): Update caller.
58858         (internal_endnetgrent): Renamed to ...
58859         (__internal_endnetgrent): ... this.  Add internal_function to
58860         definition.  Add libc_hidden_def.
58861         (endnetgrent): Update caller.
58862         (internal_getnetgrent_r): Renamed to ...
58863         (__internal_getnetgrent_r): ... this.  Add internal_function to
58864         definition.  Add libc_hidden_def.
58865         (__getnetgrent_r): Update caller.
58866         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58867
58868 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58869
58870         * stdlib/longlong.h: Update from GCC.
58871
58872 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58873
58874         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58875         on _QL, which is set by umul_ppmm but never used.
58876         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58877         variables, which are set by GMP macros but never used.
58878         * stdio-common/_itowa.c (_itowa): Likewise.
58879         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58880         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58881
58882 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58883
58884         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58885         struct La_sh_regs is not constant.
58886         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58887         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58888         and struct La_sparc64_regs are not constant.
58889
58890 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58891
58892         * sysdeps/unix/sysv/linux/kernel-features.h
58893         (__ASSUME_POSIX_TIMERS): Remove.
58894         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58895         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58896         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58897         Make code unconditional.
58898         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58899         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58900         Make code unconditional.
58901         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58902         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58903         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
58904         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58905         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
58906         Make code unconditional.
58907         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58908         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
58909         (__libc_missing_posix_timers): Remove.
58910
58911 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58912
58913         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
58914         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
58915
58916         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
58917
58918         * elf/dl-sym.c: Include <stdlib.h>.
58919
58920         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
58921         constants, which avoids warnings in 32-bit builds.
58922
58923         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
58924         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
58925
58926         * misc/lseek.c: File moved to ...
58927         * io/lseek.c: ... here.
58928
58929         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
58930
58931         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
58932         shifting LEN more than 31 bits at once.
58933
58934 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58935
58936         [BZ #14195]
58937         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
58938         segmentation fault for a case of two empty input strings.
58939         * string/test-strncasecmp.c (check1): Renamed to...
58940         (bz12205): ...this.
58941         (bz14195): Add new testcase for two empty input strings and N > 0.
58942         (test_main): Call new testcase, adapt for renamed function.
58943
58944 2012-08-15  Andreas Jaeger  <aj@suse.de>
58945
58946         [BZ #14090]
58947         * crypt/md5test2.c: New test, based on test supplied by Serge
58948         Belyshev <belyshev@depni.sinp.msu.ru>.
58949         * crypt/Makefile (xtests): Add md5test-giant..
58950         * crypt/Makefile ($(objpfx)md5test-giant): Add.
58951
58952 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58953
58954         [BZ #14090]
58955         * crypt/md5.c (md5_process_block): Don't assume the buffer
58956         length is less than 2**32.
58957         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
58958         length is less than 2**64.
58959
58960 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58961
58962         * string/str-two-way.h: Include <sys/param.h>.
58963         (MAX): Macro removed.
58964
58965         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
58966         Move #define and #undef of memmove to just before and after
58967         including <string.h>.
58968
58969         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
58970         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
58971         and after including <string.h>.  Move declarations of
58972         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58973         to before #include "string/memmove.c".
58974
58975         * include/dirent.h: Declare __getdirentries.
58976
58977         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
58978         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
58979
58980 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
58981
58982         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
58983         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
58984         * sysdeps/i386/configure: Regenerated.
58985         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
58986         STABS_CURRENT_FILE, and STABS_FUN.
58987         (END): Remove call to STABS_FUN_END.
58988         (STABS_CURRENT_FILE1): Delete.
58989         (STABS_CURRENT_FILE): Likewise.
58990         (STABS_FUN): Likewise.
58991         (STABS_FUN_END): Likewise.
58992         (STABS_FUN2): Likewise.
58993         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
58994         * sysdeps/x86_64/configure: Regenerated.
58995
58996 2012-08-14  Roland McGrath  <roland@hack.frob.com>
58997
58998         * elf/dl-open.c: Include <atomic.h>.
58999         * elf/dl-lookup.c: Likewise.
59000
59001 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
59002
59003         * sysdeps/unix/sysv/linux/kernel-features.h
59004         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
59005         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
59006         unconditionally.
59007         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
59008         unconditionally.
59009         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
59010         condition on __ASSUME_CLONE_THREAD_FLAGS.
59011
59012 2012-08-14  Andreas Jaeger  <aj@suse.de>
59013
59014         * sysdeps/i386/fpu/libm-test-ulps: Update.
59015
59016 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
59017
59018         * include/atomic.h (atomic_exchange_and_add): Split into ...
59019         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
59020         New atomic macros.
59021
59022 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
59023
59024         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
59025
59026 2012-08-13  Jeff Law <law@redhat.com>
59027
59028         * manual/stdio.texi (snprintf): Clarify handling of the trailing
59029         null byte in the output string.
59030
59031 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
59032
59033         * sysdeps/unix/sysv/linux/kernel-features.h
59034         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
59035         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
59036         (__ASSUME_ARG_MAX_STACK_BASED): Define.
59037         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
59038         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
59039         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
59040         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
59041
59042 2012-08-09  Jeff Law <law@redhat.com>
59043
59044         [BZ #13939]
59045         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
59046         When avoid_arena is set, don't retry in the that arena.  Pick the
59047         next one, whatever it might be.
59048         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
59049         (arena_lock): Pass in new parameter to arena_get2.
59050         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
59051         arena_get2.
59052         (__libc_malloc): Unify retrying after main arena failure with
59053         __libc_memalign version.
59054         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
59055
59056 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
59057
59058         [BZ #14166]
59059         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
59060         to __redirect_strstr.
59061         (__strstr_sse42): Use typeof __redirect_strstr.
59062         (__strstr_ia32): Likewise.
59063         (__libc_strstr): New prototype.
59064         (strstr): Renamed to ...
59065         (__libc_strstr): This.
59066         (strstr): New strong alias of __libc_strstr.
59067         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
59068         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
59069         __redirect_time.
59070         Include <time.h>.
59071         (__libc_time): New prototype.
59072         (time_ifunc): Replace time with __libc_time.
59073         (time): New strong alias and hidden definition of __libc_time.
59074         (__GI_time): Remove strong alias.
59075         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
59076         Include <stddef.h>.
59077         (memmove): Redefined to __redirect_memmove.
59078         (__memmove_sse2): Use typeof __redirect_memmove.
59079         (__memmove_ssse3): Likewise.
59080         (__memmove_ssse3_back): Likewise.
59081         (__libc_memmove): New prototype.
59082         (memmove): Renamed to ...
59083         (__libc_memmove): This.
59084         (memmove): New strong alias of __libc_memmove.
59085
59086 2012-08-08  Mark Salter  <msalter@redhat.com>
59087
59088         * elf/elf.h
59089         (R_MN10300_TLS_GD): Define.
59090         (R_MN10300_TLS_LD): Likewise.
59091         (R_MN10300_TLS_LDO): Likewise.
59092         (R_MN10300_TLS_GOTIE): Likewise.
59093         (R_MN10300_TLS_IE): Likewise.
59094         (R_MN10300_TLS_LE): Likewise.
59095         (R_MN10300_TLS_DTPMOD): Likewise.
59096         (R_MN10300_TLS_DTPOFF): Likewise.
59097         (R_MN10300_TLS_TPOFF): Likewise.
59098         (R_MN10300_SYM_DIFF): Likewise.
59099         (R_MN10300_ALIGN): Likewise.
59100         (R_MN10300_NUM): Update.
59101
59102 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
59103
59104         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
59105         Remove.
59106
59107 2012-08-08  Roland McGrath  <roland@hack.frob.com>
59108
59109         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
59110
59111         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
59112         sysdeps/unix -> sysdeps/posix move.
59113         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
59114
59115 2012-08-07      Allan McRae     <allan@archlinux.org>
59116
59117         [BZ #14303]
59118         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
59119         (SUNOS_CPP): Likewise.
59120         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
59121         not found.
59122         (open_input): Call CPP using execvp.
59123
59124 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59125
59126         * sysdeps/unix/sysv/linux/kernel-features.h
59127         (__ASSUME_PROT_GROWSUPDOWN): Remove.
59128         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59129         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59130         (__ASSUME_WAITID_SYSCALL): Likewise.
59131         * sysdeps/unix/sysv/linux/dl-execstack.c
59132         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
59133         code unconditional.
59134         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
59135         conditional code.
59136         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
59137         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
59138         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
59139         code.
59140         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
59141         unconditional.
59142         [__ASSUME_WAITID_SYSCALL]: Likewise.
59143         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
59144
59145 2012-08-07  Roland McGrath  <roland@hack.frob.com>
59146
59147         * sysdeps/unix/closedir.c: Renamed to ...
59148         * sysdeps/posix/closedir.c: ... here.
59149         * sysdeps/unix/dirfd.c: Renamed to ...
59150         * sysdeps/posix/dirfd.c: ... here.
59151         * sysdeps/unix/dirstream.h: Renamed to ...
59152         * sysdeps/posix/dirstream.h: ... here.
59153         * sysdeps/unix/fdopendir.c: Renamed to ...
59154         * sysdeps/posix/fdopendir.c: ... here.
59155         * sysdeps/unix/opendir.c: Renamed to ...
59156         * sysdeps/posix/opendir.c: ... here.
59157         * sysdeps/unix/readdir.c: Renamed to ...
59158         * sysdeps/posix/readdir.c: ... here.
59159         * sysdeps/unix/readdir_r.c: Renamed to ...
59160         * sysdeps/posix/readdir_r.c: ... here.
59161         * sysdeps/unix/rewinddir.c: Renamed to ...
59162         * sysdeps/posix/rewinddir.c: ... here.
59163         * sysdeps/unix/seekdir.c: Renamed to ...
59164         * sysdeps/posix/seekdir.c: ... here.
59165         * sysdeps/unix/telldir.c: Renamed to ...
59166         * sysdeps/posix/telldir.c: ... here.
59167         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
59168         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
59169         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
59170         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
59171
59172         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
59173         * bits/fcntl.h: ... here.
59174
59175         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
59176         not 0.
59177         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
59178         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
59179         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
59180         (struct flock): Move l_start, l_len to the beginning.
59181         Use __pid_t for l_pid.
59182         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
59183         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
59184         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
59185         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
59186         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
59187         [__USE_LARGEFILE64] (struct flock64): New type.
59188         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
59189
59190         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
59191         * bits/dirent.h: ... here.
59192
59193         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
59194         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
59195
59196 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59197
59198         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59199         Change from 2.6.0 to 2.6.16.
59200         * sysdeps/unix/sysv/linux/configure: Regenerated.
59201         * sysdeps/unix/sysv/linux/kernel-features.h
59202         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
59203         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
59204         version.
59205         (__ASSUME_UTIMES): Likewise.
59206         (__ASSUME_CLONE_STOPPED): Remove.
59207         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
59208         architectures, not kernel version.
59209         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
59210         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59211         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59212         (__ASSUME_WAITID_SYSCALL): Likewise.
59213         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
59214         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
59215         * README: State 2.6.16 as minimum Linux kernel version.  Do not
59216         refer to older versions.
59217
59218 2012-08-06  Roland McGrath  <roland@hack.frob.com>
59219
59220         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
59221         Define alphasort64 as an alias.
59222         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
59223         Define versionsort64 as an alias.
59224         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
59225         Define scandir64 as an alias.
59226         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
59227         Define scandirat64 as an alias.
59228         * dirent/alphasort64.c (alphasort64):
59229         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
59230         * dirent/versionsort64.c: Likewise.
59231         * dirent/scandir64.c: Likewise.
59232         * dirent/scandirat64.c: Likewise.
59233         * sysdeps/wordsize-64/alphasort.c: File removed.
59234         * sysdeps/wordsize-64/alphasort64.c: File removed.
59235         * sysdeps/wordsize-64/scandir.c: File removed.
59236         * sysdeps/wordsize-64/scandir64.c: File removed.
59237         * sysdeps/wordsize-64/scandirat.c: File removed.
59238         * sysdeps/wordsize-64/scandirat64.c: File removed.
59239         * sysdeps/wordsize-64/versionsort.c: File removed.
59240         * sysdeps/wordsize-64/versionsort64.c: File removed.
59241         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
59242         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
59243         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
59244         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
59245         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
59246         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
59247         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
59248         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
59249
59250         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
59251         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59252         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
59253         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59254         [defined __arch64__ || defined __sparcv9]
59255         (__INO_T_MATCHES_INO64_T): New macro.
59256         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59257         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
59258         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
59259         * sysdeps/unix/sysv/linux/bits/dirent.h
59260         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
59261         (_DIRENT_MATCHES_DIRENT64): New macro.
59262
59263         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
59264         Define lockf64 as an alias.
59265         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
59266         Define fseeko64 as an alias.
59267         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
59268         Define ftello64 as an alias.
59269         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
59270         Define _IO_fgetpos64 and fgetpos64 as aliases.
59271         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
59272         Define _IO_fsetpos64 and fsetpos64 as aliases.
59273         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
59274         Conditionalize body on this.
59275         * libio/fseeko64.c: Likewise.
59276         * libio/ftello64.c: Likewise.
59277         * libio/iofgetpos64.c: Likewise.
59278         * libio/iofsetpos64.c: Likewise.
59279         * sysdeps/wordsize-64/lockf.c: File removed.
59280         * sysdeps/wordsize-64/lockf64.c: File removed.
59281         * sysdeps/wordsize-64/fseeko.c: File removed.
59282         * sysdeps/wordsize-64/fseeko64.c: File removed.
59283         * sysdeps/wordsize-64/ftello.c: File removed.
59284         * sysdeps/wordsize-64/ftello64.c: File removed.
59285         * sysdeps/wordsize-64/iofgetpos.c: File removed.
59286         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
59287         * sysdeps/wordsize-64/iofsetpos.c: File removed.
59288         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
59289         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
59290         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
59291         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
59292         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
59293         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
59294         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
59295         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
59296         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
59297         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
59298         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
59299
59300         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59301         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59302         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
59303         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59304         [defined __arch64__ || defined __sparcv9]
59305         (__OFF_T_MATCHES_OFF64_T): New macro.
59306         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59307         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59308         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
59309         (__OFF_T_MATCHES_OFF64_T): New macro.
59310
59311 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59312
59313         * stdlib/secure-getenv.c (__secure_getenv): Replace
59314         GLIBC_2_16 with GLIBC_2_17.
59315
59316 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59317
59318         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
59319         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
59320
59321 2012-08-03  David S. Miller  <davem@davemloft.net>
59322
59323         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59324
59325 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59326
59327         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
59328         Remove.
59329         (__ASSUME_CORRECT_SI_PID): Likewise.
59330         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
59331         (__ASSUME_TMPFS_NAME): Likewise.
59332         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
59333         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
59334         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
59335         (HAVE_AUX_SECURE): Make definition unconditional.
59336         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
59337         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
59338
59339 2012-08-03  Roland McGrath  <roland@hack.frob.com>
59340
59341         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
59342         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
59343         * sysdeps/mach/hurd/eloop-threshold.h: New file.
59344         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
59345         __eloop_threshold instead of SYMLOOP_MAX.
59346
59347         * sysdeps/generic/eloop-threshold.h: New file.
59348         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
59349         of MAXSYMLINKS.
59350         * elf/chroot_canon.c (chroot_canon): Likewise.
59351
59352 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59353
59354         [BZ #13717]
59355         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59356         Change to 2.6.0 everywhere.
59357         * sysdeps/unix/sysv/linux/configure: Regenerated.
59358         * sysdeps/unix/sysv/linux/kernel-features.h
59359         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
59360         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
59361         kernel versions.
59362         (__ASSUME_POSIX_TIMERS): Define unconditionally.
59363         (__ASSUME_FUTEX_REQUEUE): Remove.
59364         (__ASSUME_STATFS64): Define unconditionally.
59365         (__ASSUME_AT_SECURE): Likewise.
59366         (__ASSUME_CORRECT_SI_PID): Likewise.
59367         (__ASSUME_TGKILL): Define without depending on kernel version for
59368         i386.
59369         (__ASSUME_UTIMES): Likewise.
59370         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
59371         kernel version.
59372         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
59373         (__ASSUME_TMPFS_NAME): Likewise.
59374         * README: Update reference to Linux kernel versions.
59375
59376 2012-08-02  Marek Polacek  <polacek@redhat.com>
59377
59378         [BZ# 14150]
59379         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
59380         libc_cv_asm_type_prefix with %.
59381         * configure: Regenerated.
59382         * include/libc-symbols.h: Remove comment about
59383         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59384         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
59385         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
59386         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
59387         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
59388         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59389         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
59390         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
59391         * elf/tst-unique2mod1.c: Likewise.
59392         * elf/tst-unique1mod2.c: Likewise.
59393         * elf/tst-unique1mod1.c: Likewise.
59394         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
59395         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
59396         Replace ASM_TYPE_DIRECTIVE with .type.
59397         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59398         * sysdeps/i386/sysdep.h: Likewise.
59399         * sysdeps/x86_64/sysdep.h: Likewise.
59400         * sysdeps/sh/sysdep.h: Likewise.
59401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
59402         Do not define ASM_TYPE_DIRECTIVE.
59403         * sysdeps/powerpc/sysdep.h: Likewise.
59404         * sysdeps/powerpc/powerpc32/sysdep.h:
59405         Replace ASM_TYPE_DIRECTIVE with .type.
59406         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59407         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59408         * sysdeps/i386/fpu/e_powf.S: Likewise.
59409         * sysdeps/i386/fpu/e_expl.S: Likewise.
59410         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
59411         * sysdeps/i386/fpu/e_acosh.S: Likewise.
59412         * sysdeps/i386/fpu/e_pow.S: Likewise.
59413         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
59414         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
59415         * sysdeps/i386/fpu/s_expm1.S: Likewise.
59416         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
59417         * sysdeps/i386/fpu/e_log2.S: Likewise.
59418         * sysdeps/i386/fpu/e_log2l.S: Likewise.
59419         * sysdeps/i386/fpu/e_scalb.S: Likewise.
59420         * sysdeps/i386/fpu/e_powl.S: Likewise.
59421         * sysdeps/i386/fpu/e_log10f.S: Likewise.
59422         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
59423         * sysdeps/i386/fpu/e_logl.S: Likewise.
59424         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
59425         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
59426         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
59427         * sysdeps/i386/fpu/e_log2f.S: Likewise.
59428         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
59429         * sysdeps/i386/fpu/e_log.S: Likewise.
59430         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
59431         * sysdeps/i386/fpu/e_logf.S: Likewise.
59432         * sysdeps/i386/fpu/e_log10l.S: Likewise.
59433         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59434         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
59435         * sysdeps/i386/fpu/e_log10.S: Likewise.
59436         * sysdeps/i386/fpu/s_frexp.S: Likewise.
59437         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
59438         * sysdeps/i386/fpu/s_asinh.S: Likewise.
59439         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
59440         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59441         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59442         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59443         * sysdeps/i386/i686/strtok.S: Likewise.
59444         * sysdeps/i386/i386-mcount.S: Likewise.
59445         * sysdeps/i386/strtok.S: Likewise.
59446         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59447         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59448         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59449         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59450         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59451         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59452         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59453         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59454         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59455         * sysdeps/x86_64/_mcount.S: Likewise.
59456         * sysdeps/x86_64/strtok.S: Likewise.
59457         * sysdeps/sh/_mcount.S: Likewise.
59458
59459 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59460
59461         * libio/iofopen.c: Include <fcntl.h>.
59462         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59463         (_IO_fopen64, fopen64): Define as aliases.
59464         * libio/iofopen64.c: Include <fcntl.h>.
59465         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59466         Conditionalize body on this.
59467         * sysdeps/wordsize-64/iofopen.c: File removed.
59468         * sysdeps/wordsize-64/iofopen64.c: File removed.
59469
59470 2012-08-01  Marek Polacek  <polacek@redhat.com>
59471
59472         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59473         Use dlfcn directly instead of a variable.
59474         (binfmt-subdir): Do not define.
59475         (dlfcn): Likewise.
59476
59477 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59478
59479         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59480         Remove all definitions.
59481         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59482         <kernel-features.h>.
59483         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59484         (miss_F_GETOWN_EX): Remove all definitions.
59485         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59486         macro definition.
59487         [!__ASSUME_FCNTL64]: Remove conditional code.
59488         [__ASSUME_FCNTL64]: Make code unconditional.
59489         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59490         <kernel-features.h>.
59491         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59492         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59493         (lockf64) [__NR_fcntl64]: Make code unconditional.
59494         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59495
59496         * sysdeps/unix/sysv/linux/kernel-features.h
59497         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59498         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59499         Make code unconditional.
59500         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59501         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59503         [__NR_vfork]: Make code unconditional.
59504         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59505         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59507         [__NR_vfork]: Make code unconditional.
59508         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59509         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59510
59511 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59512
59513         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59514         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59515
59516         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59517         Define mkstemp64 as an alias.
59518         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59519         Define mkstemps64 as an alias.
59520         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59521         Define mkostemp64 as an alias.
59522         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59523         Define mkostemps64 as an alias.
59524         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59525         Conditionalize body on this.
59526         * misc/mkostemp64.c: Likewise.
59527         * misc/mkostemps64.c: Likewise.
59528         * misc/mkstemps64.c: Likewise.
59529         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59530         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59531         * sysdeps/wordsize-64/mkostemp.c: File removed.
59532         * sysdeps/wordsize-64/mkstemp.c: File removed.
59533         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59534         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59535         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59536         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59537
59538         [BZ #14138]
59539         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59540         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59541         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59542         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59543
59544         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59545         compat_symbol macros from <shlib-compat.h> rather than the underlying
59546         default_symbol_version and symbol_version macros, so that DEFAULT
59547         lines in shlib-versions are respected.
59548         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59549
59550 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59551
59552         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59553         Declare with warn_unused_result.
59554         (setgid, setregid, setegid, setresgid): Likewise.
59555         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59556         Likewise.
59557         * WUR-REPORT: Remove set*id functions.
59558
59559 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59560
59561         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59562
59563 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59564
59565         [BZ #10191]
59566         * include/sys/socket.h (__libc_accept, __libc_accept4):
59567         Add attribute_hidden.
59568         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59569
59570         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59571         use of PTR_MANGLE.
59572         * inet/getnetgrent_r.c (setup): Likewise.
59573
59574         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59575
59576 2012-07-31  David S. Miller  <davem@davemloft.net>
59577
59578         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59579
59580 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59581
59582         [BZ #13629]
59583         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59584         value between 1.0 and 2.0 and smaller part has absolute value less
59585         than 1.0.
59586         * math/s_clog10.c (__clog10): Likewise.
59587         * math/s_clog10f.c (__clog10f): Likewise.
59588         * math/s_clog10l.c (__clog10l): Likewise.
59589         * math/s_clogf.c (__clogf): Likewise.
59590         * math/s_clogl.c (__clogl): Likewise.
59591         * math/libm-test.inc (clog_test): Add more tests.
59592         (clog10_test): Likewise.
59593         * sysdeps/i386/fpu/libm-test-ulps: Update.
59594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59595
59596 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59597
59598         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59599         Exit with zero in case no suitable GID is found, and write a
59600         message to standard error.
59601
59602 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59603
59604         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59605         rather than to 1.
59606         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59607         (MAXPATHLEN): Removed.
59608         (NOGROUP, NODEV): New macros.
59609         (setbit, clrbit, isset, isclr): New macros.
59610         (howmany, roundup, powerof2): New macros.
59611         (DEV_BSIZE): New macro.
59612
59613         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59614         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59615
59616         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59617         definition on [!__NO_LONG_DOUBLE_MATH].
59618
59619         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59620         PTR_MANGLE and PTR_DEMANGLE.
59621
59622         * socket/accept4.c (accept4): Rename to __libc_accept4.
59623         Define accept4 as a weak alias.
59624
59625         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59626         on [_DIRENT_HAVE_D_TYPE].
59627         * io/ftw.c (ftw_dir): Likewise.
59628
59629         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59630
59631         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59632
59633         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59634         Use the BSD numbers rather than the arbitrary ones we had.
59635         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59636         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59637         (SIGXCPU, SIGXFSZ): New macros.
59638         (_NSIG): Now 32.
59639
59640         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59641         initializer on [_LIBC_REENTRANT].
59642
59643         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59644         definitions inside [_POSIX_MAPPED_FILES].
59645
59646         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59647
59648         * dirent/opendir.c: Include <fcntl.h>.
59649
59650         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59651         (__libc_getspecific): Likewise.
59652         (__libc_key_create): Likewise.
59653
59654         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59655         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59656         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59657         (tmpfile64): Define as alias.
59658         * sysdeps/wordsize-64/tmpfile.c: File removed.
59659         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59660         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59661         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59662
59663         * stdio-common/vfscanf.c: Include <stdbool.h>.
59664         * nss/makedb.c: Likewise.
59665         * stdio-common/_i18n_number.h: Likewise.
59666         * argp/argp-help.c: Likewise.
59667         * posix/wordexp.c: Likewise.
59668         * sysdeps/posix/spawni.c: Likewise.
59669         * nss/nss_files/files-initgroups.c: Likewise.
59670         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59671         * nss/nss_files/files-initgroups.c: Likewise.
59672         * nss/nss_db/db-netgrp.c: Likewise.
59673         * nss/nss_db/db-initgroups.c: Likewise.
59674         * io/fchmodat.c: Include <sys/stat.h>.
59675
59676         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59677         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59678
59679         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59680         [HAVE_MMAP].
59681
59682         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59683         Add multiple inclusion protection.
59684
59685 2012-07-27  David S. Miller  <davem@davemloft.net>
59686
59687         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59688
59689 2012-07-27  Gary Benson  <gbenson@redhat.com>
59690
59691         [BZ #14298]
59692         * elf/rtld.c: Include <stap-probe.h>.
59693         (dl_main): Added static probes "init_start" and "init_complete".
59694         * elf/dl-load.c: Include <stap-probe.h>.
59695         (lose): Take new parameter "nsid".
59696         Added static probe "map_failed".
59697         (_dl_map_object_from_fd): Pass namespace id to lose.
59698         Added static probe "map_start".
59699         (open_verify): Pass namespace id to lose.
59700         * elf/dl-open.c: Include <stap-probe.h>.
59701         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59702         and "reloc_complete".
59703         * elf/dl-close.c: Include <stap-probe.h>.
59704         (_dl_close_worker): Added static probes "unmap_start" and
59705         "unmap_complete".
59706         * elf/rtld-debugger-interface.txt: New file documenting the above.
59707
59708 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59709
59710         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59711         rather than a string variable.
59712         * sunrpc/rpc_main.c (h_output): Likewise.
59713         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59714
59715 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59716
59717         * inet/check_native.c: New file.
59718
59719 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59720
59721         [BZ #13629]
59722         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59723         if larger part has absolute value 1.0.
59724         * math/s_clog10.c (__clog10): Likewise.
59725         * math/s_clog10f.c (__clog10f): Likewise.
59726         * math/s_clog10l.c (__clog10l): Likewise.
59727         * math/s_clogf.c (__clogf): Likewise.
59728         * math/s_clogl.c (__clogl): Likewise.
59729         * math/libm-test.inc (clog_test): Add more tests.
59730         (clog10_test): Likewise.
59731         * sysdeps/i386/fpu/libm-test-ulps: Update.
59732         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59733
59734         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59735         (pltexit): Likewise.
59736         (La_regs): Likewise.
59737         (La_retval): Likewise.
59738         (int_retval): Likewise.
59739         Update #error for removed macros to refer only to definitions in
59740         tst-audit.h.
59741         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59742         macro.
59743         (pltexit): Likewise.
59744         (La_regs): Likewise.
59745         (La_retval): Likewise.
59746         (int_retval): Likewise.
59747         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59748         macro.
59749         (pltexit): Likewise.
59750         (La_regs): Likewise.
59751         (La_retval): Likewise.
59752         (int_retval): Likewise.
59753         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59754         macro.
59755         (pltexit): Likewise.
59756         (La_regs): Likewise.
59757         (La_retval): Likewise.
59758         (int_retval): Likewise.
59759         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59760         macro.
59761         (pltexit): Likewise.
59762         (La_regs): Likewise.
59763         (La_retval): Likewise.
59764         (int_retval): Likewise.
59765         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59766         macro.
59767         (pltexit): Likewise.
59768         (La_regs): Likewise.
59769         (La_retval): Likewise.
59770         (int_retval): Likewise.
59771         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59772         macro.
59773         (pltexit): Likewise.
59774         (La_regs): Likewise.
59775         (La_retval): Likewise.
59776         (int_retval): Likewise.
59777         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59778         macro definitions in tst-audit.h.
59779         * sysdeps/i386/tst-audit.h: New file.
59780         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59781         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59782         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59783         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59784         * sysdeps/sh/tst-audit.h: Likewise.
59785         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59786         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59787         * sysdeps/x86_64/tst-audit.h: Likewise.
59788
59789 2012-07-26  Andreas Jaeger  <aj@suse.de>
59790
59791         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59792         ptrace.
59793
59794         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59795         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59796         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59797         PTRACE_O_MASK.
59798         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59799         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59800         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59801
59802         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59803         value.
59804
59805         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59806         _sigsys.
59807         (si_call_addr, si_syscall, si_arch): Define new macro.
59808         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59809         _sigsys.
59810         (si_call_addr, si_syscall, si_arch): Define new marcro.
59811         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59812         _sigsys.
59813         (si_call_addr, si_syscall, si_arch): Define new macro.
59814         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59815         _sigsys.
59816         (si_call_addr, si_syscall, si_arch): Define new macro.
59817
59818 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59819
59820         [BZ #13717]
59821         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59822         Change to 2.4.21 where previously 2.4.1.
59823         * sysdeps/unix/sysv/linux/configure: Regenerated.
59824         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59825         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59826         Linux kernel version.
59827         (__ASSUME_STD_AUXV): Remove.
59828         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59829         kernel version.
59830         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59831         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59832         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59833         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59834         (__ASSUME_NETLINK_SUPPORT): Likewise.
59835         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59836         (__no_netlink_support): Remove conditional definition.
59837         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59838         Remove.
59839         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59840         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59841         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59842         (if_nameindex_ioctl): Remove.
59843         (if_nameindex_netlink): Do not handle __no_netlink_support.
59844         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59845         code.
59846         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59847         Remove conditional code.
59848         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59849         code.
59850         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59851         unconditional.
59852         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59853         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59854         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59855         Remove.
59856         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59857         [!__ASSUME_STD_AUXV]: Remove conditional code.
59858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59859         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59860         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59862         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59863         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59864         code.
59865         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59867         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59868         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59869         conditional code.
59870         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59872         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59873         code.
59874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59875         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59876         conditional code.
59877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59878         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59879         code unconditional.
59880         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59881         conditional code.
59882         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59883         unconditional.
59884         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59885         conditional code.
59886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59887         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59888         unconditional.
59889         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59890         conditional code.
59891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59892         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59893         code unconditional.
59894         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59895         conditional code.
59896         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59897         unconditional.
59898         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59899         conditional code.
59900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59901         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59902         code unconditional.
59903         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59904         conditional code.
59905         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59906         unconditional.
59907         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59908         conditional code.
59909
59910 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
59911
59912         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
59913         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
59914         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
59915         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
59916         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
59917         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
59918         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
59919         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
59920         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
59921         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
59922         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
59923         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
59924         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
59925         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
59926         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
59927         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
59928         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
59929         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
59930         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
59931         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
59932         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
59933         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
59934         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
59935
59936 2012-07-25  Florian Weimer  <fweimer@redhat.com>
59937
59938         * Versions.def: Add GLIBC_2.17.
59939         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
59940         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
59941         Introduce __libc_secure_getenv.
59942         * stdlib/Versions (2.17): Add secure_getenv
59943         (GLIBC_PRIVATE): Add __libc_secure_getenv.
59944         * stdlib/secure-getenv.c: Rename __secure_getenv to
59945         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
59946         symbol __secure_getenv for GLIBC_2.0.
59947         * stdlib/tst-secure-getenv.c: New.
59948         * stdlib/Makefile (tests): Add testcase.
59949         * manual/startup.texi (Environment Access): Document
59950         secure_getenv.
59951         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
59952         __libc_secure_getenv.
59953         * inet/ruserpass.c (ruserpass): Likewise.
59954         * malloc/mtrace.c (mtrace): Likewise.
59955         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
59956         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
59957         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
59958         * sysdeps/posix/tempname.c: Likewise.  Evaluate
59959         HAVE_SECURE_GETENV.
59960         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
59961         __secure_getenv to __libc_secure_getenv.
59962         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
59963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59964         Likewise.
59965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59966         Likewise.
59967         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59968         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59969         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59970         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59971         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59972         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59973         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59974
59975 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59976
59977         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
59978         (struct La_i86_retval): Likewise.
59979         (struct La_x86_64_regs): Likewise.
59980         (struct La_x86_64_retval): Likewise.
59981         (struct La_x32_regs): Likewise.
59982         (struct La_x32_retval): Likewise.
59983         (struct La_ppc32_regs): Likewise.
59984         (struct La_ppc32_retval): Likewise.
59985         (struct La_ppc64_regs): Likewise.
59986         (struct La_ppc64_retval): Likewise.
59987         (struct La_sh_regs): Likewise.
59988         (struct La_sh_retval): Likewise.
59989         (struct La_s390_32_regs): Likewise.
59990         (struct La_s390_32_retval): Likewise.
59991         (struct La_s390_64_regs): Likewise.
59992         (struct La_s390_64_retval): Likewise.
59993         (struct La_sparc32_regs): Likewise.
59994         (struct La_sparc32_retval): Likewise.
59995         (struct La_sparc64_regs): Likewise.
59996         (struct La_sparc64_retval): Likewise.
59997         (struct audit_ifaces): Remove architecture-specific pltenter and
59998         pltexit members.
59999         * sysdeps/i386/ldsodefs.h: New file.
60000         * sysdeps/powerpc/ldsodefs.h: Likewise.
60001         * sysdeps/s390/ldsodefs.h: Likewise.
60002         * sysdeps/sh/ldsodefs.h: Likewise.
60003         * sysdeps/sparc/ldsodefs.h: Likewise.
60004         * sysdeps/x86_64/ldsodefs.h: Likewise.
60005
60006 2012-07-25  Marek Polacek  <polacek@redhat.com>
60007
60008         [BZ #6808]
60009         * math/libm-test.inc (yn_test): Add another test.
60010         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
60011         to ERANGE when the result is +-Inf.
60012         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
60013         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
60014         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
60015         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
60016
60017 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
60018
60019         * conform/data/time.h-data (NULL): Use macro-constant.  Require
60020         equal to 0.
60021         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
60022         clock_t.
60023         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
60024
60025 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
60026
60027         * configure.in <sysdeps resolving>: Correct printing
60028         Implies_before.
60029         * configure: Regenerate.
60030
60031 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
60032
60033         * math/w_ilogb.c: Include <limits.h>.
60034         * math/w_ilogbl.c: Likewise.
60035
60036 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60037
60038         * manual/lang.texi (__va_copy): Document primarily as ISO C99
60039         va_copy.  Document allowing for unavailable va_copy only as
60040         pre-C99 compatibility.
60041         * manual/string.texi (Copying and Concatenation): Use va_copy
60042         instead of __va_copy in concat example.
60043
60044 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
60045
60046         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
60047         (__sendto): Use create_address_port.  Initialize APORT and deallocate
60048         it if not null.
60049
60050         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
60051         with O_NOLINK passed to __file_name_lookup.
60052
60053         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
60054         with O_NOLINK passed to __file_name_lookup.
60055
60056         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
60057         negative N or less than NGIDS.
60058
60059         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
60060         type to string_t.  Set ERANGE as errno and return it if NAME is not big
60061         enough.  Use memcpy instead of strncpy.
60062
60063 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60064
60065         * elf/Makefile (check-data): Remove.
60066         (localplt.data): New vpath directive.
60067         ($(objpfx)check-localplt.out): Use localplt.data from vpath
60068         instead of $(check-data).
60069         * scripts/data/localplt-generic.data: Move to ...
60070         * sysdeps/generic/localplt.data: ... here.
60071         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
60072         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
60073         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
60074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
60075         ... here.
60076         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
60077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
60078         ... here.
60079         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
60080         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
60081         ... here.
60082         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
60083         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
60084         ... here.
60085         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
60086         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
60087         ... here.
60088         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
60089         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
60090         ... here.
60091
60092 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60093
60094         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
60095         PPC32 and PPC64 files.
60096         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
60097         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
60098
60099 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60100
60101         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
60102         __makecontext_ret to ...
60103         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
60104         ... here and call exit if uc_link is NULL.  New file.
60105         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
60106         __makecontext_ret.S.
60107         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
60108         __makecontext_ret to ...
60109         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
60110         ... here and call exit if uc_link is NULL.  New file.
60111         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
60112         __makecontext_ret.S.
60113
60114 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60115
60116         * elf/elf.h (R_390_IRELATIVE): New definition.
60117         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
60118         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
60119         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
60120         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60121         (elf_machine_lazy_rel): Likewise.
60122         * sysdeps/s390/dl-irel.h: New file.
60123         * sysdeps/s390/s390-64/memcpy.S: New asm code.
60124         * sysdeps/s390/s390-64/memset.S: New asm code.
60125         * sysdeps/s390/s390-64/memcmp.S: New asm code.
60126         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
60127         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
60128         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
60129         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
60130         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
60131         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
60132         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
60133         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
60134         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
60135         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
60136         * sysdeps/s390/s390-32/memcpy.S: New asm code.
60137         * sysdeps/s390/s390-32/memset.S: New asm code.
60138         * sysdeps/s390/s390-32/memcmp.S: New asm code.
60139
60140 2012-07-17  Marek Polacek  <polacek@redhat.com>
60141
60142         [BZ #14349]
60143         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
60144         * sysdeps/s390/s390-64/configure.in: Likewise.
60145         * sysdeps/sparc/configure.in: Likewise.
60146         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
60147         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
60148         * sysdeps/i386/configure.in: Likewise.
60149         * sysdeps/x86_64/configure.in: Likewise.
60150         * sysdeps/sh/configure.in: Likewise.
60151         * sysdeps/s390/s390-32/configure: Regenerated.
60152         * sysdeps/s390/s390-64/configure: Likewise.
60153         * sysdeps/x86_64/configure: Likewise.
60154         * sysdeps/sh/configure: Likewise.
60155         * sysdeps/powerpc/powerpc64/configure: Likewise.
60156         * sysdeps/powerpc/powerpc32/configure: Likewise.
60157         * sysdeps/sparc/configure: Likwise.
60158         * sysdeps/i386/configure: Likewise.
60159
60160         * elf/dl-open.c: Comment fixes.
60161
60162 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
60163
60164         * Makefile [CXX] (check-data): Remove.
60165         [CXX] (c++-types.data): New vpath directive.
60166         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
60167         vpath.  Do not allow for C++ type data being missing.
60168         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
60169         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
60170         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
60171         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
60172         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
60173         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
60174         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
60175         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
60176         ... here.
60177         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
60178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
60179         ... here.
60180         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
60181         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
60182         ... here.
60183         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
60184         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
60185         ... here.
60186         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
60187         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
60188         ... here.
60189         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
60190         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
60191         ... here.
60192         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
60193         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
60194         ... here.
60195         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
60196         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
60197
60198         * elf/tls-macros.h (TLS_LE): Move architecture-specific
60199         definitions to architecture-specific files.
60200         (TLS_IE): Likewise.
60201         (TLS_LD): Likewise.
60202         (TLS_GD): Likewise.
60203         * sysdeps/i386/tls-macros.h: New file.
60204         * sysdeps/powerpc/tls-macros.h: Likewise.
60205         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
60206         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
60207         * sysdeps/sh/tls-macros.h: Likewise.
60208         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
60209         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
60210         * sysdeps/x86_64/tls-macros.h: Likewise.
60211
60212 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60213
60214         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
60215         zero value for regular exit case.
60216
60217         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
60218         (__start_context): Preserve zero value for regular exit case.
60219
60220 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60221             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60222
60223         * manual/setjmp.texi (setcontext): Clarify normal process
60224         termination when uc_link is the null pointer.
60225         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
60226         exit call.
60227
60228 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
60229
60230         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
60231         preprocessor.  Test for each exception mask separately.
60232
60233 2012-07-16  Andreas Jaeger  <aj@suse.de>
60234
60235         * po/ru.po: Update from translation team.
60236
60237 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
60238
60239         * conform/data/string.h-data (NULL): Use macro-constant.  Require
60240         equal to 0.
60241         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
60242         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
60243         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
60244         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
60245         [ISO || ISO99 || ISO11] (*_t): Do not allow.
60246
60247 2012-07-13  Andreas Jaeger  <aj@suse.de>
60248
60249         * po/fr.po: Update from translation team.
60250
60251 2012-07-12  Marek Polacek  <polacek@redhat.com>
60252
60253         [BZ #14173]
60254         * math/libm-test.inc (yn_test): Add test for BZ #14173.
60255         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
60256         loop condition.
60257
60258 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
60259
60260         [BZ #13717]
60261         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60262         Change to 2.4.1 where previously 2.4.0.
60263         * sysdeps/unix/sysv/linux/configure: Regenerated.
60264         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
60265         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
60266         version.
60267         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
60268         (__ASSUME_AT_CLKTCK): Remove.
60269         (__ASSUME_AT_PAGESIZE): Likewise.
60270         (__ASSUME_AT_XID): Likewise.
60271         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
60272         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
60273         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
60274         unconditionally.
60275         (HAVE_AUX_PAGESIZE): Likewise.
60276         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
60277         [__ASSUME_AT_CLKTCK]: Make code unconditional.
60278         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
60279
60280 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
60281
60282         [BZ #14307]
60283         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
60284         the temporary buffer used to invoke __gethostbyname2_r,
60285         __gethostbyaddr_r and gethostbyname4_r to make room for struct
60286         host_data / struct gaih_addrtuple.
60287         * resolv/nss_dns/dns-host.c (global scope): Move definition of
60288         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
60289         header file nss/nsswitch.h.
60290         * nss/nsswitch.h (global scope): Add definition of implementation
60291         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
60292         resolv/nss_dns/dns-host.c).
60293
60294 2012-07-11  Andreas Jaeger  <aj@suse.de>
60295
60296         * po/fr.po: Update from translation team.
60297
60298         * po/sv.po: Update from translation team
60299         * po/fr.po: Another update from translation team.
60300
60301 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60302
60303         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
60304         for subnormals or multiply small sinh result by itself.
60305         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
60306         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60307
60308 2012-07-11  David S. Miller  <davem@davemloft.net>
60309
60310         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60311
60312 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
60313
60314         [BZ #14347]
60315         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
60316         (INTERNAL_MARK): Shift it here.
60317
60318 2012-07-10  Marek Polacek  <polacek@redhat.com>
60319
60320         [BZ #14151]
60321         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
60322         libc_cv_asm_global_directive with .globl.
60323         * configure: Regenerated.
60324         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
60325         with .globl.
60326         * sysdeps/i386/configure: Regenerated.
60327         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
60328         with .globl.
60329         * sysdeps/x86_64/configure: Regenerated.
60330         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
60331         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
60332         * elf/tst-unique2mod2.c: Likewise.
60333         * elf/tst-unique2mod1.c: Likewise.
60334         * elf/tst-unique1mod2.c: Likewise.
60335         * elf/tst-unique1mod1.c: Likewise.
60336         * sysdeps/s390/s390-32/sysdep.h: Likewise.
60337         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
60338         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60339         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60340         * sysdeps/mach/sysdep.h: Likewise.
60341         * sysdeps/i386/sysdep.h: Likewise.
60342         * sysdeps/i386/i386-mcount.S: Likewise.
60343         * sysdeps/x86_64/_mcount.S: Likewise.
60344         * sysdeps/x86_64/sysdep.h: Likewise.
60345         * sysdeps/sh/_mcount.S: Likewise.
60346         * sysdeps/sh/sysdep.h: Likewise.
60347         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
60348         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
60349         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
60350         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60351         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
60352         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
60353         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
60354         * locale/localeinfo.h: Likewise.
60355         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
60356         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
60357
60358 2012-07-09  Roland McGrath  <roland@hack.frob.com>
60359
60360         [BZ #14336]
60361         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
60362         system".
60363         * manual/message.texi (The Uniforum approach): Likewise.
60364         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
60365         (glibc iconv Implementation): Likewise.
60366
60367 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
60368
60369         [BZ #14337]
60370         * math/s_clog.c (__clog): Avoid scaling a value down where that
60371         could result in underflow.
60372         * math/s_clog10.c (__clog10): Likewise.
60373         * math/s_clog10f.c (__clog10f): Likewise.
60374         * math/s_clog10l.c (__clog10l): Likewise.
60375         * math/s_clogf.c (__clogf): Likewise.
60376         * math/s_clogl.c (__clogl): Likewise.
60377         * math/libm-test.inc (clog_test): Add more tests.
60378         (clog10_test): Likewise.
60379         * sysdeps/i386/fpu/libm-test-ulps: Update.
60380         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60381
60382 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
60383
60384         [BZ #14283]
60385         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
60386         by 7 not 8 to examine high bit of fractional part.
60387
60388         [BZ #14042]
60389         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
60390         for call to __mcount_internal.
60391         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
60392         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
60393         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
60394
60395 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
60396
60397         [BZ #14154]
60398         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
60399         approximation for values within 0x1p-13f of an odd multiple of
60400         pi/4.
60401         * math/libm-test.inc (tan_test): Do not allow spurious underflow
60402         exception.  Add more tests.
60403         * sysdeps/i386/fpu/libm-test-ulps: Update.
60404
60405         [BZ #6778]
60406         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
60407         inputs and return -1 for them.  Do not check for +Inf in case not
60408         reachable for +Inf.
60409         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
60410         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
60411         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60412         and return -1 for them.  Do not check for +Inf in case not
60413         reachable for +Inf.
60414         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
60415         define.
60416         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60417         and return -1 for them.  Do not check for +Inf in case not
60418         reachable for +Inf.
60419         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
60420         spurious underflow.
60421         * sysdeps/i386/fpu/libm-test-ulps: Update.
60422         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60423
60424 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
60425
60426         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
60427
60428 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
60429
60430         [BZ #14157]
60431         [BZ #14331]
60432         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
60433         could result in spurious underflow.  Scale down values above
60434         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
60435         * math/s_csqrtf.c (__csqrtf): Likewise.
60436         * math/s_csqrtl.c (__csqrtl): Likewise.
60437         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
60438         spurious underflow.
60439         * sysdeps/i386/fpu/libm-test-ulps: Update.
60440         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60441
60442 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60443
60444         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60445         xopen-msg.sed.
60446         * catgets/xopen-msg.awk: New file.
60447         * catgets/xopen-msg.sed: Removed.
60448
60449         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60450         po2text.sed.
60451         * intl/po2test.awk: New file.
60452         * intl/po2test.sed: Removed.
60453
60454 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60455
60456         [BZ #14328]
60457         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60458         or multiply small sinh result by itself.
60459         * math/s_ctanf.c (__ctanf): Likewise.
60460         * math/s_ctanh.c (__ctanh): Likewise.
60461         * math/s_ctanhf.c (__ctanhf): Likewise.
60462         * math/s_ctanhl.c (__ctanhl): Likewise.
60463         * math/s_ctanl.c (__ctanl): Likewise.
60464         * math/libm-test.inc (ctan_test_tonearest): New function.
60465         (ctan_test_towardzero): Likewise.
60466         (ctan_test_downward): Likewise.
60467         (ctan_test_upward): Likewise.
60468         (ctanh_test_tonearest): Likewise.
60469         (ctanh_test_towardzero): Likewise.
60470         (ctanh_test_downward): Likewise.
60471         (ctanh_test_upward): Likewise.
60472         (main): Call these new functions.
60473         * sysdeps/i386/fpu/libm-test-ulps: Update.
60474         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60475
60476 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60477
60478         * .gitignore: Delete /ports entry.
60479
60480 2012-07-03  Andreas Jaeger  <aj@suse.de>
60481
60482         * po/bg.po: Update from translation team.
60483         * po/cs.po: Likewise.
60484         * po/de.po: Likewise.
60485         * po/hr.po: Likewise.
60486         * po/nl.pl: Likewise.
60487         * po/pl.po: Likewise.
60488         * po/vi.po: Likewise.
60489
60490 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60491
60492         * Makeconfig [!+link] (+link-before-libc): New variable.
60493         [!+link] (+link-after-libc): Likewise.
60494         [!+link] (+link-tests): Likewise.
60495         [!+link] (+link): Define in terms of $(+link-before-libc) and
60496         $(+link-after-libc).
60497         [!+link-static] (+link-static-before-libc): New variable.
60498         [!+link-static] (+link-static-after-libc): Likewise.
60499         [!+link-static] (+link-static-tests): Likewise.
60500         [!+link-static] (+link-static): Define in terms of
60501         $(+link-static-before-libc) and $(+link-static-after-libc).
60502         [build-shared] (link-libc-before-gnulib): New variable.
60503         [build-shared] (link-libc-tests): Likewise.
60504         [build-shared] (link-libc): Define in terms of
60505         $(link-libc-before-gnulib).
60506         [!build-shared] (link-libc-tests): New variable.
60507         (link-libc-static-tests): New variable.
60508         [!gnulib] (gnulib-arch): New variable.
60509         [!gnulib] (gnulib-tests): Likewise.
60510         [!gnulib] (static-gnulib-arch): Likewise.
60511         [!gnulib] (static-gnulib-tests): Likewise.
60512         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60513         Define with "=" instead of ":=".
60514         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60515         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60516         * Rules (binaries-all-notests): New variable.
60517         (binaries-all-tests): Likewise.
60518         (binaries-static-notests): Likewise.
60519         (binaries-static-tests): Likewise.
60520         (binaries-all): Define using $(binaries-all-notests) and
60521         $(binaries-all-tests).
60522         (binaries-static): Define using $(binaries-static-notests) and
60523         $(binaries-static-tests).
60524         (binaries-shared-tests): New variable.
60525         (binaries-shared-notests): Likewise.
60526         (binaries-shared): Remove variable.
60527         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60528         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60529         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60530         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60531         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60532         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60533         * elf/Makefile (sln-modules): New variable.
60534         (extra-objs): Add $(sln-modules:=.o).
60535         (ldconfig-modules): Add static-stubs.
60536         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60537         * elf/static-stubs.c: New file.
60538
60539         [BZ #14283]
60540         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60541         by 7 not 8 to examine high bit of fractional part.  Use volatile
60542         variables when splitting into final array of floats if
60543         __FLT_EVAL_METHOD__ != 0.
60544         * math/libm-test.inc (cos_test): Add another test.
60545         (sin_test): Likewise.
60546         * sysdeps/i386/fpu/libm-test-ulps: Update.
60547
60548         [BZ #14273]
60549         * math/libm-test.inc (cosh_test): Add more tests.
60550
60551         * version.h (RELEASE): Set to "development".
60552         (VERSION): Set to "2.16.90".
60553
60554 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60555
60556         * NEWS: Update copyright. Remove last-updated date.
60557         Mention math library bug fixes and timezone data changes.
60558         * README: Mention GNU/Hurd, x32, and HPPA support status.
60559
60560 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60561
60562         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60563
60564 2012-06-27  Andreas Jaeger  <aj@suse.de>
60565
60566         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60567
60568 2012-06-25  Andreas Jaeger  <aj@suse.de>
60569
60570         * sysdeps/s390/fpu/libm-test-ulps: Update.
60571
60572 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60573             Thomas Schwinge  <thomas@codesourcery.com>
60574
60575         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60576         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60577         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60578         fanotify_mark.
60579
60580 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60581
60582         * sysdeps/mach/start.c: Remove file.
60583         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60584         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60585         * sysdeps/sh/init-first.c: Likewise.
60586
60587         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60588         registers for frame unwinding purposes, add CFI directives.
60589         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60590         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60591         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60592         Likewise.
60593
60594         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60595         __fortify_fail returning.
60596         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60597
60598         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60599         sysdeps/sh/____longjmp_chk.S.
60600         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60601         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60602         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60603         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60604
60605         * sysdeps/sh/abort-instr.h: New file.
60606         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60607         process in case exit returns.
60608
60609         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60610         initialize the GOT register before use.
60611
60612         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60613         calculation of ARGC > 4.
60614
60615         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60616         meaningful names to some local labels.
60617
60618 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60619             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60620
60621         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60622         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60623         (__arch_compare_and_exchange_val_16_acq): Likewise.
60624         (__arch_compare_and_exchange_val_32_acq): Likewise.
60625         (atomic_exchange_and_add): Fix gUSA sequence.
60626         (atomic_add): Likewise.
60627         (atomic_add_negative): Likewise.
60628         (atomic_add_zero): Likewise.
60629         (atomic_bit_test_set): Likewise.
60630
60631 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60632
60633         [BZ #13579]
60634         * include/link.h (struct link_map): Add l_free_initfini.
60635         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60636         l_initfini.
60637         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60638         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60639         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60640         set.
60641
60642 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60643
60644         * configure.in: Use AC_LANG_SOURCE.
60645         * configure: Regenerate.
60646
60647 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60648
60649         * configure.in (libc_cv_localstatedir): New substituted variable.
60650         * configure: Regenerated.
60651         * config.make.in (localstatedir): New variable, substituted from
60652         libc_cv_localstatedir.
60653         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60654         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60655         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60656         * sysdeps/gnu/configure: Regenerated.
60657
60658 2012-06-21  Jeff Law  <law@redhat.com>
60659
60660         [BZ #14277]
60661         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60662         free.  Simplify list management for _LIBC case.
60663
60664 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60665
60666         [BZ #14273]
60667         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60668         Clear sign bit of 64-bit integer value before comparing against
60669         overflow value.
60670
60671         * sysdeps/mach/configure: Regenerated.
60672
60673 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60674
60675         [BZ #14278]
60676         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60677
60678 2012-06-21  Jeff Law  <law@redhat.com>
60679
60680         [BZ #13882]
60681         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60682         uint16_t for elements in the "seen" array to avoid char overflows.
60683         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60684         * elf/dl-open.c (dl_open_worker): Likewise.
60685
60686 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60687
60688         * scripts/list-sources.sh: Scan PORTS for translations.
60689         * po/libc.pot: Regenerated.
60690
60691 2012-06-21  Andreas Jaeger  <aj@suse.de>
60692
60693         [BZ #12194]
60694         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60695         warning.
60696         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60697         * bits/byteswap-16.h (__bswap_16): Likewise.
60698         * bits/byteswap.h (__bswap_constant_16): Likewise.
60699
60700 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60701
60702         [BZ #14117]
60703         * sysdeps/i386/fpu_control.h: Removed.
60704         * sysdeps/x86_64/fpu_control.h: Moved to ...
60705         * sysdeps/x86/fpu_control.h: Here.
60706
60707         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60708         (_FPU_SETCW): Likewise.
60709
60710 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60711
60712         [BZ #14117]
60713         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60714         * sysdeps/x86/fpu/bits/mathinline.h: This.
60715         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60716
60717         [BZ #14050]
60718         [BZ #14117]
60719         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60720         functions if __x86_64__ is defined.
60721
60722 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60723
60724         * string/endian.h: Add !__ASSEMBLER__ condition for including
60725         conversion interfaces.
60726
60727 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60728
60729         [BZ #14241]
60730         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60731         of ABS(x) in calculating zero to negative powers other than odd
60732         integers.
60733         * math/libm-test.inc (pow_test): Add more tests.
60734
60735 2012-06-15  Andreas Jaeger  <aj@suse.de>
60736
60737         * manual/contrib.texi (Contributors): Update entry of Liubov
60738         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60739         Machado Filho.
60740
60741 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60742
60743         * string/string.h: Add __wur to GNU version of strerror_r.
60744
60745 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60746
60747         [BZ #14229]
60748         * string/Makefile (tests): Add tst-strtok_r.
60749         * string/tst-strtok_r.c: New file.
60750         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60751         RAX_LP/RDX_LP on SAVE_PTR.
60752
60753 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60754
60755         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60756
60757 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60758
60759         * libm_test.inc (csqrt_test): Allow more spurious underflow
60760         exceptions.
60761         (j0_test): Likewise.
60762         (j1_test): Likewise.
60763         (y0_test): Likewise.
60764         (y1_test): Likewise.
60765
60766 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60767
60768         * po/Makefile (libc.pot): Use UTF-8 charset.
60769
60770 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60771
60772         [BZ #14210]
60773         Suppress sign-conversion warning from FD_SET.
60774         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60775         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60776         not unsigned long int.
60777         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60778
60779 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60780
60781         [BZ #14050]
60782         [BZ #14117]
60783         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60784         __extern_always_inline instead of __extern_inline.
60785         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60786         (__signbit): Likewise.
60787         (__signbitl): Support C++ namespace.
60788         (lrintf): New inline function.
60789         (lrint): Likewise.
60790         (llrintf): Likewise.
60791         (llrint): Likewise.
60792         (fmaxf): Likewise.
60793         (fmax): Likewise.
60794         (fminf): Likewise.
60795         (fmin): Likewise.
60796         (rint): Likewise.
60797         (rintf): Likewise.
60798         (ceil): Likewise.
60799         (ceilf): Likewise.
60800         (floor): Likewise.
60801         (floorf): Likewise.
60802         (nearbyint): Likewise.
60803         (nearbyintf): Likewise.
60804
60805 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60806
60807         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60808         non-default versions.
60809
60810 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60811
60812         [BZ #14218]
60813         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60814
60815 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60816
60817         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60818         (FE_UPWARD, FE_DOWNWARD): Don't define.
60819         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60820         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60821
60822         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60823         reading it.
60824         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60825         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60826
60827 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60828
60829         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60830         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60831         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60832         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60833
60834 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60835
60836         [BZ #14117]
60837         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60838         * sysdeps/i386/fpu/Implies: New file.
60839         * sysdeps/x86_64/fpu/Implies: Likewise.
60840         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60841         * sysdeps/x86/fpu/bits/fenv.h: This.
60842
60843         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60844         __SSE_MATH__.
60845
60846 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60847
60848         [BZ #14134]
60849         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60850         character 0xffff that matches the last element of the
60851         conversion table.
60852
60853 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60854
60855         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60856         fmodl commit.
60857
60858 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60859
60860         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60861         values higher than 25.6283.
60862
60863 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60864
60865         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60866         subnormal exponent extraction and add some __builtin_expect.
60867         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60868         Fix for subnormal mantissa calculation.
60869
60870 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60871
60872         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60873         cpu2 is -1 and errno is not ENOSYS.
60874
60875 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60876
60877         [BZ #14117]
60878         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60879         * sysdeps/x86/bits/string.h: This.
60880         * sysdeps/x86_64/bits/string.h: Removed.
60881
60882         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60883         if not compiling for x86-64, but compiling for >= i486.
60884
60885         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60886         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60887
60888         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60889         New macro from Linux kernel 3.4.0.
60890         (FP_XSTATE_MAGIC2): Likewise.
60891         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60892         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60893         (struct _fpx_sw_bytes): New struct.
60894         (struct _xsave_hdr): Likewise.
60895         (struct _ymmh_state): Likewise.
60896         (struct _xstate): Likewise.
60897
60898         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60899         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60900         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60901         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60902         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60903         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
60904
60905         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
60906         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
60907         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
60908         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
60909         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
60910         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
60911
60912 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60913
60914         [BZ #13743]
60915         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
60916         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
60917         (sysdep_headers): Include sys/platform/ppc.h.
60918         * sysdeps/powerpc/test-gettimebase.c: Test for
60919         __ppc_get_timebase() to catch future ISA opcode/insn changes.
60920         * manual/Makefile (appendices): Include platform.texi.
60921         * manual/contrib.texi (Contributors): Update @node pointers.
60922         * manual/maint.texi (Maintenance): Likewise.
60923         (Platform): New node.
60924         * manual/platform.texi: New file.  Document the new features.
60925
60926 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60927             Jakub Jelinek  <jakub@redhat.com>
60928
60929         [BZ #14188]
60930         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
60931         where __builtin_expect is unavailable.
60932
60933 2012-06-03  David S. Miller  <davem@davemloft.net>
60934
60935         * stdlib/longlong.h: Updated from GCC.
60936
60937 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
60938
60939         [BZ #14042]
60940         * sysdeps/powerpc/powerpc32/mcount.c: New file.
60941         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
60942         __mcount_internal.
60943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60944         (GLIBC_2.16): Likewise.
60945
60946 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60947
60948         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
60949
60950 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60951
60952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
60953         (default-abi): New variable.
60954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
60955         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
60956         variable.
60957         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
60958         Likewise.
60959         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
60960         Likewise.
60961         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
60962         Likewise.
60963
60964         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
60965         definition.  Document in comment.
60966
60967 2012-06-01  David S. Miller  <davem@davemloft.net>
60968
60969         * stdlib/longlong.h: Updated from GCC.
60970
60971 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60972
60973         [BZ #14117]
60974         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
60975         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
60976         sys/debugreg.h sys/io.h here.
60977         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
60978         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
60979         sys/io.h.
60980         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
60981         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
60982         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
60983         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
60984         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
60985         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
60986
60987         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
60988         Define only if __x86_64__ is defined.
60989
60990 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60991
60992         [BZ #14048]
60993         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
60994         Use int64_t for variable i.
60995         * math/libm-test.inc (fmod_test): Add more tests.
60996
60997         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
60998         z computation is not scheduled after fetestexcept.
60999         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
61000         Use math_force_eval instead of asm to ensure calculation scheduled
61001         before exception test.
61002         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
61003         Ensure a1 + u.d computation is not scheduled after fetestexcept.
61004
61005 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
61006
61007         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
61008         computation is not scheduled after fetestexcept.
61009
61010 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61011
61012         [BZ #14117]
61013         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
61014         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
61015
61016 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61017
61018         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
61019         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
61020
61021 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61022
61023         [BZ #14117]
61024         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
61025         <bits/wordsize.h>.
61026         (__WCHAR_MIN): Support __WORDSIZE == 64.
61027         (__WCHAR_MAX): Likewise.
61028
61029         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
61030         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
61031
61032         [BZ #14183]
61033         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
61034         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
61035
61036         [BZ #14117]
61037         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
61038         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
61039
61040         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
61041         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
61042
61043         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
61044         Defined to 1 if __x86_64__ isn't defined.
61045         (_STAT_VER_LINUX_OLD): New.
61046         (st_atime): Remove duplicate.
61047         (st_mtime): Likewise.
61048         (st_ctime): Likewise.
61049
61050 2012-05-31  David S. Miller  <davem@davemloft.net>
61051
61052         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
61053         entries.
61054
61055 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
61056
61057         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
61058         gen-libm-test.pl.
61059
61060         [BZ #14132]
61061         * elf/dl-reloc.c: Include <_itoa.h>.
61062         (_dl_reloc_bad_type): Remove use of INTUSE.
61063         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
61064         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
61065         * stdio-common/psiginfo.c (psiginfo): Likewise.
61066         * stdio-common/psignal.c (psignal): Likewise.
61067         * string/strsignal.c (strsignal): Likewise.
61068         * include/signal.h (_sys_siglist): Declare hidden proto.
61069         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
61070         INTVARDEF with libc_hidden_data_def.
61071         * stdio-common/itoa-udigits.c: Likewise.
61072         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
61073         (_itoa_lower_digits_internal): Remove declaration.
61074         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
61075         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
61076         (_sys_sigabbrev_internal): Remove aliases.
61077         (_sys_siglist): Define hidden alias.
61078
61079 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
61080
61081         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
61082         bits/sysctl.h.
61083
61084 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61085
61086         [BZ #14117]
61087         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
61088         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
61089
61090         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
61091         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
61092         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
61093         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
61094         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
61095         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
61096
61097         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
61098         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
61099         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
61100
61101         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
61102         with __addr.
61103         (insw): Likewise.
61104         (insl): Likewise.
61105         (outsb): Likewise.
61106         (outsw): Likewise.
61107         (outsl): Likewise.
61108
61109         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
61110         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
61111         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
61112
61113         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
61114         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
61115         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
61116         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
61117         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
61118         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
61119
61120         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
61121         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
61122
61123         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
61124         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
61125
61126         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
61127         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
61128         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
61129
61130         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
61131         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
61132         to ...
61133         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
61134
61135         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
61136         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
61137         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
61138
61139         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
61140         for x86-64.
61141         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
61142
61143 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
61144
61145         * math/math.h (M_El): Use two more decimal places.
61146         (M_LOG2El): Likewise.
61147         (M_LOG10El): Likewise.
61148         (M_LN2l): Likewise.
61149         (M_LN10l): Likewise.
61150         (M_PIl): Likewise.
61151         (M_PI_2l): Likewise.
61152         (M_PI_4l): Likewise.
61153         (M_1_PIl): Likewise.
61154         (M_2_PIl): Likewise.
61155         (M_2_SQRTPIl): Likewise.
61156         (M_SQRT2l): Likewise.
61157         (M_SQRT1_2l): Likewise.
61158
61159 2012-05-31  David S. Miller  <davem@davemloft.net>
61160
61161         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
61162         values between float registers.
61163         * sysdeps/sparc/sparc64/memset.S: Likewise.
61164         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
61165
61166 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
61167
61168         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
61169         -D_FORTIFY_SOURCE=1.
61170         (CPPFLAGS-tst-longjmp_chk.c): Define.
61171         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
61172         (CPPFLAGS-tst-longjmp_chk2.c): Define.
61173         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
61174         CFLAGS-tst-wchar-h.c.
61175
61176 2012-05-31  Marek Polacek  <polacek@redhat.com>
61177
61178         [BZ #14132]
61179         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
61180         __endmntent_internal): Remove declaration.
61181         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
61182         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
61183         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
61184
61185 2012-05-30  David S. Miller  <davem@davemloft.net>
61186
61187         * sysdeps/sparc/sparc32/soft-fp/q_util.c
61188         (___Q_simulate_exceptions): Use real FP ops rather than writing
61189         into the %fsr.
61190         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
61191         Likewise.
61192
61193 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61194
61195         [BZ #14117]
61196         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
61197         * sysdeps/x86/bits/xtitypes.h: This.
61198
61199         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
61200         * sysdeps/x86/bits/wordsize.h: This.
61201
61202         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
61203         * sysdeps/x86/bits/huge_vall.h: This.
61204
61205         * sysdeps/i386/bits/select.h: Removed.
61206         * sysdeps/x86_64/bits/select.h: Renamed to ...
61207         * sysdeps/x86/bits/select.h: This.
61208
61209         * sysdeps/i386/bits/setjmp.h: Removed.
61210         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
61211         * sysdeps/x86/bits/setjmp.h: This.
61212
61213         * sysdeps/i386/bits/mathdef.h: Removed.
61214         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
61215         * sysdeps/x86/bits/mathdef.h: This.
61216
61217 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
61218
61219         [BZ #14132]
61220         * include/sys/socket.h (__connect_internal)
61221         (__libc_sa_len_internal): Remove declaration.
61222         (__connect, __libc_sa_len): Declare hidden_proto.
61223         (SA_LEN): Remove use of INTUSE.
61224         * socket/connect.c: Add libc_hidden_def.
61225         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
61226         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
61227         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
61228         alias.
61229         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
61230         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
61231         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
61232         of adding _internal alias.
61233
61234 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61235
61236         [BZ #14117]
61237         * sysdeps/i386/bits/link.h: Removed.
61238         * sysdeps/i386/bits/linkmap.h: Likewise.
61239         * sysdeps/x86_64/bits/link.h: Renamed to ...
61240         * sysdeps/x86/bits/link.h: This.
61241         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
61242         * sysdeps/x86/bits/linkmap.h: This.
61243
61244         * sysdeps/i386/bits/endian.h: Removed.
61245         * sysdeps/x86_64/bits/endian.h: Renamed to ...
61246         * sysdeps/x86/bits/endian.h: This.
61247
61248         * sysdeps/i386/bits/byteswap.h: Removed.
61249         * sysdeps/i386/bits/byteswap-16.h: Likewise.
61250         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
61251         * sysdeps/x86/bits/byteswap.h: This.
61252         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
61253         * sysdeps/x86/bits/byteswap-16.h: This.
61254         * sysdeps/i386/Implies: Add x86.
61255         * sysdeps/x86_64/Implies: Likewise.
61256
61257 2012-05-30  David S. Miller  <davem@davemloft.net>
61258
61259         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
61260         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
61261         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
61262         (FP_TRAPPING_EXCEPTIONS): Define.
61263         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
61264         (FP_TRAPPING_EXCEPTIONS): Define.
61265         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
61266         subnormals only when inexact has been signalled or underflow
61267         exceptions are enabled.
61268         (_FP_PACK_CANONICAL): Likewise.
61269
61270 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61271
61272         [BZ #14183]
61273         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
61274         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
61275
61276 2012-05-30  Richard Henderson  <rth@twiddle.net>
61277
61278         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
61279         with #ifndef NOT_IN_libc.
61280
61281         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
61282         marked to avoid plt entry.
61283
61284 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61285
61286         [BZ #14112]
61287         * Makeconfig (default-abi): New macro.
61288         (abi-includes): Likewise.
61289         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
61290         $(abi-$(default-abi)-lib-soname) for soname if defined.
61291         ($(common-objpfx)gnu/lib-names.stmp): Generate from
61292         abi-variants.
61293         * Makefile (installed-stubs): Likewise.
61294         * include/stubs-biarch.h: Removed.
61295         * scripts/lib-names.awk: Only handle one library at a time.
61296         * scripts/soversions.awk: Remove WORDSIZE support.
61297         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
61298         entries.
61299         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
61300         Removed.
61301         (syscall-list-default-condition): Likewise.
61302         (syscall-list-default-condition): Likewise.
61303         (syscall-list-includes): Likewise.
61304         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
61305         syscall-list-* with abi-*.  Handle undefined abi-variants.
61306         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
61307         * sysdeps/unix/sysv/linux/i386/Implies: New file.
61308         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
61309         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
61310         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
61311         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
61312         Removed.
61313         (syscall-list-32-options): Likewise.
61314         (syscall-list-32-condition): Likewise.
61315         (syscall-list-64-options): Likewise.
61316         (syscall-list-64-condition): Likewise.
61317         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
61318         macro.
61319         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
61320         Renamed to ...
61321         (abi-*): This.
61322         (abi-64-ld-soname): New macro.
61323         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
61324         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
61325         Renamed to ...
61326         (abi-*): This.
61327         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
61328         * sysdeps/x86_64/x32/shlib-versions: Likewise.
61329
61330 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
61331
61332         * sysdeps/unix/sysv/linux/kernel-features.h
61333         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
61334         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
61335         include <kernel-features.h>.
61336         [!__NR_ftruncate64]: Remove conditional code.
61337         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61338         [__NR_ftruncate64]: Make code unconditional.
61339         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61340         * sysdeps/unix/sysv/linux/truncate64.c: Do not
61341         include <kernel-features.h>.
61342         [!__NR_ftruncate64]: Remove conditional code.
61343         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61344         [__NR_ftruncate64]: Make code unconditional.
61345         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
61347         include <kernel-features.h>.
61348         [!__NR_ftruncate64]: Remove conditional code.
61349         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61350         [__NR_ftruncate64]: Make code unconditional.
61351         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
61353         include <kernel-features.h>.
61354         [!__NR_ftruncate64]: Remove conditional code.
61355         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61356         [__NR_ftruncate64]: Make code unconditional.
61357         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61358
61359         * configure.in (libc_cv_fpie): Weaken to a compile test using
61360         LIBC_TRY_CC_OPTION.
61361         * configure: Regenerated.
61362
61363 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61364
61365         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
61366         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
61367         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
61368         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
61369         Refreshed.
61370         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
61371         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
61372         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
61373         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
61374         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
61375         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
61376         Refreshed.
61377
61378 2012-05-27  David S. Miller  <davem@davemloft.net>
61379
61380         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
61381         (___Q_zero): New.
61382         (__Q_simulate_exceptions): Return void.  Change to simulate
61383         exceptions by writing into the %fsr.
61384         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
61385         (__Qp_handle_exceptions): Likewise.
61386         (numbers): Delete.
61387         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
61388         __Qp_handle_exceptions.
61389         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
61390         __Qp_handle_exceptions.
61391         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61392         as unused and give dummy FP_RND_NEAREST initializer.
61393         (FP_INHIBIT_RESULTS): Define.
61394         (___Q_simulate_exceptions): Update declaration.
61395         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
61396         formatting.
61397         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61398         as unused and give dummy FP_RND_NEAREST initializer.
61399         (__Qp_handle_exceptions): Update declaration.
61400         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
61401         formatting.
61402
61403 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
61404
61405         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
61406         the temporary FPU control word.
61407         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
61408         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
61409         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
61410         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61411         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
61412         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
61413         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
61414         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61415         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
61416         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
61417         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61418
61419 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61420
61421         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
61422         fields.
61423
61424 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
61425
61426         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
61427         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
61428         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
61429         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
61430         Likewise.
61431         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
61432         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
61433         Likewise.
61434
61435 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
61436
61437         * po/h.po: Update from translation team.
61438
61439 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
61440
61441         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61442
61443         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61444         handling of denormals.
61445         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61446         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61447         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61448         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61449         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61450         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61451         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61452         Likewise.
61453
61454 2012-05-26  Marek Polacek  <polacek@redhat.com>
61455
61456         [BZ #14152]
61457         * math/libm-test.inc (fma_test): Don't always expect underflow
61458         exception.
61459
61460 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61461
61462         [BZ #12416]
61463         * elf/tst-execstack.c: Include stackinfo.h.
61464         (do_test): Adjust test case to ensure that pthread_getattr_np
61465         behaviour remains the same after marking stack executable.
61466
61467 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61468
61469         * sysdeps/unix/sysv/linux/kernel-features.h
61470         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61471         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61472         kernel-features.h.
61473         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61474         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61475         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61476         kernel-features.h.
61477         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61478         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61479
61480 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61481
61482         * configure.in: Define the default includes to being none.
61483         * configure: Regenerated.
61484
61485 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61486
61487         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61488         * sysdeps/x86_64/setjmp.S: Likewise.
61489         * sysdeps/i386/bsd-setjmp.S: Likewise.
61490         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61491         * sysdeps/i386/setjmp.S: Likewise.
61492         * sysdeps/i386/__longjmp.S: Likewise.
61493         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61494         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61495
61496         * include/stap-probe.h: New file.
61497         * configure.in: Handle --enable-systemtap.
61498         * configure: Regenerated.
61499         * config.h.in (USE_STAP_PROBE): New #undef.
61500         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61501         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61502         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61503
61504 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61505
61506         [BZ #13717]
61507         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61508         to 2.4.0 where earlier.
61509         * sysdeps/unix/sysv/linux/configure: Regenerated.
61510         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
61511         <kernel-features.h>.
61512         [__ASSUME_32BITUIDS]: Make code unconditional.
61513         [!__ASSUME_32BITUIDS]: Remove conditional code.
61514         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
61515         <kernel-features.h>.
61516         [__ASSUME_32BITUIDS]: Make code unconditional.
61517         [!__ASSUME_32BITUIDS]: Remove conditional code.
61518         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
61519         [__ASSUME_32BITUIDS]: Make code unconditional.
61520         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61521         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61522         <kernel-features.h>.
61523         [__ASSUME_32BITUIDS]: Make code unconditional.
61524         [!__ASSUME_32BITUIDS]: Remove conditional code.
61525         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61526         <kernel-features.h>.
61527         [__ASSUME_32BITUIDS]: Make code unconditional.
61528         [!__ASSUME_32BITUIDS]: Remove conditional code.
61529         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61530         <kernel-features.h>.
61531         [__ASSUME_32BITUIDS]: Make code unconditional.
61532         [!__ASSUME_32BITUIDS]: Remove conditional code.
61533         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61534         <kernel-features.h>.
61535         [__ASSUME_32BITUIDS]: Make code unconditional.
61536         [!__ASSUME_32BITUIDS]: Remove conditional code.
61537         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61538         <kernel-features.h>.
61539         [__ASSUME_32BITUIDS]: Make code unconditional.
61540         [!__ASSUME_32BITUIDS]: Remove conditional code.
61541         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61542         <kernel-features.h>.
61543         [__ASSUME_32BITUIDS]: Make code unconditional.
61544         [!__ASSUME_32BITUIDS]: Remove conditional code.
61545         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
61546         <kernel-features.h>.
61547         [__ASSUME_32BITUIDS]: Make code unconditional.
61548         [!__ASSUME_32BITUIDS]: Remove conditional code.
61549         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
61550         <kernel-features.h>.
61551         [__ASSUME_32BITUIDS]: Make code unconditional.
61552         [!__ASSUME_32BITUIDS]: Remove conditional code.
61553         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
61554         <kernel-features.h>.
61555         [__ASSUME_32BITUIDS]: Make code unconditional.
61556         [!__ASSUME_32BITUIDS]: Remove conditional code.
61557         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61558         <kernel-features.h>.
61559         [__ASSUME_32BITUIDS]: Make code unconditional.
61560         [!__ASSUME_32BITUIDS]: Remove conditional code.
61561         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61562         <kernel-features.h>.
61563         [__NR_setresgid] (__setresgid): Do not declare.
61564         [__ASSUME_32BITUIDS]: Make code unconditional.
61565         [!__ASSUME_32BITUIDS]: Remove conditional code.
61566         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61567         <kernel-features.h>.
61568         [__NR_setresuid] (__setresuid): Do not declare.
61569         [__ASSUME_32BITUIDS]: Make code unconditional.
61570         [!__ASSUME_32BITUIDS]: Remove conditional code.
61571         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61572         <kernel-features.h>.
61573         [__ASSUME_32BITUIDS]: Make code unconditional.
61574         [!__ASSUME_32BITUIDS]: Remove conditional code.
61575         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61576         <kernel-features.h>.
61577         [__ASSUME_32BITUIDS]: Make code unconditional.
61578         [!__ASSUME_32BITUIDS]: Remove conditional code.
61579         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61580         <kernel-features.h>.
61581         [__ASSUME_32BITUIDS]: Make code unconditional.
61582         [!__ASSUME_32BITUIDS]: Remove conditional code.
61583         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61584         <kernel-features.h>.
61585         [__ASSUME_32BITUIDS]: Make code unconditional.
61586         [!__ASSUME_32BITUIDS]: Remove conditional code.
61587         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61588         <kernel-features.h>.
61589         [__ASSUME_32BITUIDS]: Make code unconditional.
61590         [!__ASSUME_32BITUIDS]: Remove conditional code.
61591         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61592         <kernel-features.h>.
61593         [__ASSUME_32BITUIDS]: Make code unconditional.
61594         [!__ASSUME_32BITUIDS]: Remove conditional code.
61595         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61596         <kernel-features.h>.
61597         [__ASSUME_32BITUIDS]: Make code unconditional.
61598         [!__ASSUME_32BITUIDS]: Remove conditional code.
61599         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61600         <kernel-features.h>.
61601         [__ASSUME_32BITUIDS]: Make code unconditional.
61602         [!__ASSUME_32BITUIDS]: Remove conditional code.
61603         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61604         <kernel-features.h>.
61605         [__ASSUME_32BITUIDS]: Make code unconditional.
61606         [!__ASSUME_32BITUIDS]: Remove conditional code.
61607         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61608         <kernel-features.h>.
61609         [__ASSUME_32BITUIDS]: Make code unconditional.
61610         [!__ASSUME_32BITUIDS]: Remove conditional code.
61611         * sysdeps/unix/sysv/linux/kernel-features.h
61612         (__ASSUME_SETRESUID_SYSCALL): Remove.
61613         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61614         (__ASSUME_32BITUIDS): Likewise.
61615         (__ASSUME_LDT_WORKS): Likewise.
61616         (__ASSUME_O_DIRECTORY): Likewise.
61617         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61618         architecture but not kernel version.
61619         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61620         (__ASSUME_MMAP2_SYSCALL): Likewise.
61621         (__ASSUME_STAT64_SYSCALL): Likewise.
61622         (__ASSUME_IPC64): Likewise.
61623         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61624         <kernel-features.h>.
61625         [__ASSUME_32BITUIDS]: Make code unconditional.
61626         [!__ASSUME_32BITUIDS]: Remove conditional code.
61627         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61628         <kernel-features.h>.
61629         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61630         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61631         132096]: Remove conditional code.
61632         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61633         * sysdeps/unix/sysv/linux/s390/s390-32/chown.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/s390/s390-32/lchown.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/setegid.c: Do not include
61642         <kernel-features.h>.
61643         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61644         unconditional.
61645         (__setresgid): Do not declare.
61646         [__ASSUME_32BITUIDS]: Make code unconditional.
61647         [!__ASSUME_32BITUIDS]: Remove conditional code.
61648         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61649         <kernel-features.h>.
61650         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61651         unconditional.
61652         (__setresuid): Do not declare.
61653         [__ASSUME_32BITUIDS]: Make code unconditional.
61654         [!__ASSUME_32BITUIDS]: Remove conditional code.
61655         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61656         <kernel-features.h>.
61657         [__ASSUME_32BITUIDS]: Make code unconditional.
61658         [!__ASSUME_32BITUIDS]: Remove conditional code.
61659         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61660         <kernel-features.h>.
61661         [__ASSUME_32BITUIDS]: Make code unconditional.
61662         [!__ASSUME_32BITUIDS]: Remove conditional code.
61663
61664 2012-05-25  Richard Henderson  <rth@twiddle.net>
61665
61666         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61667         dl_hwcap to ifunc resolver.
61668         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61669         elf_ifunc_invoke.
61670         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61671         dl_hwcap to ifunc resolver.
61672         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61673
61674 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61675
61676         [BZ #14153]
61677         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61678         for |x| <= 2**-26, not 2**-57.
61679         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61680         exception.
61681
61682 2012-05-24  Jeff Law  <law@redhat.com>
61683
61684         * stdio-common/Makefile (tests): Add bug25.
61685         * stdio-common/bug25.c: New test.
61686
61687 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61688
61689         [BZ #13576]
61690         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61691         multiple of MALLOC_ALIGNMENT in size.
61692         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61693
61694 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61695
61696         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61697         Require >= 256.
61698         (FILENAME_MAX): Use macro-int-constant.
61699         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61700         (_IOFBF): Use macro-int-constant.
61701         (_IOLBF): Likewise.
61702         (_IONBF): Likewise.
61703         (SEEK_CUR): Likewise.
61704         (SEEK_END): Likewise.
61705         (SEEK_SET): Likewise.
61706         (TMP_MAX): Likewise.
61707         (EOF): Use macro-int-constant.  Require < 0.
61708         (NULL): Use macro-constant.  Require == 0.
61709         (stdin): Require type to be FILE *.
61710         (stdout): Likewise.
61711         (stderr): Likewise.
61712         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61713         macro-int-constant.
61714         (EXIT_SUCCESS): Likewise.
61715         (NULL): Use macro-constant.  Require == 0.
61716         (RAND_MAX): Use macro-int-constant.
61717         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61718         [C99-based standards] (strtof): Require function.
61719         [C99-based standards] (strtold): Likewise.
61720         [C99-based standards] (strtoll): Likewise.
61721         [C99-based standards] (strtoull): Likewise.
61722         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61723         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61724         [ISO || ISO99 || ISO11] (math.h): Likewise.
61725         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61726         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61727         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61728
61729 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61730
61731         [BZ #14132]
61732         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61733         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61734         * intl/dgettext.c (DCGETTEXT): Likewise.
61735         * intl/gettext.c (DCGETTEXT): Likewise.
61736         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61737         * posix/regex_internal.h (gettext): Likewise.
61738         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61739         Remove declaration.
61740         * include/argz.h (__argz_count_internal)
61741         (__argz_stringify_internal): Remove declaration.
61742         (__argz_count, __argz_stringify): Declare hidden proto.
61743         * intl/dcgettext.c: Remove use of INTDEF.
61744         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61745         * string/argz-stringify.c: Likewise.
61746         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61747         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61748         Declare hidden proto.
61749         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61750         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61751         Declare hidden proto.
61752         * include/stdio.h (__asprintf_internal): Don't declare.
61753         (__asprintf): Don't define as macro.  Declare hidden proto.
61754         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61755         (__fsetlocking): Declare hidden proto.
61756         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61757         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61758         hidden proto.
61759         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61760         (_IO_setlinebuf): Remove use of INTUSE.
61761         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61762         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61763         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61764         Remove declaration.
61765         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61766         (_IO_do_flush): Remove use of INTUSE.
61767         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61768         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61769         (_IO_adjust_column, _IO_least_wmarker)
61770         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61771         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61772         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61773         (_IO_default_doallocate, _IO_wdefault_doallocate)
61774         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61775         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61776         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61777         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61778         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61779         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61780         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61781         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61782         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61783         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61784         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61785         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61786         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61787         proto.
61788         (_IO_flush_all_internal, _IO_adjust_column_internal)
61789         (_IO_default_uflow_internal, _IO_default_finish_internal)
61790         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61791         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61792         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61793         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61794         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61795         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61796         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61797         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61798         (_IO_file_close_internal, _IO_file_close_it_internal)
61799         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61800         (_IO_file_init_internal, _IO_file_attach_internal)
61801         (_IO_file_fopen_internal, _IO_file_read_internal)
61802         (_IO_file_sync_internal, _IO_file_seek_internal)
61803         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61804         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61805         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61806         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61807         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61808         (_IO_list_all_internal, _IO_link_in_internal)
61809         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61810         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61811         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61812         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61813         (_IO_do_write_internal, _IO_padn_internal)
61814         (_IO_getline_info_internal, _IO_getline_internal)
61815         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61816         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61817         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61818         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61819         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61820         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61821         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61822         with libc_hidden_ver, remove use of INTUSE.
61823         * libio/genops.c: Likewise.
61824         * libio/freopen.c: Likewise.
61825         * libio/freopen64.c: Likewise.
61826         * libio/iofclose.c: Likewise.
61827         * libio/iofdopen.c: Likewise.
61828         * libio/iofflush.c: Likewise.
61829         * libio/iofflush_u.c: Likewise.
61830         * libio/iofgets.c: Likewise.
61831         * libio/iofgets_u.c: Likewise.
61832         * libio/iofopen.c: Likewise.
61833         * libio/iofopncook.c: Likewise.
61834         * libio/iofread.c: Likewise.
61835         * libio/iofread_u.c: Likewise.
61836         * libio/ioftell.c: Likewise.
61837         * libio/iofwrite.c: Likewise.
61838         * libio/iogetline.c: Likewise.
61839         * libio/iogets.c: Likewise.
61840         * libio/iogetwline.c: Likewise.
61841         * libio/iopadn.c: Likewise.
61842         * libio/iopopen.c: Likewise.
61843         * libio/ioseekoff.c: Likewise.
61844         * libio/ioseekpos.c: Likewise.
61845         * libio/iosetbuffer.c: Likewise.
61846         * libio/iosetvbuf.c: Likewise.
61847         * libio/ioungetc.c: Likewise.
61848         * libio/ioungetwc.c: Likewise.
61849         * libio/iovdprintf.c: Likewise.
61850         * libio/iovsprintf.c: Likewise.
61851         * libio/iovsscanf.c: Likewise.
61852         * libio/memstream.c: Likewise.
61853         * libio/obprintf.c: Likewise.
61854         * libio/oldfileops.c: Likewise.
61855         * libio/oldiofclose.c: Likewise.
61856         * libio/oldiofdopen.c: Likewise.
61857         * libio/oldiofopen.c: Likewise.
61858         * libio/oldiopopen.c: Likewise.
61859         * libio/oldstdfiles.c: Likewise.
61860         * libio/putc.c: Likewise.
61861         * libio/setbuf.c: Likewise.
61862         * libio/setlinebuf.c: Likewise.
61863         * libio/stdfiles.c: Likewise.
61864         * libio/strops.c: Likewise.
61865         * libio/vasprintf.c: Likewise.
61866         * libio/vscanf.c: Likewise.
61867         * libio/vsnprintf.c: Likewise.
61868         * libio/vswprintf.c: Likewise.
61869         * libio/wfiledoalloc.c: Likewise.
61870         * libio/wfileops.c: Likewise.
61871         * libio/wgenops.c: Likewise.
61872         * libio/wmemstream.c: Likewise.
61873         * libio/wstrops.c: Likewise.
61874         * libio/__fpurge.c: Likewise.
61875         * libio/__fsetlocking.c: Likewise.
61876         * assert/assert.c: Likewise.
61877         * debug/fgets_chk.c: Likewise.
61878         * debug/fgets_u_chk.c: Likewise.
61879         * debug/fread_chk.c: Likewise.
61880         * debug/fread_u_chk.c: Likewise.
61881         * debug/gets_chk.c: Likewise.
61882         * debug/obprintf_chk.c: Likewise.
61883         * debug/vasprintf_chk.c: Likewise.
61884         * debug/vdprintf_chk.c: Likewise.
61885         * debug/vsnprintf_chk.c: Likewise.
61886         * debug/vsprintf_chk.c: Likewise.
61887         * malloc/mtrace.c: Likewise.
61888         * misc/error.c: Likewise.
61889         * misc/syslog.c: Likewise.
61890         * stdio-common/asprintf.c: Likewise.
61891         * stdio-common/fxprintf.c: Likewise.
61892         * stdio-common/getw.c: Likewise.
61893         * stdio-common/isoc99_fscanf.c: Likewise.
61894         * stdio-common/isoc99_scanf.c: Likewise.
61895         * stdio-common/isoc99_vfscanf.c: Likewise.
61896         * stdio-common/isoc99_vscanf.c: Likewise.
61897         * stdio-common/isoc99_vsscanf.c: Likewise.
61898         * stdio-common/printf-prs.c: Likewise.
61899         * stdio-common/printf_fp.c: Likewise.
61900         * stdio-common/printf_fphex.c: Likewise.
61901         * stdio-common/printf_size.c: Likewise.
61902         * stdio-common/putw.c: Likewise.
61903         * stdio-common/scanf.c: Likewise.
61904         * stdio-common/sprintf.c: Likewise.
61905         * stdio-common/tmpfile.c: Likewise.
61906         * stdio-common/vfprintf.c: Likewise.
61907         * stdio-common/vfscanf.c: Likewise.
61908         * stdlib/strfmon_l.c: Likewise.
61909         * sunrpc/openchild.c: Likewise.
61910         * sunrpc/xdr_stdio.c: Likewise.
61911         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
61912         * sysdeps/mach/hurd/tmpfile.c: Likewise.
61913
61914 2012-05-24  Roland McGrath  <roland@hack.frob.com>
61915
61916         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61917
61918         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
61919         in the third column, to generate for the shared library an IFUNC
61920         that uses _dl_vdso_vsym.
61921         * Makerules (COMPILE.c, compile-stdin.c): New variables.
61922         * Makeconfig (object-suffixes-noshared): New variable.
61923
61924         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
61925         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
61926         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
61927         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
61928
61929         [BZ #14132]
61930         * include/sys/time.h (__gettimeofday): Remove macro.
61931         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
61932         * time/gettimeofday.c (__gettimeofday): Remove #undef.
61933         Remove INTDEF.
61934         (__gettimeofday): Add libc_hidden_def.
61935         (gettimeofday): Add libc_hidden_weak.
61936         * sysdeps/mach/gettimeofday.c: Likewise.
61937         * sysdeps/posix/gettimeofday.c: Likewise.
61938         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
61939         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
61940         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
61941         (__gettimeofday_internal): Remove strong_alias.
61942         (__gettimeofday): Add libc_hidden_def.
61943         (gettimeofday): Add libc_hidden_weak.
61944         * sysdeps/unix/syscalls.list (gettimeofday):
61945         Remove __gettimeofday_internal alias.
61946
61947 2012-05-24  Daniel Jacobowitz  <drow@false.org>
61948             H.J. Lu  <hongjiu.lu@intel.com>
61949
61950         [BZ #12495]
61951         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
61952         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
61953         (largebin_index_32_big): New.
61954         (largebin_index): Use it for 16-byte alignment.
61955         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
61956         correction with front_misalign.
61957
61958 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61959
61960         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
61961         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
61962         Likewise.
61963         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
61964         Likewise.
61965         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
61966         Likewise.
61967         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
61968         Likewise.
61969         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
61970         Likewise.
61971         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
61972         Likewise.
61973         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
61974         Likewise.
61975         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
61976         Likewise.
61977         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
61978         Likewise.
61979         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
61980         Likewise.
61981         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
61982         Likewise.
61983         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
61984         Likewise.
61985
61986         * scripts/data/c++-types-x32-linux-gnu.data: New file.
61987         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
61988
61989 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61990
61991         [BZ #10846]
61992         [BZ #14036]
61993         * math/libm-test.inc (exp_test): Add test from bug 14036.
61994         (pow_test): Add test from bug 10846.
61995
61996         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
61997         and other flags.
61998         (special_function): Do not include flags in test name.
61999         (parse_args): Likewise.
62000         * sysdeps/i386/fpu/libm-test-ulps: Update.
62001         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
62002         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
62003         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
62004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62005
62006         * math/gen-libm-test.pl (%beautify): Add entries for underflow
62007         exceptions.
62008         * math/libm-test.inc ("Philosophy"): Update comment about
62009         exception testing.
62010         (UNDERFLOW_EXCEPTION): New macro.
62011         (UNDERFLOW_EXCEPTION_OK): Likewise.
62012         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
62013         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
62014         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
62015         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
62016         (INVALID_EXCEPTION_OK): Update value.
62017         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
62018         (OVERFLOW_EXCEPTION_OK): Likewise.
62019         (IGNORE_ZERO_INF_SIGN): Likewise.
62020         (test_exceptions): Handle underflow exceptions.
62021         (acos_test): Update for underflow exception expectations.
62022         (cexp_test): Likewise.
62023         (clog_test): Likewise.
62024         (clog10_test): Likewise.
62025         (csqrt_test): Likewise.
62026         (ctan_test): Likewise.
62027         (ctanh_test): Likewise.
62028         (exp_test): Likewise.
62029         (exp10_test): Likewise.
62030         (exp2_test): Likewise.
62031         (expm1_test): Likewise.
62032         (fma_test): Likewise.
62033         (j0_test): Likewise.
62034         (jn_test): Likewise.
62035         (nexttoward_test): Likewise.
62036         (pow_test): Likewise.
62037         (scalbn_test): Likewise.
62038         (scalbln_test): Likewise.
62039         (tan_test): Likewise.
62040         (y1_test): Likewise.
62041         * sysdeps/i386/fpu/libm-test-ulps: Update.
62042         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62043
62044 2012-05-23  David S. Miller  <davem@davemloft.net>
62045
62046         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62047         (__libc_sigaction): Remove unused local variables.
62048
62049 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62050
62051         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
62052
62053 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
62054
62055         mktime: avoid signed integer overflow
62056         * time/mktime.c (__mktime_internal): Do not mishandle the case
62057         where diff == INT_MIN.
62058
62059         mktime: simplify computation of average
62060         * time/mktime.c (ranged_convert): Use new time_t_avg function
62061         instead of rolling our own (probably-slower) code.
62062
62063         mktime: do not assume signed right shift propagates sign bit
62064         * time/mktime.c (isdst_differ): New static function.
62065         (__mktime_internal): No need to normalize tm_isdst now.
62066         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
62067         tm_isdst values.
62068
62069         mktime: merge another wrapv change from gnulib
62070         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
62071         from some compilers.
62072
62073         mktime: remove incorrect attempt at unusual arithmetics
62074         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
62075         The code didn't really work on such machines anyway.
62076         (TYPE_MINIMUM): Assume two's complement.
62077         (twos_complement_arithmetic): Verify that long_int and time_t
62078         are two's complement (or unsigned, in the latter case).
62079
62080         mktime: check signed shifts on long_int and time_t, too
62081         * time/mktime.c (SHR): Check that shifts work as desired
62082         on the types long_int and time_t too, as SHR is used on
62083         such types.
62084
62085         mktime: do not assume 'long' is wide enough
62086         * time/mktime.c (verify): Move decl up.
62087         (long_int): New type.
62088         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
62089         to remove assumption in the code that 'long' is wide enough to
62090         store year values.  This assumption is not true on x32 and on
62091         some non-glibc platforms.
62092
62093         mktime: merge wrapv change from gnulib
62094         * time/mktime.c (WRAPV): New macro.
62095         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
62096         (guess_time_tm, __mktime_internal): Do not assume that signed
62097         integer overflow wraps around; modern compilers generate code
62098         where this assumption is no longer valid.
62099
62100 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62101
62102         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62103         Replace "jmp L(pseudo_end)" with "ret".
62104         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
62105         Likewise.
62106
62107 2012-05-23  Andreas Jaeger  <aj@suse.de>
62108
62109         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
62110         * sysdeps/unix/sysv/linux/poll.c: Remove file.
62111
62112 2012-05-23  Andreas Jaeger  <aj@suse.de>
62113             Maximilian Attems  <max@stro.at>
62114
62115         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
62116         New macros.
62117
62118 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62119
62120         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
62121         code so that pseudo_end is just ret and the stack pointer is
62122         correct also for static library in error case.
62123
62124 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
62125
62126         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
62127         move to syscalls.list.
62128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
62129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
62130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
62131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
62132
62133         * manual/install.texi (Running make install): Do not mention Linux
62134         kernel version for which pt_chown is not needed.
62135         (Linux): Do not mention problems with nscd with 2.0 kernels.
62136         * INSTALL: Regenerated.
62137
62138 2012-05-23  Andreas Jaeger  <aj@suse.de>
62139
62140         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
62141         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
62142         macro.
62143         * sysdeps/unix/sysv/linux/s390/bits/mman.h
62144         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62145         * sysdeps/unix/sysv/linux/sh/bits/mman.h
62146         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62147         * sysdeps/unix/sysv/linux/i386/bits/mman.h
62148         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62149         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
62150         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62151         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
62152         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62153         * sysdeps/unix/sysv/linux/bits/in.h
62154         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
62155
62156 2012-05-22  Roland McGrath  <roland@hack.frob.com>
62157
62158         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
62159         (PREPARE_VERSION): Just use assert instead, it will be elided
62160         under [NDEBUG] anyway.
62161
62162 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62163
62164         * sysdeps/unix/sysv/linux/Makefile: Include
62165         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
62166         (sysdep_routines): Remove sysctl.
62167         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
62168         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
62169         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
62170         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
62171         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
62172
62173 2012-05-22  Andreas Jaeger  <aj@suse.de>
62174
62175         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
62176         that pseudo_end is just ret and the stack pointer is correct also
62177         for static library in error case.
62178
62179 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
62180
62181         [BZ #14122]
62182         * nss/nsswitch.c (defconfig_entries): New variable.
62183         (__nss_database_lookup): Don't leak defconfig entries.
62184         (nss_parse_service_list): Don't leak on error paths.
62185         (free_database_entries): New function.
62186         (free_defconfig): New function.
62187         (free_mem): Move common code to free_database_entries.
62188
62189 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62190
62191         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
62192         Add arch_prctl.
62193         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
62194
62195         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
62196         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
62197         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
62198         New macro.
62199         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
62200         (INTERNAL_SYSCALL_TYPES): Likewise.
62201         (LOAD_ARGS_TYPES_[1-6]): Likewise.
62202         (LOAD_REGS_TYPES_[1-6]): Likewise.
62203         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
62204         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
62205
62206 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62207
62208         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
62209         copysignl for GLIBC_2_0.
62210         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
62211         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
62212         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
62213         logbl for GLIBC_2_0.
62214         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
62215         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
62216
62217 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62218
62219         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
62220         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62221
62222         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62223         Use "neg %eax".
62224
62225         * time/mktime.c: Update copyright years.
62226
62227 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62228
62229         mktime: merge comment-quoting-style change from gnulib
62230         * time/mktime.c: Quote 'like this' in comments.
62231         The GNU coding standards suggest that we no longer quote `like this',
62232         as "`" and "'" are typically rendered asymmetrically nowadays.
62233         The typical gnulib style is to quote 'like this' when quoting
62234         code, and "like this" when quoting English.
62235
62236         * time/mktime.c (compile-command): Add "-I.".
62237
62238         mktime: merge mktime-internal.h change from gnulib
62239         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
62240
62241         mktime: merge time_r change from gnulib
62242         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
62243
62244         mktime: merge DEBUG change from gnulib
62245         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
62246         case system <time.h> has a #define.
62247
62248         mktime: merge <sys/types.h> change from gnulib
62249         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
62250         since <time.t> is now guaranteed to define time_t.
62251
62252         mktime: merge HAVE_CONFIG_H change from gnulib
62253         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
62254
62255 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62256
62257         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62258         Use "neg %eax".
62259
62260         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
62261         __rlim_t cast.
62262         (struct rusage): Use anonymous union to pad each field to
62263         __syscall_slong_t.
62264
62265 2012-05-21  David S. Miller  <davem@davemloft.net>
62266
62267         * Makefules (o-iterator): Remove .s cases.
62268         (compile-command.s): Delete.
62269         (COMPILE.s): Delete.
62270         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
62271
62272 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
62273
62274         * configure.in (libc_cv_predef_stack_protector): Only consider
62275         "foobar" and "__stack_chk_fail" lines in libc_undefs.
62276         * configure: Regenerated.
62277
62278 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62279
62280         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62281         New macro.  Use R*LP on int and pointer.
62282         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
62283         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
62284         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
62285         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
62286
62287         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
62288         [__WORDSIZE_TIME64_COMPAT32] instead of
62289         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
62290         (struct utmp): Likewise.
62291         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
62292         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
62293         Renamed to ...
62294         (__WORDSIZE_TIME64_COMPAT32): This.
62295         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
62296         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
62297         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
62298         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
62299         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62300         (__WORDSIZE_TIME64_COMPAT32): New macro.
62301
62302 2012-05-21  Andreas Jaeger  <aj@suse.de>
62303
62304         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
62305         only if [SHARED]. Add prototype for __wcschr_ia32.
62306
62307 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62308
62309         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
62310         of %rbp unmolested in the jmp_buf while mangling the low bits.
62311         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
62312         unmolested high bits of %rbp while demangling the low bits.
62313         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
62314
62315 2012-05-21  Andreas Jaeger  <aj@suse.de>
62316
62317         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
62318         * sunrpc/svc_simple.c: Use it for registerrpc.
62319         * sunrpc/xcrypt.c: Use it for passwd2des.
62320
62321         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
62322
62323 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62324
62325         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
62326         Don't define if [__SYSCALL_WORDSIZE != 32].
62327         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
62328         New macro.
62329
62330 2012-05-21  Bruno Haible  <bruno@clisp.org>
62331             Andreas Jaeger  <aj@suse.de>
62332
62333         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
62334         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
62335         inptr and inend for must_buffer_ch.
62336         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
62337         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
62338         * stdio-common/Makefile (tests): Remove bug15.
62339         (bug15-ENV): Remove macro.
62340         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
62341         anymore.
62342
62343 2012-05-19  Andreas Jaeger  <aj@suse.de>
62344             Roland McGrath  <roland@hack.frob.com>
62345
62346         * manual/contrib.texi: Completely rewritten. It contains now an
62347         alphabetical list of contributors and their contributions.
62348
62349 2012-05-21  Richard Henderson  <rth@twiddle.net>
62350
62351         * misc/getauxval.c (__getauxval): Use unsigned long int.
62352         * misc/sys/auxv.h: Include <sys/cdefs.h>.
62353         (getauxval): Use unsigned long int.
62354
62355 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62356
62357         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62358
62359 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62360
62361         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
62362         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
62363         __alignof__ (long double).
62364
62365 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62366
62367         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62368
62369 2012-05-20  Richard Henderson  <rth@twiddle.net>
62370
62371         * misc/getauxval.c: New file.
62372         * misc/sys/auxv.h: New file.
62373         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
62374         (routines): Add getauxval.
62375         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
62376         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
62377         * elf/dl-sysdep.c (_dl_auxv): Remove.
62378         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
62379         * elf/dl-support.c (_dl_auxv): New variable.
62380         (_dl_aux_init): Initialize it.
62381         * manual/startup.texi (Auxiliary Vector): New node.
62382         * sysdeps/generic/bits/hwcap.h: New file.
62383         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
62384         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
62385         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
62386         * sysdeps/sparc/sysdep.h: ... here.  Include it.
62387         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
62388         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
62389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62390         Update.
62391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
62392         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
62393         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
62394         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
62395         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62396         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62397         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
62398         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
62399
62400 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62401
62402         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62403
62404 2012-05-19  David S. Miller  <davem@davemloft.net>
62405
62406         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62407
62408 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62409
62410         [BZ #14123]
62411         * math/s_ccosh.c: Include <float.h>
62412         (__ccosh): Avoid internal overflow calculating sinh and cosh
62413         values before multiplying by sin and cos values.
62414         * math/s_ccoshf.c: Likewise.
62415         * math/s_ccoshl.c: Likewise.
62416         * math/s_csin.c: Likewise.
62417         * math/s_csinf.c: Likewise.
62418         * math/s_csinl.c: Likewise.
62419         * math/s_csinh.c: Likewise.
62420         * math/s_csinhf.c: Likewise.
62421         * math/s_csinhl.c: Likewise.
62422         * math/libm-test.inc (ccos_test): Add more tests.
62423         (ccosh_test): Likewise.
62424         (csin_test): Likewise.
62425         (csinh_test): Likewise.
62426         * sysdeps/i386/fpu/libm-test-ulps: Update.
62427         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62428
62429 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
62430
62431         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
62432         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
62433
62434         * sysdeps/x86_64/x32/_itoa.h: Add comment.
62435
62436 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62437
62438         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
62439         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
62440         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62441         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62442         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62443         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62444         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62445         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62446         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62447         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62448         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62449         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62450         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62451         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62452         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62453         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62454         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62455         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62456         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62457         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62458         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62459         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62460         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62461         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62462         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62463         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62464         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62465         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62466         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62467         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62468         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62469
62470 2012-05-18  Andreas Jaeger  <aj@suse.de>
62471
62472         * csu/.gitignore: Delete.
62473
62474 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62475
62476         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62477         (timex): Use __syscall_slong_t.
62478
62479 2012-05-18  Andreas Jaeger  <aj@suse.de>
62480             Carlos O'Donell  <carlos_odonell@mentor.com>
62481
62482         * manual/install.texi (Configuring and compiling): Update
62483         description about files modified in the source directory.
62484         * INSTALL: Regenerated.
62485
62486 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62487
62488         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62489         value.  Use "or" to set return value to -1.
62490         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62491         negate return value.
62492
62493 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62494
62495         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62496         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62497         failure if the compiler has Graphite support disabled.
62498         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62499         Likewise.
62500         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62501         (CFLAGS-memmove.c): Likewise.
62502         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62503         Likewise.
62504
62505 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62506
62507         * sysdeps/x86_64/x32/_itoa.h: New file.
62508
62509         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62510         getdents system call only if kernel and user dirents have the
62511         same d_ino and d_off.
62512
62513         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62514         LLONG_MAX != LONG_MAX.
62515         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62516         (_fitoa_word): Likewise.
62517
62518         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62519         years.
62520         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62521         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62522         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62523
62524         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62525         include <bits/wordsize.h>.  Check __x86_64__ instead of
62526         __WORDSIZE.
62527         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62528         if __x86_64__ is defined.  Use anonymous union on fpstate.
62529
62530         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62531         anonymous union.
62532
62533 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62534
62535         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62536         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62537         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62538         Refer to _rtld_local_ro instead of _rtld_global_ro.
62539         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62540         Likewise.
62541         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62542         Likewise.
62543         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62544         Likewise.
62545         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62546         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62547         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62548
62549         [BZ #10882]
62550         * sysdeps/powerpc/powerpc32/dl-machine.c
62551         (__elf_machine_runtime_setup) [PROF]: Don't reference
62552         _dl_prof_resolve.
62553
62554 2012-05-18  Andreas Jaeger  <aj@suse.de>
62555
62556         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62557         function only available for GCCs before 3.4 since GCC 3.4
62558         introduced a builtin.
62559         (lrint): Likewise.
62560         (llrintf): Likewise.
62561         (llrint): Likewise.
62562         (fmaxf): Likewise.
62563         (fmax): Likewise.
62564         (fminf): Likewise.
62565         (fmin): Likewise.
62566         (rint): Likewise.
62567         (rintf): Likewise.
62568         (nearbyint): Likewise.
62569         (nearbyintf): Likewise.
62570         (ceil): Likewise.
62571         (ceilf): Likewise.
62572         (floor): Likewise.
62573         (floorf): Likewise.
62574
62575 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62576
62577         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62578         on both fields and cast pointer to __syscall_ulong_t.
62579
62580         * bits/types.h (__fsword_t): New type.
62581         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62582         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62583         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62584         (__FSWORD_T_TYPE): Likewise.
62585         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62586         (__FSWORD_T_TYPE): Likewise.
62587         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62588         (__FSWORD_T_TYPE): Likewise.
62589         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62590         (__FSWORD_T_TYPE): Likewise.
62591         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62592         __SWORD_TYPE with __fsword_t.
62593         (statfs64): Likewise.
62594
62595 2012-05-17  David S. Miller  <davem@davemloft.net>
62596
62597         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62598
62599 2012-05-17  Andreas Jaeger  <aj@suse.de>
62600
62601         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62602         warning.
62603
62604 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62605
62606         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62607
62608 2012-05-17  Andreas Jaeger  <aj@suse.de>
62609
62610         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62611         when it is used.
62612
62613 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62614
62615         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62616
62617 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62618
62619         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62620         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62621
62622 2012-05-17  Andreas Jaeger  <aj@suse.de>
62623             Carlos O'Donell  <carlos_odonell@mentor.com>
62624
62625         [BZ #14059]
62626         * sysdeps/x86_64/multiarch/init-arch.h
62627         (bit_YMM_Usable): Rename to...
62628         (bit_AVX_Usable): ... this.
62629         (bit_FMA4_Usable): New macro.
62630         (bit_XMM_state): New macro.
62631         (bit_YMM_state): New macro.
62632         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62633         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62634         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62635         (CPUID_OSXSAVE): New macro.
62636         (CPUID_AVX): New macro.
62637         (CPUID_FMA4): New macro.
62638         (index_YMM_Usable): Rename to...
62639         (index_AVX_Usable): ... this.
62640         (HAS_AVX): Use HAS_ARCH_FEATURE.
62641         (HAS_FMA4): Likewise.
62642         (HAS_YMM_USABLE): Remove.
62643         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62644         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62645         are present.
62646         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62647         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62648         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62649         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62650         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62651
62652 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62653
62654         * math/libm-test.c: Support platforms without multiple rounding modes.
62655         * math/bug-nextafter.c: Support platforms without FP exceptions.
62656         * math/bug-nexttoward.c: Likewise.
62657         * math/test-fenv.c: Likewise.
62658         * math/test-misc.c: Likewise.
62659         * stdlib/bug-getcontext.c: Likewise.
62660
62661 2012-05-17  Andreas Jaeger  <aj@suse.de>
62662
62663         * manual/examples/search.c (critter_cmp): Change signature to
62664         avoid warnings.
62665         * manual/string.texi (Collation Functions): Likewise.
62666
62667 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62668
62669         * bits/types.h: Fold copyright years.
62670         * bits/typesizes.h: Likewise.
62671         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62672         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62673         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62674         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62675         * time/time.h: Likewise.
62676
62677 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62678
62679         [BZ #208]
62680         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62681         in instead of returning them.  Return void.
62682         (__libc_mallinfo): Accumulate over all arenas.
62683         (__malloc_stats): Adjust for change in int_mallinfo interface.
62684
62685 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62686
62687         [BZ #10375]
62688         * configure.in (NM): Add AC_CHECK_TOOL for it.
62689         (libc_extra_cflags): New substituted variable.
62690         Check for -fstack-protector being used implicitly.
62691         * configure: Regenerated.
62692         * config.make.in (config-extra-cflags): New variable,
62693         gets @libc_extra_cflags@.
62694         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62695
62696         [BZ #10375]
62697         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62698         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62699         * configure: Regenerated.
62700         * config.make.in (CPPUNDEFS): New substituted variable.
62701         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62702         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62703         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62704
62705 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62706
62707         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62708         (mq_attr): Use __syscall_slong_t.
62709
62710 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62711
62712         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62713         Check __x86_64__ instead of __WORDSIZE.
62714         (_STAT_VER_LINUX): Likewise.
62715         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62716         __syscall_ulong_t and __syscall_slong_t.
62717         (stat64): Likewise.
62718
62719 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62720
62721         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62722
62723 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62724
62725         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62726
62727 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62728
62729         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62730         __syscall_ulong_t.
62731
62732         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62733         include <bits/wordsize.h>.  Check __x86_64__ instead of
62734         __WORDSIZE.
62735         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62736         defined.
62737         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62738
62739         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62740         include <bits/wordsize.h>.  Check __x86_64__ instead of
62741         __WORDSIZE.
62742         (user_regs_struct): Use "__extension__ unsigned long long"
62743         instead of "unsigned long" if __x86_64__ is defined.
62744         (user): Likewise.  Pad after pointer field if __ILP32__ is
62745         defined.
62746
62747 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62748
62749         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62750         versions 5 to 9.
62751         * configure: Regenerated.
62752         * manual/install.texi (texinfo): Increase version requirement to
62753         4.5 or later.
62754         * INSTALL: Regenerated.
62755
62756         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62757
62758 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62759
62760         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62761
62762         * sysdeps/x86_64/x32/ffs.c: New file.
62763
62764         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62765         __syscall_ulong_t.
62766         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62767         defined.  Use __syscall_ulong_t.
62768         (shminfo): Use __syscall_ulong_t.
62769         (shm_info): Likewise.
62770
62771         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62772         __syscall_ulong_t.
62773
62774         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62775         <bits/wordsize.h>.
62776         (msgqnum_t): Use __syscall_ulong_t.
62777         (msglen_t): Likewise.
62778         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62779         __syscall_ulong_t.
62780
62781         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62782         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62783
62784         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62785
62786         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62787         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62788
62789         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62790         __syscall_slong_t.
62791
62792         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62793         include <bits/wordsize.h>.  Check __x86_64__ instead of
62794         __WORDSIZE.
62795
62796         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62797         "unsigned long long int" if __x86_64__ is defined.
62798         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62799
62800         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62801         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62802         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62803
62804         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62805         <stdint.h>.
62806         (GET_PC): Cast to uintptr_t first.
62807         (GET_FRAME): Likewise.
62808         (GET_STACK): Likewise.
62809
62810         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62811         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62812         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62813         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62814         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62815         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62816         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62817         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62818         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62819         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62820         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62821         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62822         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62823         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62824         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62825         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62826         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62827         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62828         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62829         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62830         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62831         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62832         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62833         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62834         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62835         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62836         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62837         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62838         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62839
62840 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62841
62842         * Makerules (+depfiles): Also collect depfiles from .oS in
62843         $(extra-objs).
62844         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62845         .oS, $(libnldbl-routines)).
62846
62847         * Makerules (native-compile-mkdep-flags): Define.
62848         * sunrpc/Makefile (extra-objs): Add $(addprefix
62849         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62850         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62851         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62852         calling $(make-target-directory).
62853
62854 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62855
62856         * bits/types.h (__snseconds_t): Removed.
62857         * time/time.h (struct timespec): Replace __snseconds_t with
62858         __syscall_slong_t.
62859         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62860         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62861         Likewise.
62862         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62863         (__SNSECONDS_T_TYPE): Likewise.
62864         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62865         (__SNSECONDS_T_TYPE): Likewise.
62866         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62867         (__SNSECONDS_T_TYPE): Likewise.
62868
62869 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62870
62871         * sysdeps/mach/hurd/bits/typesizes.h
62872         (__SYSCALL_SLONG_TYPE): New macro.
62873         (__SYSCALL_ULONG_TYPE): Likewise.
62874
62875 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62876
62877         * bits/types.h (__syscall_slong_t): New type.
62878         (__syscall_ulong_t): Likewise.
62879
62880         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62881         (__SYSCALL_ULONG_TYPE): Likewise.
62882         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62883         (__SYSCALL_SLONG_TYPE): Likewise.
62884         (__SYSCALL_ULONG_TYPE): Likewise.
62885         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62886         (__SYSCALL_SLONG_TYPE): Likewise.
62887         (__SYSCALL_ULONG_TYPE): Likewise.
62888         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62889         (__SYSCALL_SLONG_TYPE): Likewise.
62890         (__SYSCALL_ULONG_TYPE): Likewise.
62891
62892 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62893
62894         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62895         Add sigaltstack-offsets.sym.
62896         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62897         <sigaltstack-offsets.h>.
62898         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62899         longjmp_msg pointer.
62900         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62901         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62902         signal stack.
62903         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
62904
62905 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62906
62907         * elf/stackguard-macros.h: Remove file.
62908         * sysdeps/generic/stackguard-macros.h: New file.
62909         * sysdeps/i386/stackguard-macros.h: Likewise.
62910         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
62911         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
62912         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
62913         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
62914         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
62915         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
62916         * sysdeps/x86_64/stackguard-macros.h: Likewise.
62917         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
62918         <elf/stackguard-macros.h>.
62919
62920         [BZ #14109]
62921         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
62922         __aligned__ in attribute.
62923         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
62924         (gregset_t): Likewise.
62925
62926 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62927
62928         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
62929         * sysdeps/x86_64/64/Implies-after: Here.  New file.
62930         * sysdeps/x86_64/x32/Implies-after: New file.
62931
62932 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62933
62934         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
62935         and access return value for _dl_profile_fixup.  Use R10_LP to
62936         load frame size.
62937
62938 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62939
62940         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
62941
62942 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62943
62944         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
62945         * sysdeps/x86_64/x32/sysdep.h: New file.
62946
62947 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62948
62949         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
62950         * sysdeps/x86_64/setjmp.S: Likewise.
62951
62952 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62953
62954         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
62955         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
62956         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
62957         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
62958         remove unused global constant.
62959
62960 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
62961
62962         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
62963         include of <not-cancel.h>.
62964
62965 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62966
62967         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
62968
62969 2012-05-15  Jeff Law  <law@redhat.com>
62970             Andreas Jaeger  <aj@suse.de>
62971
62972         [BZ #13594]
62973         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
62974         out from...
62975         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
62976         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
62977         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
62978         code changing __hst_map_handle.map.
62979
62980 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62981
62982         * configure.in (sysnames): Look for Implies-before and Implies-after
62983         files.
62984         * configure: Regenerated.
62985
62986 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62987
62988         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
62989         8-byte data alignment with LP_SIZE alignment.
62990
62991 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62992
62993         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
62994         into R10_LP.
62995
62996 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62997
62998         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
62999
63000 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63001
63002         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
63003         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
63004         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
63005         Likewise.
63006         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
63007
63008 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63009
63010         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
63011         (stackinfo_sub_sp): Likewise.
63012
63013 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63014
63015         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
63016         RAX_LP.
63017
63018 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63019
63020         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
63021         into R*_LP.
63022
63023 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63024
63025         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
63026         sizes into R*_LP.
63027
63028 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63029
63030         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
63031
63032 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63033
63034         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
63035         into R11_LP and load __x86_64_shared_cache_size_half into
63036         R8_LP.
63037
63038 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63039
63040         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
63041         R8_LP.
63042
63043 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63044
63045         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
63046         logb for POWER7.
63047         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
63048         logbf for POWER7.
63049         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
63050         logbl for POWER7.
63051         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
63052         powerpc32/power7/fpu/s_logb.c via #include.
63053         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
63054         powerpc32/power7/fpu/s_logbf.c via #include.
63055         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
63056         powerpc32/power7/fpu/s_logbl.c via #include.
63057
63058 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63059
63060         * README.libm: Remove file.
63061
63062 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63063
63064         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
63065         count for x32.  Use R*_LP and omit operand-size suffix.
63066
63067 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63068
63069         * shlib-versions: Move x86_64-.*-linux.* entries to ...
63070         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
63071         * sysdeps/x86_64/x32/shlib-versions: New file.
63072
63073 2012-05-14  Roland McGrath  <roland@hack.frob.com>
63074
63075         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
63076         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
63077         Use _dl_fatal_printf instead.
63078
63079 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63080
63081         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
63082         set if not set by the user.  Do not allow for being unset.
63083         * sysdeps/unix/sysv/linux/configure: Regenerated.
63084
63085 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63086
63087         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
63088         the `q' suffix from lea and replace .quad with ASM_ADDR.
63089
63090 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63091
63092         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
63093         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
63094         instead of $17.
63095         (PTR_DEMANGLE): Likewise.
63096
63097 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63098
63099         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
63100         (LP_OP): Likewise.
63101         (ASM_ADDR): Likewise.
63102         (RAX_LP): Likewise.
63103         (RBP_LP): Likewise.
63104         (RBX_LP): Likewise.
63105         (RCX_LP): Likewise.
63106         (RDI_LP): Likewise.
63107         (RSI_LP): Likewise.
63108         (RSP_LP): Likewise.
63109         (R8_LP): Likewise.
63110         (R9_LP): Likewise.
63111         (R10_LP): Likewise.
63112         (R10_LP): Likewise.
63113         (R11_LP): Likewise.
63114         (R12_LP): Likewise.
63115         (R13_LP): Likewise.
63116         (R14_LP): Likewise.
63117         (R15_LP): Likewise.
63118
63119 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63120
63121         * sysdeps/x86_64/x32/dl-machine.h: New file.
63122
63123 2012-05-14  Andreas Jaeger  <aj@suse.de>
63124
63125         * manual/Makefile (subdir): Remove export of subdir.
63126         (all): Remove target.
63127         (.PHONY): Remove all from list.
63128         (mkinstalldirs): Remove.
63129         (.PHONY): Remove installdirs from list.
63130         ($(inst_infodir)/libc.info): Use make-target-directory.
63131         (installdirs): Remove.
63132         (subdir_%): Remove.
63133         (glibc-targets): Remove.
63134         (lib): Remove.
63135         (stubs): Remove.
63136         ($(objpfx)stubs ../po/manual.pot): Remove.
63137         ($(objpfx)stamp%): Remove.
63138         (make-target-directory): Remove.
63139         (subdir_install): Remove.
63140         (routines): Remove.
63141         (aux): Remove.
63142         (sources): Remove.
63143         (objects): Remove.
63144         (headers): Remove.
63145
63146         [BZ #13750]
63147         * manual/.gitignore: Remove, it's not needed anymore.
63148         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
63149         all files in it.
63150         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
63151         directory.
63152         (texis): Renamed to $(objpfx)texis.
63153         (texis-path): New, contains path to generated files.
63154         (chapters.%): Use texis-path for complete path, add extra argument
63155         libc-texinfo.sh.
63156         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
63157         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
63158         (summary,texi, stamp-summary): Use complete path of
63159         files. Generate files in build dir.
63160         (dir-add.texi): Build in build dir.
63161         (libm-err.texi,stamp-libm-err): Likewise.
63162         (version.texi, stamp-version): Likewise.
63163         (.%c.texi): Likewise.
63164         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
63165         (mostlyclean): Remove target.
63166         (realclean): Remove target.
63167         (generated): Add new variable with contents from mostlyclean and
63168         realclean, remove entries duplicated in common-mostlyclean, add
63169         stamp-libm-err and stamp-version.
63170         (generated-dirs): Add libc directory.
63171         ($(inst_infodir)/libc.info): Install files from build dir.
63172
63173         * manual/install.texi (Configuring and compiling): Adjust since
63174         the info files are not part of the tar ball anymore.
63175
63176 2012-05-14  Andreas Jaeger  <aj@suse.de>
63177
63178         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
63179         variable.
63180
63181 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63182
63183         [BZ #13717]
63184         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
63185         to 2.2.0 where earlier.
63186         * sysdeps/unix/sysv/linux/configure: Regenerated.
63187         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
63188         Remove conditional code.
63189         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
63190         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
63191         Remove conditional code.
63192         [!__NR_lchown]: Likewise.
63193         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63194         [__NR_lchown]: Likewise.
63195         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
63196         comment referencing __ASSUME_LCHOWN_SYSCALL.
63197         * sysdeps/unix/sysv/linux/i386/sigaction.c
63198         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63199         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63200         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
63201         Remove conditional code.
63202         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
63203         (__protocol_available): Remove #if 0 code.
63204         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
63205         conditional code.
63206         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
63207         * sysdeps/unix/sysv/linux/kernel-features.h
63208         (__ASSUME_GETCWD_SYSCALL): Don't define.
63209         (__ASSUME_REALTIME_SIGNALS): Likewise.
63210         (__ASSUME_PREAD_SYSCALL): Likewise.
63211         (__ASSUME_PWRITE_SYSCALL): Likewise.
63212         (__ASSUME_POLL_SYSCALL): Likewise.
63213         (__ASSUME_LCHOWN_SYSCALL): Likewise.
63214         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
63215         non-SPARC.
63216         (__ASSUME_SIOCGIFNAME): Don't define.
63217         (__ASSUME_MSG_NOSIGNAL): Likewise.
63218         (__ASSUME_SENDFILE): Define unconditionally.
63219         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
63220         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
63221         conditional code.
63222         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
63223         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
63224         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63225         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63226         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
63227         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63228         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
63230         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63231         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
63233         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63234         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
63236         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63237         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
63239         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63240         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
63242         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63243         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
63245         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63246         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
63248         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63249         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
63251         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63252         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63253         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
63254         Remove conditional code.
63255         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63256         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63257         Remove conditional code.
63258         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63259         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
63260         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
63261         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63262         Remove conditional code.
63263         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63264         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
63265         Remove conditional code.
63266         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63267         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
63268         Remove conditional code.
63269         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63270         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63271         Remove conditional code.
63272         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63273         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63274         Remove conditional code.
63275         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63276         * sysdeps/unix/sysv/linux/sh/pwrite64.c
63277         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63278         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63279         * sysdeps/unix/sysv/linux/sigaction.c
63280         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63281         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63282         * sysdeps/unix/sysv/linux/sigpending.c
63283         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63284         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63285         * sysdeps/unix/sysv/linux/sigprocmask.c
63286         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63287         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63288         * sysdeps/unix/sysv/linux/sigsuspend.c
63289         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63290         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63291         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
63292         (__libc_missing_rt_sigs): Remove.
63293         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
63294         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
63295         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
63296         Remove conditional code.
63297         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
63298         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
63299         return 1.
63300         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
63301         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
63302         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
63303         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
63304
63305 2012-05-14  Andreas Jaeger  <aj@suse.de>
63306
63307         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
63308         it's not used in glibc.
63309         (__coshm1): Likewise.
63310         (__acosh1p): Likewise.
63311         (__sgn): Likewise.
63312
63313         * manual/string.texi (Copying and Concatenation): Add missing
63314         variable in concat example.
63315         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
63316
63317 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63318
63319         [BZ #14103]
63320         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
63321         __builtin_clzl with __builtin_clzll.
63322
63323 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63324
63325         [BZ #14104]
63326         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
63327         libc_freeres_ptr.
63328
63329 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63330
63331         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
63332         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
63333         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
63334         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
63335
63336 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
63337
63338         * NEWS: Update ia64 info.
63339
63340 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
63341
63342         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
63343         used as bcopy.
63344
63345 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
63346
63347         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
63348         * sysdeps/unix/syscalls.list (dup3): Likewise.
63349         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
63350         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
63351
63352 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63353
63354         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
63355         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
63356
63357 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63358
63359         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
63360         thread pointer.
63361         (TLS_IE): Use mov/add instead of movq/addq to load thread
63362         pointer.
63363         (TLS_GD_PREFIX): New.
63364         (TLS_GD): Use it.
63365
63366 2012-05-11  David S. Miller  <davem@davemloft.net>
63367
63368         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
63369         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
63370         (_FPU_SETCW): Likewise.
63371
63372 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63373
63374         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
63375         is 32-byte aligned.
63376
63377 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
63378
63379         [BZ #11837]
63380         * iconvdata/gb18030.c: Update tables.
63381         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
63382         characters specially.
63383         (BODY for TO_LOOP): Add encoding of missing ranges.
63384
63385 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
63386
63387         [BZ #13673]
63388         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
63389         * sysdeps/mach/hurd/dup3.c: Likewise.
63390         * sysdeps/mach/hurd/readlinkat.c: Likewise.
63391         * sysdeps/powerpc/memmove.c:: Likewise.
63392
63393 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63394
63395         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
63396         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
63397
63398 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63399
63400         * elf/elf.h (R_X86_64_RELATIVE64): New.
63401         (R_X86_64_NUM): Updated.
63402         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
63403         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
63404         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
63405         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
63406         tst-quad1pie tst-quad2pie
63407         (modules-names): Add tst-quadmod1 tst-quadmod2.
63408         ($(objpfx)tst-quad1): New dependency.
63409         ($(objpfx)tst-quad2): Likewise.
63410         ($(objpfx)tst-quad1pie): Likewise.
63411         ($(objpfx)tst-quad2pie): Likewise.
63412         * sysdeps/x86_64/tst-quad1.c: New file.
63413         * sysdeps/x86_64/tst-quad1pie.c: New file.
63414         * sysdeps/x86_64/tst-quad2.c: Likewise.
63415         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
63416         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
63417         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
63418         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
63419         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
63420
63421 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63422
63423         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
63424         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
63425         * streams/stropts.h (t_scalar_t): Define type.
63426
63427         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
63428         (_PATH_PRESERVE): Set to "/var/lib".
63429         (_PATH_RWHODIR): Set to "/var/spool/rwho".
63430
63431         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
63432         instead of int.
63433
63434         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
63435         if __dir_mkfile succeeded.
63436
63437         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
63438         checking for _hurd_dtablesize.  Unlock it right after having
63439         finished _hurd_dtable allocation.
63440
63441 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63442
63443         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63444         * sysdeps/mach/hurd/configure: Regenerated.
63445         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63446         special-casing to...
63447         * sysdeps/gnu/configure.in: ... this new file.
63448         * sysdeps/unix/sysv/linux/configure: Regenerated.
63449         * sysdeps/gnu/configure: New generated file.
63450
63451         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63452         for Linux: use nsec instead of usec, as well as:
63453         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63454         members of type struct timespec.
63455         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63456         New macros.
63457         (struct stat64): Likewise.
63458         (_STATBUF_ST_NSEC): New macro.
63459         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63460
63461         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63462         __strtoul_internal rather than strtoul.
63463
63464 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63465
63466         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63467         and reject them.
63468
63469 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63470
63471         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63472         which preserves existing values.
63473         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63474
63475 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63476
63477         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63478         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63479         greater than FD_SETSIZE.
63480
63481 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63482
63483         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63484         allocated, call __vm_protect to finish enabling the existing space, and
63485         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63486         allocate the remainder.
63487
63488 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63489
63490         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63491         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63492
63493 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63494
63495         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63496         sysdeps/mach/hurd/readlink.c.
63497
63498         * posix/tst-sysconf.c (posix_options): Only use
63499         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63500         _POSIX_SYNCHRONIZED_IO when they are defined
63501         * sysdeps/mach/hurd/bits/posix_opt.h:
63502         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63503         (_XOPEN_REALTIME): Undefine macro.
63504         (_XOPEN_REALTIME_THREADS): Undefine macro.
63505         (_XOPEN_SHM): Undefine macro.
63506         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63507         macro to -1.
63508         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63509         macro to -1.
63510         (_POSIX_ASYNC_IO): Undefine macro.
63511         (_POSIX_PRIORITIZED_IO): Undefine macro.
63512         (_POSIX_SPIN_LOCKS): Define macro to -1.
63513
63514         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63515         SA_NODEFER, SA_RESETHAND.
63516         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63517         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63518         F_DUPFD_CLOEXEC.
63519
63520 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63521
63522         * elf/Makefile (pldd-modules): Define unconditionally.
63523
63524 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63525
63526         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63527
63528 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63529
63530         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63531         Return ENOENT when name is empty.
63532         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63533
63534 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63535
63536         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63537
63538         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63539
63540 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63541
63542         Fix mlock in all cases except non-readable pages.
63543         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63544         instead of VM_PROT_ALL as parameter to __vm_wire function.
63545
63546         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63547         (__mkdir): When path is `/', just fail with EEXIST.
63548         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63549
63550 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63551
63552         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63553         <sys/uio.h> (for writev).
63554         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63555         and <sys/param.h> (for MIN).
63556
63557 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63558
63559         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63560         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63561         if interrupted.
63562
63563 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63564
63565         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63566         Depend on against $(link-rpcuserlibs).
63567
63568 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63569
63570         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63571         (__libc_stack_end): Do not use attribute_relro.
63572         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63573         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63574         to libthread-provided value.
63575         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63576         attribute_relro.
63577
63578 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63579
63580         [BZ #3748]
63581         * bits/libc-lock.h (__libc_once_get): New macro.
63582         * sysdeps/mach/bits/libc-lock.h: Likewise.
63583         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63584         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63585         instead of using implementation details.
63586
63587         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63588         * libio/freopen.c: Likewise.
63589         * libio/freopen64.c: Likewise.
63590         * misc/syslog.c: Likewise.
63591         * nscd/connections.c: Likewise.
63592         * nscd/netgroupcache.c: Likewise.
63593         * sysdeps/posix/getcwd.c: Likewise.
63594
63595 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63596
63597         * math/w_ilogbf.c: Add #include <limits.h>.
63598
63599 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63600
63601         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63602         path instead of returning without unlocking.
63603
63604         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63605         immediate-write ioctls.
63606         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63607
63608 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63609
63610         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63611         __builtin_frame_address instead of making assumptions about the
63612         location of the return address relative to DATA.  Force early load of
63613         the return address.
63614         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63615         __builtin_frame_address.
63616
63617         dup3 for GNU Hurd.
63618         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63619         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63620         implement dup3 and do some further code clean-ups.
63621         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63622         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63623
63624 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63625
63626         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63627
63628         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63629         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63630         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63631         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63632         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63633         d->port.lock.
63634
63635         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63636         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63637         when handler == SIG_ERR, not when handler != SIG_ERR.
63638
63639 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63640
63641         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63642         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63643         definitions.
63644
63645         accept4 for GNU Hurd.
63646         * include/sys/socket.h (__libc_accept4): New prototype.
63647         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63648         to implement __libc_accept4.
63649         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63650         __libc_accept4.
63651         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63652
63653         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63654         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63655         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63656         signal-defines.sym.
63657
63658 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63659
63660         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63661
63662 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63663
63664         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63665         assertion on O_CLOEXEC flag.
63666         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63667         * hurd/intern-fd.c: Likewise.
63668         * hurd/port2fd.c: Likewise.
63669
63670 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63671
63672         [BZ #3906]
63673         * bits/in.h (IPV6_PKTINFO): Define new macro.
63674         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63675
63676 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63677
63678         [BZ #13954]
63679         [BZ #13955]
63680         [BZ #13956]
63681         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63682         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63683         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63684         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63685         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63686         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63687         * math/libm-test.inc (logb_test) : Additional logb tests.
63688
63689 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63690             Andreas Jaeger  <aj@suse.de>
63691
63692         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63693         * configure: Regenerated.
63694         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63695         * config.make.in (link-obsolete-rpc): New substituted variable.
63696         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63697         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63698         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63699         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63700         so that libc.a contains the symbols.
63701         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63702         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63703         * sunrpc/auth_none.c: Likewise.
63704         * sunrpc/auth_unix.c: Likewise.
63705         * sunrpc/authdes_prot.c: Likewise.
63706         * sunrpc/authuxprot.c: Likewise.
63707         * sunrpc/clnt_gen.c: Likewise.
63708         * sunrpc/clnt_perr.c: Likewise.
63709         * sunrpc/clnt_raw.c: Likewise.
63710         * sunrpc/clnt_simp.c: Likewise.
63711         * sunrpc/clnt_tcp.c: Likewise.
63712         * sunrpc/clnt_udp.c: Likewise.
63713         * sunrpc/clnt_unix.c: Likewise.
63714         * sunrpc/des_crypt.c: Likewise.
63715         * sunrpc/des_soft.c: Likewise.
63716         * sunrpc/get_myaddr.c: Likewise.
63717         * sunrpc/key_call.c: Likewise.
63718         * sunrpc/key_prot.c: Likewise.
63719         * sunrpc/netname.c: Likewise.
63720         * sunrpc/pm_getmaps.c: Likewise.
63721         * sunrpc/pm_getport.c: Likewise.
63722         * sunrpc/pmap_clnt.c: Likewise.
63723         * sunrpc/pmap_prot.c: Likewise.
63724         * sunrpc/pmap_prot2.c: Likewise.
63725         * sunrpc/pmap_rmt.c: Likewise.
63726         * sunrpc/publickey.c: Likewise.
63727         * sunrpc/rpc_cmsg.c: Likewise.
63728         * sunrpc/rpc_common.c: Likewise.
63729         * sunrpc/rpc_dtable.c: Likewise.
63730         * sunrpc/rpc_prot.c: Likewise.
63731         * sunrpc/rpc_thread.c: Likewise.
63732         * sunrpc/rtime.c: Likewise.
63733         * sunrpc/svc.c: Likewise.
63734         * sunrpc/svc_auth.c: Likewise.
63735         * sunrpc/svc_raw.c: Likewise.
63736         * sunrpc/svc_run.c: Likewise.
63737         * sunrpc/svc_tcp.c: Likewise.
63738         * sunrpc/svc_udp.c: Likewise.
63739         * sunrpc/svc_unix.c: Likewise.
63740         * sunrpc/svcauth_des.c: Likewise.
63741         * sunrpc/xcrypt.c: Likewise.
63742         * sunrpc/xdr.c: Likewise.
63743         * sunrpc/xdr_array.c: Likewise.
63744         * sunrpc/xdr_float.c: Likewise.
63745         * sunrpc/xdr_intXX_t.c: Likewise.
63746         * sunrpc/xdr_mem.c: Likewise.
63747         * sunrpc/xdr_rec.c: Likewise.
63748         * sunrpc/xdr_ref.c: Likewise.
63749         * sunrpc/xdr_sizeof.c: Likewise.
63750         * sunrpc/xdr_stdio.c: Likewise.
63751
63752 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63753
63754         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63755         change.  Update copyright years.
63756
63757 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63758
63759         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63760
63761 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63762             Joseph Myers  <joseph@codesourcery.com>
63763             Paul Pluzhnikov  <ppluzhnikov@google.com>
63764
63765         [BZ #14012]
63766         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63767         requiring rpcgen.
63768         [cross-compiling] (extra-libs): Likewise.
63769         [cross-compiling] (extra-libs-others): Likewise.
63770         [cross-compiling] (librpcsvc-routines): Likewise.
63771         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63772         [cross-compiling] (omit-deps): Likewise.
63773         (sunrpc-CPPFLAGS): New variable.
63774         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63775         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63776         (cross-rpcgen-objs): New variable.
63777         (extra-objs): Append $(cross-rpcgen-objs).
63778         ($(cross-rpcgen-objs)): New rule.
63779         ($(objpfx)cross-rpcgen): Likewise.
63780         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63781         comment.
63782         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63783         ($(objpfx)x%.stmp): Likewise.
63784         * sunrpc/proto.h [IS_IN_build] (_): Define.
63785         [IS_IN_build] (_libc_intl_domainname): Likewise.
63786
63787 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63788
63789         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63790         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63791         and R_X86_64_TPOFF64.
63792
63793 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63794
63795         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63796         sysdeps/unix/sysv/syscalls.list.
63797         (stime): Likewise.
63798         (utime): Likewise.
63799         * sysdeps/unix/sysv/syscalls.list: Remove file.
63800
63801 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63802
63803         [BZ #3440]
63804         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63805         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63806         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63807         (__LC_IDENTIFICATION): Make these macros useful in #if
63808         expressions, as required by C99.
63809
63810 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63811
63812         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63813         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63814         after this.
63815
63816 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63817
63818         * stdlib/longlong.h: Updated from GCC.
63819
63820 2012-05-09  Andreas Jaeger  <aj@suse.de>
63821
63822         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63823         default is first entry.
63824         (run_mode): Set type.
63825         (main): Remove informal message about syslog.
63826         (options): Fix typo.
63827
63828         [BZ #14053]
63829         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63830         to asm.
63831         (lrint): Likewise.
63832         (llrintf): Likewise.
63833         (llrint): Likewise.
63834         (rint): Likewise.
63835         (rintf): Likewise.
63836         (nearbyint): Likewise.
63837         (nearbyintf): Likewise.
63838
63839 2012-05-09  Andreas Jaeger  <aj@suse.de>
63840             Pedro Alves  <palves@redhat.com>
63841
63842         * nscd/nscd.c (run_mode): Use enum.
63843         (main): Cleanup coding style issue.
63844
63845 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63846             Andreas Jaeger  <aj@suse.de>
63847
63848         * nscd/nscd.c (go_background): Replaced with...
63849         (run_mode): ... this.
63850         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63851         (options): Add -F --foreground.
63852         (main): Implement it.
63853         (parse_opt): Parse it.
63854
63855 2012-05-09  Andreas Jaeger  <aj@suse.de>
63856
63857         [BZ #14083]
63858         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63859         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63860         -Wconversion warning.
63861         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63862         Likewise.
63863
63864 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63865
63866         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63867         == 0.
63868         (LC_ALL): Use macro-int-constant.
63869         (LC_COLLATE): Likewise.
63870         (LC_CTYPE): Likewise.
63871         (LC_MESSAGES): Likewise.
63872         (LC_MONETARY): Likewise.
63873         (LC_NUMERIC): Likewise.
63874         (LC_TIME): Likewise.
63875         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63876         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63877         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63878         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63879         Specify type.
63880         [C99-based standards] (float_t): Expect type.
63881         [C99-based standards] (double_t): Expect type.
63882         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63883         type.
63884         [C99-based standards] (HUGE_VALL): Likewise.
63885         [C99-based standards] (INFINITY): Likewise.
63886         [C99-based standards] (NAN): Likewise.
63887         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63888         [C99-based standards] (FP_NAN): Likewise.
63889         [C99-based standards] (FP_NORMAL): Likewise.
63890         [C99-based standards] (FP_SUBNORMAL): Likewise.
63891         [C99-based standards] (FP_ZERO): Likewise.
63892         [C99-based standards] (FP_FAST_FMA): Use
63893         optional-macro-int-constant.  Specify type.  Require == 1.
63894         [C99-based standards] (FP_FAST_FMAF): Likewise.
63895         [C99-based standards] (FP_FAST_FMAL): Likewise.
63896         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63897         [C99-based standards] (FP_ILOGBNAN): Likewise.
63898         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63899         Specify type.
63900         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63901         [C99-based standards] (math_errhandling): Specify type.
63902         [ISO99 || ISO11] (signgam): Do not allow.
63903         [non-C99-based standards] (copysignf): Do not allow.
63904         [non-C99-based standards] (exp2f): Likewise.
63905         [non-C99-based standards] (log2f): Likewise.
63906         [non-C99-based standards] (modff): Allow.
63907         [non-C99-based standards] (erff): Do not allow.
63908         [non-C99-based standards] (erfcf): Likewise.
63909         [non-C99-based standards] (gammaf): Likewise.
63910         [non-C99-based standards] (hypotf): Likewise.
63911         [non-C99-based standards] (j0f): Likewise.
63912         [non-C99-based standards] (j1f): Likewise.
63913         [non-C99-based standards] (jnf): Likewise.
63914         [non-C99-based standards] (lgammaf): Likewise.
63915         [non-C99-based standards] (tgammaf): Likewise.
63916         [non-C99-based standards] (y0f): Likewise.
63917         [non-C99-based standards] (y1f): Likewise.
63918         [non-C99-based standards] (ynf): Likewise.
63919         [non-C99-based standards] (isnanf): Likewise.
63920         [non-C99-based standards] (acoshf): Likewise.
63921         [non-C99-based standards] (asinhf): Likewise.
63922         [non-C99-based standards] (atanhf): Likewise.
63923         [non-C99-based standards] (cbrtf): Likewise.
63924         [non-C99-based standards] (expm1f): Likewise.
63925         [non-C99-based standards] (ilogbf): Likewise.
63926         [non-C99-based standards] (log1pf): Likewise.
63927         [non-C99-based standards] (logbf): Likewise.
63928         [non-C99-based standards] (nextafterf): Likewise.
63929         [non-C99-based standards] (remainderf): Likewise.
63930         [non-C99-based standards] (rintf): Likewise.
63931         [non-C99-based standards] (scalbf): Likewise.
63932         [non-C99-based standards] (copysignl): Likewise.
63933         [non-C99-based standards] (exp2l): Likewise.
63934         [non-C99-based standards] (log2l): Likewise.
63935         [non-C99-based standards] (modfl): Allow.
63936         [non-C99-based standards] (erfl): Do not allow.
63937         [non-C99-based standards] (erfcl): Likewise.
63938         [non-C99-based standards] (gammal): Likewise.
63939         [non-C99-based standards] (hypotl): Likewise.
63940         [non-C99-based standards] (j0l): Likewise.
63941         [non-C99-based standards] (j1l): Likewise.
63942         [non-C99-based standards] (jnl): Likewise.
63943         [non-C99-based standards] (lgammal): Likewise.
63944         [non-C99-based standards] (tgammal): Likewise.
63945         [non-C99-based standards] (y0l): Likewise.
63946         [non-C99-based standards] (y1l): Likewise.
63947         [non-C99-based standards] (ynl): Likewise.
63948         [non-C99-based standards] (isnanl): Likewise.
63949         [non-C99-based standards] (acoshl): Likewise.
63950         [non-C99-based standards] (asinhl): Likewise.
63951         [non-C99-based standards] (atanhl): Likewise.
63952         [non-C99-based standards] (cbrtl): Likewise.
63953         [non-C99-based standards] (expm1l): Likewise.
63954         [non-C99-based standards] (ilogbl): Likewise.
63955         [non-C99-based standards] (log1pl): Likewise.
63956         [non-C99-based standards] (logbl): Likewise.
63957         [non-C99-based standards] (nextafterl): Likewise.
63958         [non-C99-based standards] (remainderl): Likewise.
63959         [non-C99-based standards] (rintl): Likewise.
63960         [non-C99-based standards] (scalbl): Likewise.
63961         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63962         [non-C99-based standards] (FP_*): Do not allow.
63963         [C99-based standards] (FP_*): Change to
63964         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63965         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63966         allow.
63967         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
63968         (SIG_ERR): Likewise.
63969         [X/Open-based standards] (SIG_HOLD): Likewise.
63970         (SIG_IGN): Likewise.
63971         (SIGABRT): Use macro-int-constant.  Specify type.  Require
63972         positive value.
63973         (SIGFPE): Likewise.
63974         (SIGILL): Likewise.
63975         (SIGINT): Likewise.
63976         (SIGSEGV): Likewise.
63977         (SIGTER): Likewise.
63978         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
63979         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
63980         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
63981         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
63982         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
63983         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
63984         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
63985         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
63986         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
63987         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
63988         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
63989         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
63990         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
63991         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
63992         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
63993         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
63994         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
63995         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
63996         [X/Open-based standards] (SIGTRAP): Likewise.
63997         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
63998         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
63999         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
64000         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
64001         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64002         allow.
64003
64004 2012-05-08  Ian Wienand  <ianw@vmware.com>
64005
64006         [BZ #14080]
64007         * time/tzset.c (__tzset_parse_tz): Update default rules for
64008         daylight time changes in the Energy Policy Act of 2005.
64009
64010 2012-05-09  Andreas Jaeger  <aj@suse.de>
64011
64012         [BZ #13983]
64013         * elf/ldconfig.c (parse_conf): Change string to make clear that
64014         ldconfig only issued a warning if ld.so.conf does not exist.
64015
64016 2012-05-08  David S. Miller  <davem@davemloft.net>
64017
64018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
64019         movxtod instead of popping the value on the stack.
64020
64021         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64022
64023 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
64024
64025         * config.h.in: Add HAVE_ARM_PCS_VFP.
64026
64027 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
64028
64029         [BZ #13979]
64030         * include/features.h: Warn if user requests __FORTIFY_SOURCE
64031         checking but the checks are disabled for any reason.
64032
64033 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
64034
64035         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
64036         and ELF64_R_TYPE with ELFW(R_TYPE).
64037
64038 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
64039
64040         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
64041         (ulimit): Likewise.
64042
64043         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
64044         (settimeofday): Likewise.
64045
64046 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
64047
64048         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
64049         a struct th_u2 inside the union, and move tu_block/tu_code into
64050         a new th_u3 union of tu_block/tu_code inside of that.  Move
64051         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
64052         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
64053         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
64054         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
64055         (th_stuff): Change to th_u1.tu_stuff.
64056         (th_data): Define.
64057         (th_msg): Change to th_u1.th_u2.tu_data.
64058
64059 2012-05-07  David S. Miller  <davem@davemloft.net>
64060
64061         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64062
64063         [BZ #14074]
64064         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
64065         (SETUP_PIC_REG): Use it.
64066         (SETUP_PIC_REG_LEAF): Use it.
64067
64068 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
64069
64070         [BZ #13885]
64071         [BZ #13923]
64072         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64073         USE_AS_EXPM1L.
64074         (EXPL_FINITE): Likewise.
64075         (FLDLOG): Likewise.
64076         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64077         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64078         e_expl.S.
64079         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64080         USE_AS_EXPM1L.
64081         (EXPL_FINITE): Likewise.
64082         (FLDLOG): Likewise.
64083         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64084         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64085         e_expl.S.
64086         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
64087         test of -max_value argument for long double.
64088         * sysdeps/i386/fpu/libm-test-ulps: Update.
64089         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64090
64091 2012-05-06  David S. Miller  <davem@davemloft.net>
64092
64093         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
64094         quad soft-float symbols whose references which are compiler
64095         generated.
64096         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
64097
64098 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
64099
64100         [BZ #13884]
64101         [BZ #13914]
64102         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64103         USE_AS_EXP10L.
64104         (EXPL_FINITE): Likewise.
64105         (FLDLOG): Likewise.
64106         (c0): Likewise.
64107         (c1): Likewise.
64108         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64109         Adjust comments for base varying.
64110         (__expl_finite): Change alias to EXPL_FINITE.
64111         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
64112         e_expl.S.
64113         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
64114         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
64115         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
64116         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
64117         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64118         USE_AS_EXP10L.
64119         (EXPL_FINITE): Likewise.
64120         (FLDLOG): Likewise.
64121         (c0): Likewise.
64122         (c1): Likewise.
64123         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64124         Adjust comments for base varying.
64125         (__expl_finite): Change alias to EXPL_FINITE.
64126         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
64127         tests for bugs.
64128         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64129
64130         [BZ #14064]
64131         * math/libm-test.inc (check_float_internal): Correct ulp
64132         calculation for subnormal expected results.
64133
64134 2012-05-06  Andreas Jaeger  <aj@suse.de>
64135
64136         * Makeconfig (+math-flags): New, set to -frounding-math.
64137         (+cflags): Add +math-flags so that all of glibc gets compiled with
64138         it.
64139
64140         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
64141
64142 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
64143
64144         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
64145         Disable one test.
64146
64147         [BZ #13787]
64148         [BZ #13922]
64149         [BZ #14036]
64150         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
64151         (__ieee754_expl): Allow for and saturate large arguments.
64152         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
64153         (u_threshold): Likewise.
64154         (__exp): Call __ieee754_exp before checking for overflow and
64155         underflow.
64156         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
64157         (u_threshold): Likewise.
64158         (__expf): Call __ieee754_expf before checking for overflow and
64159         underflow.
64160         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
64161         (u_threshold): Likewise.
64162         (__expl): Call __ieee754_expl before checking for overflow and
64163         underflow.
64164         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
64165         (__ieee754_expl): Allow for and saturate large arguments.
64166         * math/libm-test.inc (exp_test): Add another test.  Do not allow
64167         missing overflow exception on overflow.
64168         (expm1_test): Do not allow missing overflow exception on overflow.
64169
64170         * sysdeps/i386/fpu/e_expl.c: Move to ...
64171         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
64172         rather than using inline asm.
64173         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
64174         * sysdeps/x86_64/fpu/e_expl.S: Copy from
64175         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
64176
64177         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
64178         (nice): Likewise.
64179         (poll): Likewise.
64180         (signal): Likewise.
64181         (time): Likewise.
64182         (times): Likewise.
64183
64184 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64185
64186         * sysdeps/unix/syscalls.list (adjtime): Add entry from
64187         sysdeps/unix/common/syscalls.list.
64188         (fchmod): Likewise.
64189         (fchown): Likewise.
64190         (ftruncate): Likewise.
64191         (getrusage): Likewise.
64192         (gettimeofday): Likewise.
64193         (setpgid): Likewise.
64194         (setregid): Likewise.
64195         (setreuid): Likewise.
64196         (sigaction): Likewise.
64197         (truncate): Likewise.
64198         (vhangup): Likewise.
64199         * sysdeps/unix/common/syscalls.list: Remove file.
64200         * sysdeps/unix/bsd/Implies: Don't include unix/common.
64201         * sysdeps/unix/sysv/linux/Implies: Likewise.
64202
64203 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
64204
64205         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
64206         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
64207         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
64208         Moved to ...
64209         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
64210         Here.
64211         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
64212         to ...
64213         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
64214         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
64215         to ...
64216         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
64217         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
64218         to ...
64219         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
64220         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
64221         to ...
64222         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
64223         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
64224         to ...
64225         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
64226         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
64227         to ...
64228         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
64229         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
64230         to ...
64231         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
64232         Here.
64233         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
64234         to ...
64235         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
64236         Here.
64237         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
64238         to ...
64239         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
64240         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
64241         Moved to ...
64242         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
64243         Here.
64244         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
64245         to ...
64246         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
64247
64248 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64249
64250         * sysdeps/unix/common/bits/dirent.h: Remove file.
64251         * sysdeps/unix/common/bits/fcntl.h: Likewise.
64252
64253         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
64254         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
64255         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
64256         * sysdeps/unix/bsd/isatty.c: Likewise.
64257         * sysdeps/unix/bsd/tcdrain.c: Likewise.
64258         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
64259         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
64260
64261 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64262
64263         [BZ #13563]
64264         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
64265         long double comparison inaccuracies.
64266         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
64267         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
64268
64269 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
64270
64271         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
64272         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
64273
64274 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64275
64276         [BZ #14049]
64277         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
64278         nonzero digits before rounding a hex value.
64279         * stdlib/tst-strtod.c (tests): Add another test.
64280
64281 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64282
64283         * sysdeps/s390/fpu/libm-test-ulps: Update.
64284
64285 2012-05-03  Andreas Jaeger  <aj@suse.de>
64286
64287         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
64288         does not get optimized out.
64289         (malloc_opt_barrier): New.
64290
64291 2012-05-03  Andreas Jaeger  <aj@suse.de>
64292             Roland McGrath  <roland@hack.frob.com>
64293
64294         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
64295         intermediate file deletion.
64296         (generated): Add .symlist files.
64297
64298 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
64299
64300         [BZ #13775]
64301         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
64302         Redirect under this condition.
64303         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64304         [__USE_GNU] (__dprintf_chk): Not under this condition.
64305         [__USE_GNU] (__vdprintf_chk): Likewise.
64306         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
64307         under this condition.
64308         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64309         [__USE_XOPEN2K8] (dprintf): Define under this condition.
64310         [__USE_XOPEN2K8] (vdprintf): Likewise.
64311         [__USE_GNU] (__dprintf_chk): Not under this condition.
64312         [__USE_GNU] (__vdprintf_chk): Likewise.
64313         [__USE_GNU] (dprintf): Likewise.
64314         [__USE_GNU] (vdprintf): Likewise.
64315
64316 2012-05-03  Roland McGrath  <roland@hack.frob.com>
64317
64318         * elf/Makefile (common-generated): Set this instead of generated for
64319         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
64320         $(all-built-dso)-derived lists.
64321
64322 2012-05-03  Andreas Jaeger  <aj@suse.de>
64323
64324         * sysdeps/i386/fpu/libm-test-ulps: Update.
64325
64326         * FAQ: Removed.
64327         * FAQ.in: Likewise.
64328         * scripts/gen-FAQ.pl: Likewise.
64329         * manual/install.texi (Installation): Point to online location of
64330         FAQ.
64331         * Makefile (files-for-dist): Remove FAQ.
64332         (FAQ): Remove.
64333
64334 2012-05-02  Allan McRae  <allan@archlinux.org>
64335
64336         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
64337         (LDFLAGS-reldepmod5.so): Likewise.
64338         (LDFLAGS-reldep6mod1.so): Likewise.
64339         (LDFLAGS-reldep6mod4.so): Likewise.
64340         (LDFLAGS-reldep8mod3.so): Likewise.
64341         (LDFLAGS-unload4mod1.so): Likewise.
64342         (LDFLAGS-unload4mod2.so): Likewise.
64343         (LDFLAGS-tst-initorder): Likewise.
64344         (LDFLAGS-tst-initordera2.so): Likewise.
64345         (LDFLAGS-tst-initordera3.so): Likewise.
64346         (LDFLAGS-tst-initordera4.so): Likewise.
64347         (LDFLAGS-tst-initorderb2.so): Likewise.
64348         (LDFLAGS-noload): Likewise.
64349         (LDFLAGS-next): Likewise.
64350         (LDFLAGS-order2mod1.so): Likewise.
64351         (LDFLAGS-order2mod2.so): Likewise.
64352         (LDFLAGS-tst-initorder2): Likewise.
64353         (LDFLAGS-tst-initorder2a.so): Likewise.
64354         (LDFLAGS-tst-initorder2b.so): Likewise.
64355         (LDFLAGS-tst-initorder2c.so): Likewise.
64356         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
64357
64358 2012-05-02  David S. Miller  <davem@davemloft.net>
64359
64360         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64361
64362 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
64363
64364         [BZ #14055]
64365         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
64366
64367 2012-05-02  Andreas Jaeger  <aj@suse.de>
64368
64369         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
64370         since we manipulate rounding mode.
64371         (CPPFLAGS-test-idouble.c): Likewise.
64372         (CPPFLAGS-test-ifloat.c): Likewise.
64373         (CFLAGS-test-ldouble.c): Likewise.
64374         (CFLAGS-test-double.c): Likewise.
64375         (CFLAGS-test-float.c): Likewise.
64376         (CFLAGS-test-misc.c): Likewise.
64377         (CFLAGS-test-test-fenv.c): Likewise.
64378
64379 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64380
64381         [BZ #2550]
64382         [BZ #2570]
64383         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
64384         comparisons to determine direction to adjust input.
64385
64386 2012-05-01  Roland McGrath  <roland@hack.frob.com>
64387
64388         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
64389         output to the target.
64390
64391         * scripts/localplt.awk: New file.
64392         * elf/Makefile ($(objpfx)check-localplt): Target removed.
64393         (check-localplt-CFLAGS): Variable removed.
64394         ($(all-built-dso:=.jmprel)): New static pattern rule.
64395         (generated): Add those targets.
64396         (localplt-built-dso): New variable.
64397         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
64398
64399         * elf/check-localplt.c: File removed.
64400
64401         * scripts/check-execstack.awk: New file.
64402         * elf/Makefile ($(objpfx)check-execstack): Target removed.
64403         (check-execstack-CFLAGS): Variable removed.
64404         ($(objpfx)check-execstack.h): Target removed.
64405         ($(objpfx)execstack-default): New target.
64406         (generated): Add that instead of check-execstack.h.
64407         ($(all-built-dso:=.phdr)): New static pattern rule.
64408         (generated): Add those targets.
64409         * elf/check-execstack.c: File removed.
64410
64411         * scripts/check-textrel.awk: New file.
64412         * elf/Makefile ($(objpfx)check-textrel): Target removed.
64413         (check-textrel-CFLAGS): Variable removed.
64414         (all-built-dso): Use := to define.o
64415         ($(all-built-dso:=.dyn)): New static pattern rule.
64416         (generated): Add those targets.
64417         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
64418         * config.make.in (READELF): New substituted variable.
64419         * elf/check-textrel.c: File removed.
64420
64421 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64422
64423         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64424         allow.
64425         * conform/data/ctype.h-data [C99-based standards] (isblank):
64426         Expect function.
64427         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
64428         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
64429         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64430         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
64431         Specify type.  Require positive value.
64432         (EILSEQ): Likewise.
64433         (ERANGE): Likewise.
64434         [ISO || POSIX] (EILSEQ): Do not expect.
64435         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
64436         Specify type.  Require positive value.
64437         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
64438         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
64439         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
64440         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64441         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64442         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64443         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64444         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64445         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64446         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64447         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64448         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64449         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64450         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64451         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64452         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64453         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64454         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64455         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64456         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64457         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64458         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64459         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64460         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64461         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64462         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64463         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64464         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64465         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64466         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64467         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64468         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64469         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64470         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64471         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64472         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64473         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64474         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64475         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64476         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64477         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64478         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64479         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64480         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64481         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64482         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64483         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64484         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64485         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64486         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64487         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64488         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64489         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64490         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64491         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64492         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64493         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64494         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64495         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64496         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64497         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64498         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64499         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64500         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64501         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64502         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64503         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64504         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64505         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64506         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64507         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64508         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64509         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64510         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64511         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64512         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64513         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64514         Require >= 2.
64515         (FLT_ROUNDS): Expect as macro, not constant.
64516         (FLT_MANT_DIG): Use macro-int-constant.
64517         (DBL_MANT_DIG): Likewise.
64518         (LDBL_MANT_DIG): Likewise.
64519         (FLT_DIG): Likewise.
64520         (DBL_DIG): Likewise.
64521         (LDBL_DIG): Likewise.
64522         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64523         (DBL_MIN_EXP): Likewise.
64524         (LDBL_MIN_EXP): Likewise.
64525         (FLT_MAX_EXP): Use macro-int-constant.
64526         (DBL_MAX_EXP): Likewise.
64527         (LDBL_MAX_EXP): Likewise.
64528         (FLT_MAX_10_EXP): Likewise.
64529         (DBL_MAX_10_EXP): Likewise.
64530         (LDBL_MAX_10_EXP): Likewise.
64531         (FLT_MAX): Use macro-constant.
64532         (DBL_MAX): Likewise.
64533         (LDBL_MAX): Likewise.
64534         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64535         (DBL_EPSILON): Likewise.
64536         (LDBL_EPSILON): Likewise.
64537         (FLT_MIN): Likewise.
64538         (DBL_MIN): Likewise.
64539         (LDBL_MIN): Likewise.
64540         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64541         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64542         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64543         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64544         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64545         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64546         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64547         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64548         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64549         [ISO11] (FLT_TRUE_MIN): Likewise.
64550         [ISO11] (LDBL_TRUE_MIN): Likewise.
64551         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64552         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64553         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64554         (SCHAR_MAX): Likewise.
64555         (UCHAR_MAX): Likewise.
64556         (CHAR_MIN): Likewise.
64557         (CHAR_MAX): Likewise.
64558         (MB_LEN_MAX): Use macro-int-constant.
64559         (SHRT_MIN): Use macro-int-constant.  Specify type.
64560         (SHRT_MAX): Likewise.
64561         (USHRT_MAX): Likewise.
64562         (INT_MAX): Likewise.
64563         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64564         bound negative.
64565         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64566         bound with "U".
64567         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64568         bound with "L".
64569         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64570         bound negative.  Suffix upper bound with "L".
64571         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64572         bound with "UL".
64573         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64574         Specify type.
64575         [C99-based standards] (LLONG_MAX): Likewise.
64576         [C99-based standards] (ULLONG_MAX): Likewise.
64577         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64578         == 0.
64579         [ISO11] (max_align_t): Require type.
64580         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64581
64582         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64583         from $CFLAGS, without defining away __attribute__ calls.
64584         (checknamespace): Use $CFLAGS_namespace.
64585
64586         * conform/conformtest.pl (@keywords): Only include C99 keywords
64587         for standards based on C99 or C11.
64588
64589         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64590         Disable tests.
64591         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64592         UNIX98]: Likewise.
64593
64594         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64595         usability of symbols in #if.
64596
64597         * conform/conformtest.pl: If macro or constant types start
64598         "promoted:", expect the symbol to be of the following type
64599         promoted by the integer promotions.
64600
64601         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64602         in one place.  Also handle "macro-constant".
64603
64604         * conform/conformtest.pl: Only accept expected macro values with
64605         "==".  Parse all "macro" lines in one place.
64606         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64607
64608         * conform/conformtest.pl: Handle braced types on "constant" lines
64609         instead of handling "typed-constant".
64610         * conform/data/signal.h-data: Use "constant" instead of
64611         "typed-constant".
64612
64613         * conform/conformtest.pl: Handle "optional-" at start of lines in
64614         one place rather than duplicating several cases.  Handle each
64615         format of "macro" line with initial "optional-".
64616
64617         * conform/conformtest.pl: Only accept expected constant or
64618         optional-constant values with "==".  Parse all "constant" lines in
64619         one place.  Parse all "optional-constant" lines in one place.
64620         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64621         * conform/data/fmtmsg.h-data: Likewise.
64622         * conform/data/netinet/in.h-data: Likewise.
64623         * conform/data/tar.h-data: Likewise.
64624         * conform/data/limits.h-data: Use "==" form on "constant" and
64625         "optional-constant" lines.
64626
64627         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64628         Use -std=c99 for XOPEN2K.
64629         (@knownproblems): Remove.
64630         (newtoken): Don't check %isknown.
64631
64632         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64633         Do not expect macro.
64634         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64635         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64636         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64637         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64638         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64639         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64640         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64641         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64642         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64643         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64644         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64645         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64646         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64647         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64648         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64649         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64650         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64651         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64652         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64653         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64654         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64655         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64656         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64657         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64658         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64659         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64660         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64661         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64662         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64663         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64664         [XPG3] (acosh): Likewise.
64665         [XPG3] (asinh): Likewise.
64666         [XPG3] (atanh): Likewise.
64667         [XPG3] (cbrt): Likewise.
64668         [XPG3] (expm1): Likewise.
64669         [XPG3] (ilogb): Likewise.
64670         [XPG3] (log1p): Likewise.
64671         [XPG3] (logb): Likewise.
64672         [XPG3] (nextafter): Likewise.
64673         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64674         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64675         [XPG3] (remainder): Likewise.
64676         [XPG3] (rint): Likewise.
64677         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64678         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64679         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64680         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64681         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64682         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64683         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64684         [UNIX98 || XOPEN2K] (scalb): Expect.
64685         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64686         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64687         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64688         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64689         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64690         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64691         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64692         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64693         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64694         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64695         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64696         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64697         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64698         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64699         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64700         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64701         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64702         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64703         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64704         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64705         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64706         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64707         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64708         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64709         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64710         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64711         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64712         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64713         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64714         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64715         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64716         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64717         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64718         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64719         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64720         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64721         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64722         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64723         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64724         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64725         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64726         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64727         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64728         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64729         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64730         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64731         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64732         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64733         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64734         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64735         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64736         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64737         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64738         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64739         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64740         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64741         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64742         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64743         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64744         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64745         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64746         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64747         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64748         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64749         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64750         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64751         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64752         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64753         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64754         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64755         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64756         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64757         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64758         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64759         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64760         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64761         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64762         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64763         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64764         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64765         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64766         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64767         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64768         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64769         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64770         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64771         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64772         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64773         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64774         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64775         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64776         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64777         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64778         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64779         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64780         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64781         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64782         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64783         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64784         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64785         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64786         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64787         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64788         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64789         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64790         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64791         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64792         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64793         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64794         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64795         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64796         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64797         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64798         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64799         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64800         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64801         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64802         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64803         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64804         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64805         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64806         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64807         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64808         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64809         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64810         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64811         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64812         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64813         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64814         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64815         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64816         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64817         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64818         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64819         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64820         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64821         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64822
64823         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64824         _XOPEN_SOURCE_EXTENDED for XPG4.
64825
64826         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64827
64828         * Makeconfig (localtime): Remove variable.
64829         (inst_localtime-file): Likewise.
64830
64831 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64832
64833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64834         Update.
64835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64836         Update.
64837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64838         Update.
64839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64840         Update.
64841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64842         Update.
64843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64844         Update.
64845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64846         Update.
64847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64848         Update.
64849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64850         Update.
64851
64852 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64853
64854         [BZ #2550]
64855         [BZ #2570]
64856         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64857         comparisons to determine direction to adjust input.
64858         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64859         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64860         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64861         Likewise.
64862         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64863         Likewise.
64864         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64865         Likewise.
64866         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64867         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64868         Likewise.
64869         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64870         Likewise.
64871         * math/libm-test.inc (nexttoward_test): Add more tests.
64872
64873 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64874
64875         [BZ #14040]
64876         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64877         in version GLIBC_2.1, not GLIBC_2.0.
64878         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64879         Likewise.
64880
64881 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64882
64883         [BZ #13942]
64884         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64885         (1 - x) * (1 + x).
64886         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64887         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64888         * math/libm-test.inc (acos_test): Add more tests.
64889         (asin_test): Likewise.
64890         * sysdeps/i386/fpu/libm-test-ulps: Update.
64891         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64892
64893         [BZ #14034]
64894         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64895         of square root.
64896         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64897         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64898         * math/libm-test.inc (acos_test_tonearest): New function.
64899         (acos_test_towardzero): Likewise.
64900         (acos_test_downward): Likewise.
64901         (acos_test_upward): Likewise.
64902         (asin_test_tonearest): Likewise.
64903         (asin_test_towardzero): Likewise.
64904         (asin_test_downward): Likewise.
64905         (asin_test_upward): Likewise.
64906         (main): Call the new functions.
64907         * sysdeps/i386/fpu/libm-test-ulps: Update.
64908         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64909
64910         [BZ #13884]
64911         [BZ #13924]
64912         * math/e_exp10.c: Include <float.h>.
64913         (__ieee754_exp10): Handle underflow here rather than multiplying
64914         large negative argument by M_LN10.
64915         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
64916         of __ieee754_expf.
64917         * math/e_exp10l.c: Include <float.h>.
64918         (__ieee754_exp10l): Handle underflow here rather than multiplying
64919         large negative argument by M_LN10l.
64920         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
64921         spurious overflow exception on underflow.
64922
64923 2012-04-29  Marek Polacek  <polacek@redhat.com>
64924
64925         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
64926         (__fortify_function): New macro.
64927         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
64928         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
64929         __extern_always_inline.
64930         * libio/bits/stdio2.h: Likewise.
64931         * libio/bits/stdio.h: Likewise.
64932         * string/string.h: Likewise.
64933         * string/bits/string3.h: Likewise.
64934         * include/stdio.h: Likewise.
64935         * stdlib/bits/stdlib.h: Likewise.
64936         * stdlib/stdlib.h: Likewise.
64937         * rt/bits/mqueue2.h: Likewise.
64938         * rt/mqueue.h: Likewise.
64939         * posix/bits/unistd.h: Likewise.
64940         * posix/unistd.h: Likewise.
64941         * io/bits/poll2.h: Likewise.
64942         * io/bits/fcntl2.h: Likewise.
64943         * io/fcntl.h: Likewise.
64944         * io/sys/poll.h: Likewise.
64945         * misc/bits/syslog.h: Likewise.
64946         * misc/bits/syslog-ldbl.h: Likewise.
64947         * misc/sys/syslog.h: Likewise.
64948         * socket/bits/socket2.h: Likewise.
64949         * socket/sys/socket.h: Likewise.
64950         * debug/tst-chk1.c: Likewise.
64951         * wcsmbs/bits/wchar2.h: Likewise.
64952         * wcsmbs/bits/wchar-ldbl.h: Likewise.
64953         * wcsmbs/wchar.h: Likewise.
64954
64955 2012-04-29  Andreas Jaeger  <aj@suse.de>
64956
64957         * Makerules (tests): Remove enable-check-abi protection.
64958         (check-abi-warn): Remove.
64959         (check-abi-%): Remove check-abi-warn usage.
64960
64961         * configure.in: Remove check-abi configure option.
64962         * configure: Regenerated.
64963         * config.make.in (enable-check-abi): Remove.
64964
64965 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
64966
64967         [BZ #14033]
64968         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
64969         double functions to double *_finite functions.
64970
64971         [BZ #13941]
64972         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
64973         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
64974         LDBL_MIN_EXP.
64975         * stdio-common/Makefile (tests): Add tst-sprintf3.
64976         * stdio-common/tst-sprintf3.c: New file.
64977
64978         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
64979         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
64980
64981 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
64982
64983         * conform/conformtest.pl: Remove duplicate typed-constant
64984         handling.
64985
64986 2012-04-28  David S. Miller  <davem@davemloft.net>
64987
64988         * Makerules (%.abilist): Add vpath on sysdep_dirs.
64989         (check-abi-%): Remove AWK script prerequisite and explicit
64990         abilist directory.
64991         (check-abi): Rewrite to just diff the symlist with the abilist.
64992         (config-tls, config-abi-config): Delete, no longer used.
64993         (update-abi-%): Remove AWK script and explicit abilist directory.
64994         (update-abi): Rewrite to simply compare and conditionally copy the
64995         symlist and the sysdep abilist file.  Remove update-abi-config
64996         checks.
64997         * abilist/ld.abilist: Remove.
64998         * abilist/libBrokenLocale.abilist: Remove.
64999         * abilist/libanl.abilist: Remove.
65000         * abilist/libcrypt.abilist: Remove.
65001         * abilist/libdl.abilist: Remove.
65002         * abilist/librt.abilist: Remove.
65003         * abilist/libthread_db.abilist: Remove.
65004         * abilist/libutil.abilist: Remove.
65005         * scripts/extract-abilist.awk: Remove.
65006         * scripts/merge-abilist.awk: Remove.
65007         * sysdeps/generic/libcidn.abilist: New file.
65008         * sysdeps/generic/libnss_compat.abilist: New file.
65009         * sysdeps/generic/libnss_db.abilist: New file.
65010         * sysdeps/generic/libnss_dns.abilist: New file.
65011         * sysdeps/generic/libnss_files.abilist: New file.
65012         * sysdeps/generic/libnss_hesiod.abilist: New file.
65013         * sysdeps/generic/libnss_nis.abilist: New file.
65014         * sysdeps/generic/libnss_nisplus.abilist: New file.
65015         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
65016         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
65017         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
65018         file.
65019         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
65020         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
65021         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
65022         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
65023         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
65024         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
65025         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
65026         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
65027         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
65028         file.
65029         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
65030         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
65031         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
65032         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
65033         file.
65034         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
65035         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
65036         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
65037         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
65038         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
65039         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
65040         file.
65041         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
65042         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
65043         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
65044         file.
65045         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
65046         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
65047         New file.
65048         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
65049         New file.
65050         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
65051         New file.
65052         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
65053         New file.
65054         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
65055         New file.
65056         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
65057         New file.
65058         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
65059         New file.
65060         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
65061         New file.
65062         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
65063         New file.
65064         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
65065         New file.
65066         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
65067         New file.
65068         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
65069         New file.
65070         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
65071         New file.
65072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
65073         file.
65074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
65075         New file.
65076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
65077         New file.
65078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
65079         file.
65080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
65081         New file.
65082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
65083         New file.
65084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
65085         file.
65086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
65087         New file.
65088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65089         New file.
65090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
65091         New file.
65092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
65093         New file.
65094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
65095         New file.
65096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
65097         New file.
65098         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
65099         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
65100         file.
65101         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
65102         New file.
65103         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
65104         file.
65105         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
65106         file.
65107         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
65108         file.
65109         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
65110         file.
65111         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
65112         file.
65113         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
65114         New file.
65115         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
65116         file.
65117         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
65118         file.
65119         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
65120         New file.
65121         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
65122         file.
65123         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
65124         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
65125         file.
65126         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
65127         New file.
65128         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
65129         file.
65130         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
65131         file.
65132         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
65133         file.
65134         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
65135         file.
65136         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
65137         file.
65138         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
65139         New file.
65140         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
65141         file.
65142         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
65143         file.
65144         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
65145         New file.
65146         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
65147         file.
65148         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
65149         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
65150         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
65151         file.
65152         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
65153         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
65154         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
65155         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
65156         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
65157         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
65158         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
65159         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
65160         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
65161         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
65162         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
65163         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
65164         file.
65165         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
65166         New file.
65167         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
65168         file.
65169         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
65170         file.
65171         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
65172         file.
65173         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
65174         file.
65175         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
65176         file.
65177         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
65178         New file.
65179         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
65180         New file.
65181         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
65182         file.
65183         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
65184         New file.
65185         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
65186         file.
65187         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
65188         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
65189         file.
65190         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
65191         New file.
65192         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
65193         file.
65194         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
65195         file.
65196         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
65197         file.
65198         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
65199         file.
65200         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
65201         file.
65202         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
65203         New file.
65204         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
65205         New file.
65206         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
65207         file.
65208         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
65209         New file.
65210         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
65211         file.
65212
65213 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65214
65215         * conform/conformtest.pl: Fix typo in handling typed-constant from
65216         allow-header.
65217
65218 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65219
65220         * README: Cut down references to pre-2.6 Linux kernels and
65221         Linuxthreads.  Update lists of configurations in libc and ports
65222         and sort alphabetically.  Say "or newer" with Linux kernel version
65223         requirements.
65224
65225         * config.h.in [IS_IN_build]: Allow compiling without optimization.
65226
65227 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
65228
65229         [BZ #887]
65230         * math/libm-test.inc (logb_test_downward): New test to expose
65231         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
65232         rounding mode.
65233
65234 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65235
65236         [BZ #14027]
65237         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
65238         to be done.
65239         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
65240         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
65241
65242 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
65243
65244         * sysdeps/unix/i386/brk.S: Remove file.
65245         * sysdeps/unix/i386/dl-brk.S: Likewise.
65246         * sysdeps/unix/i386/pipe.S: Likewise.
65247         * sysdeps/unix/i386/sigreturn.S: Likewise.
65248         * sysdeps/unix/i386/syscall.S: Likewise.
65249         * sysdeps/unix/i386/vfork.S: Likewise.
65250         * sysdeps/unix/i386/wait.S: Likewise.
65251
65252         * sysdeps/unix/common/tcsendbrk.c: Move to ...
65253         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
65254
65255         * configure.in (arm*-none*): Do not allow without
65256         --enable-hacker-mode.
65257         (netbsd*): Remove case setting base_os.
65258         (386bsd*): Likewise.
65259         (freebsd*): Likewise.
65260         (bsdi*): Likewise.
65261         (osf*): Likewise.
65262         (sunos*): Likewise.
65263         (ultrix*): Likewise.
65264         (newsos*): Likewise.
65265         (dynix*): Likewise.
65266         (*bsd*): Likewise.
65267         (sysv*): Likewise.
65268         (isc*): Likewise.
65269         (esix*): Likewise.
65270         (sco*): Likewise.
65271         (minix*): Likewise.
65272         (irix4*): Likewise.
65273         (irix6*): Likewise.
65274         (solaris[2-9]*): Likewise.
65275         (none): Likewise.
65276         * configure: Regenerated.
65277
65278 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65279
65280         [BZ #11521]
65281         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
65282         overflow or cancellation in calculating denominator.
65283         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
65284         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
65285         down expression to avoid unexpected rounding in newer GCCs.
65286         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
65287
65288 2012-04-26  David S. Miller  <davem@davemloft.net>
65289
65290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
65291         long-double compat symbols.
65292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
65293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
65294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
65295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
65296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
65297         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
65298         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
65299         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
65300         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
65301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
65302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
65303         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
65304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
65305
65306 2012-04-25  David S. Miller  <davem@davemloft.net>
65307
65308         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
65309         HWCAP_* values only after the memory barriers have been defined.
65310         (atomic_full_barrier): Define.
65311         (atomic_read_barrier): Define.
65312         (atomic_write_barrier): Define.
65313
65314 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65315
65316         * shlib-versions: Add libgcc_s version information.
65317         * sysdeps/generic/libgcc_s.h: Remove.
65318         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
65319         libgcc_s.h.
65320         * sysdeps/gnu/unwind-resume.c: Likewise.
65321         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
65322
65323 2012-04-25  David S. Miller  <davem@davemloft.net>
65324
65325         * sysdeps/unix/sparc/brk.S: Delete.
65326         * sysdeps/unix/sparc/dl-brk.S: Delete.
65327         * sysdeps/unix/sparc/pipe.S: Delete.
65328         * sysdeps/unix/sparc/sysdep.S: Delete.
65329         * sysdeps/unix/sparc/sysdep.h: Delete.
65330         * sysdeps/unix/sparc/vfork.S: Delete.
65331         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
65332         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
65333         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
65334         (ret_ERRVAL, r0, r1, MOVE): Define.
65335         (JUMPTARGET): Remove.
65336         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
65337         sysdeps/unix/sparc/sysdep.h
65338         (ENTRY, END): Remove.
65339         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
65340
65341 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65342
65343         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
65344         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
65345         -DIS_IN_build.
65346
65347         * timezone/README: Update upstream location and email address for
65348         tzcode and tzdata.
65349         * timezone/zdump.c: Update from tzcode 2012b.
65350         * timezone/zic.c: Likewise.
65351
65352         * configure.in (libc_cv_as_needed): Remove test.
65353         * configure: Regenerated.
65354         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
65355         conditional definition.
65356         [$(have-as-needed) != yes] (no-as-needed): Likewise.
65357         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
65358         * config.make.in (have-as-needed): Remove variable.
65359
65360 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65361             Paul Pluzhnikov  <ppluzhnikov@google.com>
65362
65363         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
65364         strings correctly.
65365
65366 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
65367
65368         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
65369         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
65370         * sysdeps/sh/strlen.S: Likewise.
65371
65372 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65373
65374         * sysdeps/unix/fork.S: Remove file.
65375         * sysdeps/unix/i386/fork.S: Likewise.
65376         * sysdeps/unix/sparc/fork.S: Likewise.
65377
65378         * sysdeps/unix/system.c: Remove file.
65379         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
65380
65381         * sysdeps/unix/getegid.S: Remove file.
65382         * sysdeps/unix/geteuid.S: Likewise.
65383
65384 2012-04-24  Roland McGrath  <roland@hack.frob.com>
65385
65386         * scripts/check-localplt.awk: New file.
65387         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
65388         of diff.
65389         * scripts/data/localplt-generic.data: Add a comment.
65390
65391         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
65392         NODE when __dir_mkfile failed.
65393         * sysdeps/mach/hurd/symlinkat.c: Likewise.
65394         Reported by Ludovic Courtès <ludo@gnu.org>.
65395
65396 2012-04-24  Andreas Jaeger  <aj@suse.de>
65397
65398         * Makerules (common-clean): Also remove gen-as-const-headers
65399         files.
65400
65401 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65402
65403         * Makerules (native-compile): Do not change working directory for
65404         build.  Use $(OUTPUT_OPTION) in command.
65405         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
65406
65407 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65408
65409         [BZ #13886]
65410         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
65411         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
65412         * math/libm-test.inc (floor_test): Add more tests.
65413         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
65414
65415 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65416
65417         * sysdeps/unix/getdents.c: Remove file.
65418         * sysdeps/unix/sysv/getdents.c: Likewise.
65419         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
65420
65421         * sysdeps/unix/syscalls.list (madvise): Add syscall from
65422         sysdeps/unix/mman/syscalls.list.
65423         (mmap): Likewise.
65424         (mprotect): Likewise.
65425         (msync): Likewise.
65426         (munmap): Likewise.
65427         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
65428         * sysdeps/unix/mman/syscalls.list: Remove.
65429         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
65430
65431         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
65432         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
65433         * configure: Regenerated.
65434         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
65435         $(libgcc_s_suffix).
65436         * config.make.in (libgcc_s_suffix): Remove variable.
65437
65438 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
65439
65440         * sysdeps/unix/sysv/gethostname.c: Move to ...
65441         * sysdeps/posix/gethostname.c: ... here.
65442
65443         * sysdeps/unix/execve.S: Remove file.
65444
65445         * sysdeps/unix/_exit.S: Remove file.
65446
65447 2012-04-23  Andreas Jaeger  <aj@suse.de>
65448
65449         [BZ #13739]
65450         * manual/Makefile: Remove make dist support, there's no
65451         need for a stand-alone documentation tar ball.
65452         (TEXI2DVI): Define always, it's not in Makeconfig.
65453         (dist): Removed.
65454         (tar-it): Removed.
65455         (edition): Removed.
65456         (glibc-doc-$(edition).tar): Removed
65457         (%.Z): Removed.
65458         (%.gz): Removed.
65459         (%.uu): Removed.
65460         (ETAGS): Remove, it's in Makeconfig.
65461         (move-if-change): Remove, it's in Makeconfig.
65462
65463 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65464
65465         [BZ #13970]
65466         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65467         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65468         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65469         (strtod_l, strtof_l, strtold_l): Remove __wur.
65470         It is not necessarily an error to ignore strtol's return value.
65471         One can reliably look at the stored endptr to decide whether
65472         the number had valid syntax.
65473
65474 2012-04-21  Andreas Jaeger  <aj@suse.de>
65475
65476         [BZ #13739]
65477         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65478
65479 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65480
65481         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65482         * sysdeps/unix/sysv/Versions: Remove file.
65483
65484 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65485
65486         [BZ #13927]
65487         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65488
65489 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65490
65491         [BZ #7064]
65492         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65493         version from __vm86.
65494
65495 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65496
65497         * sysdeps/unix/common/lxstat.c: Remove file.
65498         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65499
65500         * sysdeps/unix/sysv/Makefile: Remove file.
65501
65502         * sysdeps/unix/sysv/direct.h: Remove file.
65503
65504         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65505         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65506         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65507         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65508         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65509         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65510         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65511
65512         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65513
65514         * sysdeps/unix/xmknod.c: Remove file.
65515         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65516
65517         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65518
65519         * sysdeps/unix/sysv/i386/time.S: Remove file.
65520
65521         * sysdeps/unix/fxstat.c: Remove file.
65522         * sysdeps/unix/xstat.c: Likewise.
65523         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65524
65525         * sysdeps/unix/sysv/sigaction.c: Remove file.
65526
65527         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65528         (sysdep_headers): Remove variable.
65529         [termio.h not in sysdep_headers] (generated): Likewise.
65530         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65531         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65532         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65533         * sysdeps/unix/sysv/tcflow.c: Likewise.
65534         * sysdeps/unix/sysv/tcflush.c: Likewise.
65535         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65536         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65537         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65538         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65539         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65540
65541         * sysdeps/unix/siglist.c: Remove file.
65542
65543         * sysdeps/unix/getppid.S: Remove file.
65544
65545         * sysdeps/unix/mkdir.c: Remove file.
65546         * sysdeps/unix/rmdir.c: Likewise.
65547
65548 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65549
65550         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65551         ERR_MAX value.
65552         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65553         errlist-compat value.
65554
65555 2012-04-18  David S. Miller  <davem@davemloft.net>
65556
65557         * sysdeps/generic/memcopy.h (reg_char): Delete.
65558         * debug/strcat_chk.c: Use char, not reg_char.
65559         * debug/strcpy_chk.c: Likewise.
65560         * debug/strncat_chk.c: Likewise.
65561         * debug/strncpy_chk.c: Likewise.
65562         * string/memchr.c: Likewise.
65563         * string/memrchr.c: Likewise.
65564         * string/rawmemchr.c: Likewise.
65565         * string/strcat.c: Likewise.
65566         * string/strchr.c: Likewise.
65567         * string/strchrnul.c: Likewise.
65568         * string/strcmp.c: Likewise.
65569         * string/strcpy.c: Likewise.
65570         * string/strncat.c: Likewise.
65571         * string/strncmp.c: Likewise.
65572         * string/strncpy.c: Likewise.
65573
65574 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65575
65576         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65577         __builtin_memcopy is called when src and dest ranges are known to not
65578         overlap.
65579
65580 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65581
65582         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65583         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65584         fwd_align_merge macro call.
65585         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65586         bwd_align_merge macro call.
65587         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65588
65589 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65590
65591         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65592         bwd_align_merge macros.
65593         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65594         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65595         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65596
65597 2012-04-18  David S. Miller  <davem@davemloft.net>
65598
65599         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65600
65601 2012-04-18  Andreas Jaeger  <aj@suse.de>
65602
65603         [BZ# 6794]
65604         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65605         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65606         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65607
65608         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65609         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65610         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65611
65612         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65613         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65614         Adjust for changed ldbl-128 files.
65615
65616         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65617         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65618         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65619
65620 2012-04-17  David S. Miller  <davem@davemloft.net>
65621
65622         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65623
65624 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65625
65626         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65627         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65628         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65629         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65630         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65631         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65632
65633 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65634
65635         [BZ #6794]
65636         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65637         * math/libm-test.inc: Add ilogb errno and exception tests.
65638         * math/w_ilogb.c: New file: ilogb wrapper.
65639         * math/w_ilogbf.c: New file: ilogbf wrapper.
65640         * math/w_ilogbl.c: New file: ilogbl wrapper.
65641         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65642         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65643         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65644         exception being thrown with 0.0 as argument.
65645         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65646         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65647         exception being thrown with 0.0 as argument.
65648         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65649         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65650         exception being thrown with 0.0 as argument.
65651         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65652         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65653         exception being thrown with 0.0 as argument.
65654         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65655         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65656         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65657         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65658         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65659         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65660         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65661         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65662         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65663
65664 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65665
65666         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65667         with altivec.
65668
65669 2012-04-16  Marek Polacek  <polacek@redhat.com>
65670
65671         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65672
65673 2012-04-16  Marek Polacek  <polacek@redhat.com>
65674
65675         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65676         operands of fdivp instruction.
65677
65678 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65679
65680         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65681         * elf/tst-auditmod3b.c: Likewise.
65682         * elf/tst-auditmod4b.c: Likewise.
65683         * elf/tst-auditmod5b.c: Likewise.
65684         * elf/tst-auditmod6b.c: Likewise.
65685         * elf/tst-auditmod6c.c: Likewise.
65686         * elf/tst-auditmod7b.c: Likewise.
65687         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65688         * sysdeps/x86_64/preconfigure.in: Likewise.
65689         * sysdeps/x86_64/preconfigure: Regenerated.
65690
65691 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65692
65693         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65694         __ILP32__.
65695
65696 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65697
65698         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65699         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65700
65701 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65702
65703         [BZ #13973]
65704         * locale/iso-639.def: Fix gl language name. Spotted by
65705         Yaron Shahrabani.
65706
65707 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65708
65709         [BZ #2074]
65710         * libio/libio.h (__io_write_fn): Update comment.
65711
65712 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65713
65714         [BZ #2074]
65715         * stdio.texi (Hook Functions): The user provided writer function
65716         is not allowed to return -1.
65717
65718 2012-04-11  David S. Miller  <davem@davemloft.net>
65719
65720         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65721
65722 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65723
65724         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65725         Add a leading slash to rtkaio.
65726
65727 2012-04-11  Jim Meyering  <meyering@redhat.com>
65728
65729         [BZ #11959]
65730         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65731         It is not necessarily an error to ignore fwrite's return
65732         value.  One can reliably use ferror to test for errors after
65733         the fact.
65734
65735 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65736
65737         * bits/types.h (__snseconds_t): New type.
65738         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65739
65740         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65741         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65742         (__SNSECONDS_T_TYPE): Likewise.
65743         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65744         (__SNSECONDS_T_TYPE): Likewise.
65745         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65746         (__SNSECONDS_T_TYPE): Likewise.
65747
65748 2012-04-10  Andreas Jaeger  <aj@suse.de>
65749
65750         [BZ #2636]
65751         * manual/time.texi (Processor Time): Return type of times is
65752         elapsed real time since an arbitrary point in the past.
65753         (CPU Time): Move CLK_TCK from here...
65754         (Processor Time): ...to here.  Correct description.
65755         * manual/conf.texi (Constants for Sysconf): Correct description of
65756         _SC_CLK_TCK.
65757
65758 2012-04-10  David S. Miller  <davem@davemloft.net>
65759
65760         [BZ #13967]
65761         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65762         where the is a gap between DT_REL(A) and DT_JMPREL.
65763
65764 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65765
65766         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65767         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65768         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65769
65770 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65771
65772         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65773         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65774         (dl_main): Handle --inhibit-cache.
65775         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65776         _dl_inhibit_cache.
65777         * elf/dl-load.c (_dl_map_object): Use it.
65778         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65779
65780 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65781
65782         [BZ #13872]
65783         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65784         (__ieee754_powl): Saturate large exponents rather than testing for
65785         overflow of y*log2(x).
65786         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65787         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65788         exceptions.
65789
65790         [BZ #11521]
65791         * math/s_ctan.c: Include <float.h>.
65792         (__ctan): Avoid internal overflow or cancellation in calculating
65793         denominator.
65794         * math/s_ctanf.c: Likewise.
65795         * math/s_ctanl.c: Likewise.
65796         * math/s_ctanh.c: Likewise.
65797         * math/s_ctanhf.c: Likewise.
65798         * math/s_ctanhl.c: Likewise.
65799         * math/libm-test.inc (ctan_test): Add more tests.
65800         (ctanh_test): Likewise.
65801         * sysdeps/i386/fpu/libm-test-ulps: Update.
65802         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65803
65804 2012-04-09  Andreas Jaeger  <aj@suse.de>
65805
65806         [BZ #6894]
65807         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65808         is an optional BSD extension.
65809
65810         [BZ #10254]
65811         * manual/stdio.texi (Opening Streams): Document additional fopen
65812         parameters.
65813
65814 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65815
65816         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65817         %eax without telling the compiler.
65818
65819 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65820
65821         [BZ # 13963]
65822         * manual/install.texi: Use sourceware.org.
65823
65824 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65825
65826         [BZ #13873]
65827         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65828         (__ieee754_pow): Generate overflow and underflow using huge*huge
65829         and tiny*tiny rather than just returning constant infinity or zero
65830         for large exponents.
65831         * math/libm-test.inc (pow_test): Require overflow exceptions for
65832         applicable cases of large exponents.
65833
65834         [BZ #706]
65835         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65836         (__ieee754_pow): Use iterative multiplication algorithm only for
65837         integer exponents with absolute value below 1024.  Check for odd
65838         integer exponents when using algorithm for real exponents.
65839         * math/libm-test.inc (pow_test): Add more tests.
65840         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65841
65842 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65843
65844         [BZ #13705]
65845         * math/libm-test.inc (exp_test): Do not allow overflow exception
65846         on underflow test.
65847
65848 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65849
65850         [BZ #13705]
65851         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65852         instead of __kernel_standard_f.
65853
65854 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65855
65856         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65857         * sysdeps/x86_64/memset_chk.S: Likewise.
65858
65859 2012-04-08  Andreas Jaeger  <aj@suse.de>
65860
65861         [BZ #10153]
65862         * manual/startup.texi (Environment Access): Describe return value
65863         for putenv and setenv.
65864
65865         [BZ #6895]
65866         * manual/filesys.texi (Directory Entries): Add description for
65867         DT_LNK.
65868
65869         [BZ #6890]
65870         * manual/filesys.texi (Directory Entries): Clarify that it's file
65871         system not operating system in the description of DT_UNKNOWN.
65872
65873         [BZ #6578]
65874         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65875
65876 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65877
65878         [BZ #6649]
65879         * manual/llio.texi (Opening and Closing Files): Add cross
65880         reference to explain mode argument.
65881
65882 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65883
65884         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65885         * sysdeps/x86_64/memset_chk.S: Likewise.
65886
65887 2012-04-07  David S. Miller  <davem@davemloft.net>
65888
65889         * elf/elf.h (R_SPARC_WDISP10): Define.
65890         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65891         R_SPARC_SIZE32.
65892         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65893         R_SPARC_SIZE64 and R_SPARC_H34.
65894
65895 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65896
65897         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65898         conditions and remove no longer applicable assertion.
65899
65900 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65901
65902         * bits/byteswap.h: Include <features.h>.
65903         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65904         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65905
65906 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65907
65908         * bits/byteswap.h (__bswap_16): Removed.
65909         Include <bits/byteswap-16.h> to get __bswap_16.
65910         * sysdeps/i386/bits/byteswap.h: Likewise.
65911         * sysdeps/s390/bits/byteswap.h: Likewise.
65912         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65913         * bits/byteswap-16.h: New file.
65914         * sysdeps/i386/bits/byteswap-16.h: Likewise.
65915         * sysdeps/s390/bits/byteswap-16.h: Likewise.
65916         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
65917         * string/Makefile (headers): Add bits/byteswap-16.h.
65918
65919 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
65920
65921         [BZ #13895]
65922         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
65923         extra indirection.
65924         * nss/Makefile (tests-static, tests): Add tst-nss-static.
65925         * nss/tst-nss-static.c: New.
65926
65927 2012-04-06  Robert Millan  <rmh@gnu.org>
65928
65929         [BZ #6486]
65930         * manual/llio.texi (File Position Primitive): lseek
65931         refers to WHENCE when it really means OFFSET.
65932
65933 2012-04-06  Andreas Jaeger  <aj@suse.de>
65934
65935         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
65936         strncmp declarations.
65937
65938         * abilist/libc.abilist: Add __poll and __ppoll.
65939
65940 2012-04-05  David S. Miller  <davem@davemloft.net>
65941
65942         * scripts/check-local-headers.sh: Accept a host triplet in the
65943         path matched by the exclude regexp.
65944
65945         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
65946         definition.
65947         * sysdeps/powerpc/powerpc32/dl-machine.h
65948         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
65949         * sysdeps/s390/s390-32/dl-machine.h
65950         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65951         * sysdeps/sparc/sparc32/dl-machine.h
65952         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65953         * sysdeps/sparc/sparc64/dl-machine.h
65954         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65955
65956         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
65957         lazy binding.
65958         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
65959         undefined symbol errors.
65960
65961         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
65962         DT_NEEDED entries.
65963
65964 2012-04-05  Michael Matz  <matz@suse.de>
65965
65966         [BZ #13592]
65967         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
65968
65969 2012-04-05  Andreas Jaeger  <aj@suse.de>
65970
65971         [BZ #13908]
65972         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
65973         comment.
65974
65975 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65976
65977         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
65978         which ROUND is no valid rounding mode.
65979
65980 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65981
65982         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
65983         read again.
65984         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
65985
65986 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65987
65988         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
65989         an exception using FPU order intentionally.
65990
65991 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65992
65993         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
65994         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
65995         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
65996         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
65997
65998 2012-04-05  Simon Josefsson  <simon@josefsson.org>
65999
66000         [BZ #12340]
66001         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
66002         EINVAL when BUFLEN is too smal.
66003
66004 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
66005
66006         [BZ #13553]
66007         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
66008         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
66009
66010 2012-04-03  Andreas Jaeger  <aj@suse.de>
66011
66012         [BZ #13938]
66013         * manual/setjmp.texi (System V contexts): Fix sentence.
66014
66015         [BZ #13926]
66016         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
66017         New macro for this case.
66018         [!__GNUC__] (__bswap_64): New inline function for this case.
66019         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66020         * bits/byteswap.h: Likewise.
66021         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
66022         ull, guard with __GLIBC_HAVE_LONG_LONG.
66023
66024         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
66025         __GLIBC_HAVE_LONG_LONG.
66026
66027         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
66028         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
66029
66030 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
66031
66032         [BZ #13691]
66033         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
66034         inptr and inend, rather than using last_ch.
66035
66036 2012-04-02  David S. Miller  <davem@davemloft.net>
66037
66038         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
66039         * stdio-common/printf-parse.h (read_int): Change return type to
66040         'int', return -1 on INT_MAX overflow.
66041         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
66042         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
66043         overflows INT_MAX.  Check for overflow of in-format-string precision
66044         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
66045         SIZE_MAX not INT_MAX for integer overflow test.
66046         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
66047         skip the construct in the format string but do not record anything.
66048         * stdio-common/bug22.c: Adjust to test both width/prevision
66049         INT_MAX overflow as well as total length INT_MAX overflow.  Check
66050         explicitly for proper errno values.
66051
66052 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
66053
66054         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
66055         CHAR_MAX.
66056         * string/test-strcmp.c [! WIDE]: Likewise.
66057         * time/tst-mktime2.c: Likewise for INT_MAX.
66058         * string/test-string.h: #include <sys/param.h> for MIN.
66059
66060         * csu/init-first.c (__libc_init_first): Call __ctype_init.
66061         * sysdeps/i386/init-first.c (init): Likewise.
66062         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
66063         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
66064         * sysdeps/sh/init-first.c (init): Likewise.
66065
66066 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
66067
66068         * po/ru.po: Update from translation team.
66069         * po/vi.po: Likewise.
66070
66071 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
66072
66073         * resolv/nss_dns/dns-host.c: Merge copyright years.
66074
66075 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
66076
66077         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
66078         Optimize memcpy with prefetch if
66079         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
66080         src, dst pointers have unequal 16 byte alignments.
66081
66082 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
66083
66084         [BZ #13928]
66085         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
66086         from a CNAME entry and return the minimum ttl for the query.
66087         (gaih_getanswer_slice): Likewise.
66088
66089 2012-03-30  Jeff Law  <law@redhat.com>
66090
66091         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
66092         due to long keys.
66093         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
66094         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
66095
66096         * resolv/nss_dns/dns-host.c: Update copyright year.
66097
66098 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
66099
66100         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
66101         requests to save a system call.  Fix check that all bytes are sent.
66102
66103         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
66104         comments for sendmmsg.
66105
66106 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
66107
66108         [BZ #13691]
66109         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
66110         with only 1 character between 0x0041 and 0x01b0.
66111         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
66112         * wcsmbs/tst-mbsnrtowcs.c: New file.
66113
66114 2012-03-29  David S. Miller  <davem@davemloft.net>
66115
66116         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
66117         small copies by hand.
66118
66119 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
66120
66121         [BZ #13761]
66122         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
66123         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
66124         group memberships.
66125
66126 2012-03-28  David S. Miller  <davem@davemloft.net>
66127
66128         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
66129         that branches into memcpy.
66130         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
66131         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
66132         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
66133         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
66134         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
66135         bits.
66136         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
66137         implementation too.
66138         * sysdeps/sparc/mempcpy.S: New file.
66139
66140         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
66141         the IFUNC routine in the libc case.
66142         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
66143
66144         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
66145         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
66146         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
66147         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
66148         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
66149         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
66150         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
66151         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
66152
66153         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
66154         loop to 256 bytes instead of 64 bytes and fix test signedness.
66155
66156         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
66157         * sysdeps/sparc/sparc32/Makefile: rather than here...
66158         * sysdeps/sparc/sparc64/Makefile: and here.
66159
66160 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
66161
66162         * malloc/mallocbug.c: Avoid warnings about unused variables.
66163
66164 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
66165
66166         [BZ #13760]
66167         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
66168         in the right place. Discard and retry query if response is
66169         larger than input buffer size.
66170
66171 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
66172
66173         [BZ #369]
66174         [BZ #2678]
66175         [BZ #3866]
66176         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
66177         x for large integer exponent.
66178         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
66179         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
66180         sign of result as needed afterwards.
66181         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
66182         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
66183         result for underflowing pow the same as for overflow.
66184         (__kernel_standard_l): Handle powl overflow and underflow here
66185         rather than calling __kernel_standard.
66186         * math/libm-test.inc (pow_test): Add more tests.
66187
66188         [BZ #3868]
66189         [BZ #13879]
66190         [BZ #13910]
66191         [BZ #13911]
66192         [BZ #13912]
66193         [BZ #13913]
66194         [BZ #13915]
66195         [BZ #13916]
66196         [BZ #13917]
66197         [BZ #13918]
66198         [BZ #13919]
66199         [BZ #13920]
66200         [BZ #13921]
66201         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
66202         * sysdeps/ieee754/k_standard.c: Include <float.h>.
66203         (__kernel_standard_l): New function.
66204         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
66205         __kernel_standard.
66206         * math/w_acosl.c (__acosl): Likewise.
66207         * math/w_asinl.c (__asinl): Likewise.
66208         * math/w_atan2l.c (__atan2l): Likewise.
66209         * math/w_atanhl.c (__atanhl): Likewise.
66210         * math/w_coshl.c (__coshl): Likewise.
66211         * math/w_exp10l.c (__exp10l): Likewise.
66212         * math/w_exp2l.c (__exp2l): Likewise.
66213         * math/w_fmodl.c (__fmodl): Likewise.
66214         * math/w_hypotl.c (__hypotl): Likewise.
66215         * math/w_j0l.c (__j0l, __y0l): Likewise.
66216         * math/w_j1l.c (__j1l, __y1l): Likewise.
66217         * math/w_jnl.c (__jnl, __ynl): Likewise.
66218         * math/w_lgammal.c (__lgammal): Likewise.
66219         * math/w_log10l.c (__log10l): Likewise.
66220         * math/w_log2l.c (__log2l): Likewise.
66221         * math/w_logl.c (__logl): Likewise.
66222         * math/w_powl.c (__powl): Likewise.
66223         * math/w_remainderl.c (__remainderl): Likewise.
66224         * math/w_scalbl.c (sysv_scalbl): Likewise.
66225         * math/w_sinhl.c (__sinhl): Likewise.
66226         * math/w_sqrtl.c (__sqrtl): Likewise.
66227         * math/w_tgammal.c (__tgammal): Likewise.
66228         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
66229         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
66230         * math/libm-test.inc (acos_test): Add more tests.
66231         (acosh_test): Likewise.
66232         (asin_test): Likewise.
66233         (atanh_test): Likewise.
66234         (exp_test): Likewise.
66235         (exp10_test): Likewise.
66236         (exp2_test): Likewise.
66237         (expm1_test): Likewise.
66238         (lgamma_test): Likewise.
66239         (log_test): Likewise.
66240         (log10_test): Likewise.
66241         (log1p_test): Likewise.
66242         (log2_test): Likewise.
66243         (pow_test): Do not allow some spurious overflow exceptions.
66244         (sqrt_test): Add more tests.
66245         (tgamma_test): Likewise.
66246         (y0_test): Likewise.
66247         (y1_test): Likewise.
66248         (yn_test): Likewise.
66249
66250 2012-03-27  Anton Blanchard  <anton@samba.org>
66251
66252         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
66253         MAP_HUGETLB.
66254         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
66255         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
66256         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
66257
66258 2012-03-27  David S. Miller  <davem@davemloft.net>
66259
66260         * conform/Makefile: Run run-conformtest.sh using $(BASH).
66261
66262         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
66263         have-as-vis3 check.
66264
66265 2012-03-27  Andreas Jaeger  <aj@suse.de>
66266
66267         * sysdeps/x86_64/elf/configure.in: Moved to ...
66268         * sysdeps/x86_64/configure.in: ... here.
66269         * sysdeps/x86_64/elf/start.S: Moved to ...
66270         * sysdeps/x86_64/start.S: ... here.
66271         * sysdeps/x86_64/elf/configure: Delete.
66272
66273         * sysdeps/x86_64/configure.in: Merge contents from
66274         sysdeps/i386/configure.in (without i686 check).
66275
66276         * sysdeps/i386/elf/Versions: Merge into ...
66277         * sysdeps/i386/Versions: ... this.
66278         * sysdeps/i386/elf/Versions: Delete file.
66279         * sysdeps/i386/elf/start.S: Moved to ...
66280         * sysdeps/i386/start.S: ...here.
66281         * sysdeps/i386/elf/configure.in: Merge into...
66282         * sysdeps/i386/configure.in: ...here.
66283         * sysdeps/i386/elf/configure.in: Delete file.
66284         * sysdeps/i386/elf/configure: Delete file.
66285
66286         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
66287         * debug/backtracesyms.c: ... here.
66288         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
66289         * debug/backtracesymsfd.c: ... here.
66290         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
66291         * sysdeps/generic/ifunc-sel.h: ... here.
66292
66293         * sysdeps/unix/i386/start.c: Delete file.
66294         * sysdeps/unix/sparc/start.c: Delete file.
66295         * sysdeps/unix/start.c: Delete file.
66296
66297         * sysdeps/sh/elf/configure.in: Moved to ...
66298         * sysdeps/sh/configure.in: ... here.
66299         * sysdeps/sh/elf/start.S: Moved to ...
66300         * sysdeps/sh/start.S: ... here.
66301         * sysdeps/sh/elf/configure: Delete file.
66302
66303         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
66304         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
66305         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
66306         * sysdeps/powerpc/powerpc64/entry.h: ... here.
66307         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
66308         * sysdeps/powerpc/powerpc64/start.S: here.
66309         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
66310         * sysdeps/powerpc/powerpc64/Makefile: ... this.
66311         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
66312         * sysdeps/powerpc/powerpc64/configure.in: ... this.
66313         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
66314
66315         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
66316         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
66317         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
66318         * sysdeps/powerpc/powerpc32/start.S: ... here.
66319         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
66320         * sysdeps/powerpc/powerpc32/configure.in: ... this.
66321         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
66322
66323         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
66324         * sysdeps/powerpc/ifunc-sel.h: ... here.
66325         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
66326         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
66327
66328         * sysdeps/sparc/elf/configure.in: Moved to ...
66329         * sysdeps/sparc/configure.in: ... here.
66330         * sysdeps/sparc/elf/configure: Delete file.
66331         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
66332         * sysdeps/sparc/sparc32/start.S: ... here.
66333         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
66334         * sysdeps/sparc/sparc64/start.S: ... here.
66335         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
66336         * sysdeps/sparc/sparc32/Makefile: ... this.
66337         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
66338         * sysdeps/sparc/sparc64/Makefile: ... this.
66339
66340         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
66341         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
66342         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
66343         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
66344         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
66345         * sysdeps/s390/s390-32/setjmp.S: ... here.
66346         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
66347         * sysdeps/s390/s390-32/configure.in: ... here.
66348         * sysdeps/s390/s390-32/elf/configure: Delete file.
66349         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
66350         * sysdeps/s390/s390-32/start.S: ... here.
66351
66352         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
66353         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
66354         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
66355         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
66356         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
66357         * sysdeps/s390/s390-64/setjmp.S: ... here.
66358         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
66359         * sysdeps/s390/s390-64/configure.in: ... here
66360         * sysdeps/s390/s390-64/elf/configure: Delete file.
66361         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
66362         * sysdeps/s390/s390-64/start.S: ... here.
66363         * sysdeps/s390/s390-64/elf/configure: Delete.
66364
66365         * configure.in: Remove support for elf directories in sysdeps.
66366
66367         * configure: Regenerated.
66368         * sysdeps/i386/configure: Regenerated.
66369         * sysdeps/powerpc/powerpc32/configure: Regenerated.
66370         * sysdeps/powerpc/powerpc64/configure: Regenerated.
66371         * sysdeps/s390/s390-32/configure: Regenerated.
66372         * sysdeps/s390/s390-64/configure: Regenerated.
66373         * sysdeps/sh/configure: Regenerated.
66374         * sysdeps/sparc/configure: Regenerated.
66375         * sysdeps/x86_64/configure: Regenerated.
66376
66377 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
66378
66379         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66380
66381         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
66382         denormal result into account.
66383
66384 2012-03-25  Roland McGrath  <roland@hack.frob.com>
66385
66386         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
66387         Reported by Allan McRae <allan@archlinux.org>.
66388
66389 2012-03-23  Jeff Law  <law@redhat.com>
66390
66391         * nss/getnssent.c (__nss_getent): Fix typo.
66392
66393 2012-03-23  David S. Miller  <davem@davemloft.net>
66394
66395         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66396
66397 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
66398
66399         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
66400         to pad to uint64_t for each field.
66401         (dl_tls_index): Replace unsigned long with uint64_t.
66402
66403 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
66404         Paul Pluzhnikov  <ppluzhnikov@google.com>
66405
66406         [BZ #6528]
66407         * grp/Makefile (otherlibs): Don't set it.
66408         * inet/Makefile (otherlibs): Likewise.
66409         * login/Makefile (otherlibs): Likewise.
66410         * nscd/Makefile (otherlibs): Likewise.
66411         * posix/Makefile (otherlibs): Likewise.
66412         * pwd/Makefile (otherlibs): Likewise.
66413         * rt/Makefile (otherlibs): Likewise.
66414         * sunrpc/Makefile (otherlibs): Likewise.
66415         * nss/Makefile (otherlibs): Likewise.
66416         Add libnss_files to routines and static-only-routines.
66417         ($(objpfx)getent): Remove rule.
66418         * resolv/Makefile: Add libnss_dns and libresolv to routines and
66419         static-only-routines.
66420
66421 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66422
66423         [BZ #13892]
66424         * math/s_cexp.c: Include <float.h>.
66425         (__cexp): Handle exp result overflowing not necessarily
66426         overflowing both real and imaginary parts of result.
66427         * math/s_cexpf.c: Likewise.
66428         * math/s_cexpl.c: Likewise.
66429         * math/libm-test.inc (cexp_test): Add more tests.
66430         * sysdeps/i386/fpu/libm-test-ulps: Update.
66431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66432
66433 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66434
66435         * include/link.h (ELFW): New macro.
66436         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
66437         Replace ELF64_R_TYPE with ELFW(R_TYPE).
66438
66439 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66440
66441         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66442         with uint64_t.
66443
66444 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66445
66446         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66447         declaration.
66448         (struct La_x32_retval): Likewise.
66449
66450 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66451
66452         * sysdeps/x86_64/preconfigure.in: New file.
66453         * sysdeps/x86_64/preconfigure: New generated file.
66454
66455 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66456
66457         [BZ #13824]
66458         * math/e_exp2l.c: Include <float.h>.
66459         (__ieee754_exp2l): Handle overflow and underflow cases
66460         separately.  Only pass fractional part of argument to
66461         __ieee754_expl.
66462         * math/libm-test.inc (exp2_test): Add more tests.
66463
66464         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66465         negating x to take absolute value.
66466         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66467         Likewise.
66468         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66469         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66470         Likewise.
66471         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66472         computing low part if x was negated.
66473         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66474
66475 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66476
66477         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66478         la_x32_gnu_pltexit.
66479         (pltexit): Cast int_retval to ptrdiff_t.
66480         * elf/tst-auditmod3b.c: Likewise.
66481         * elf/tst-auditmod4b.c: Likewise.
66482         * elf/tst-auditmod5b.c: Likewise.
66483         * elf/tst-auditmod6b.c: Likewise.
66484         * elf/tst-auditmod6c.c: Likewise.
66485         * elf/tst-auditmod7b.c: Likewise.
66486
66487         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66488         and x32_gnu_pltexit.
66489
66490         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66491         __ELF_NATIVE_CLASS.
66492         (La_x32_regs): New macro.
66493         (La_x32_retval): Likewise.
66494         (la_x32_gnu_pltenter): New function prototype.
66495         (la_x32_gnu_pltexit): Likewise.
66496
66497 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66498
66499         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66500         exponent.
66501
66502         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66503
66504         * configure.in (libc_cv_cc_nofma): Check for option to disable
66505         generation of FMA instructions.
66506         * configure: Regenerate.
66507         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66508         * sysdeps/ieee754/dbl-64/Makefile: New file.
66509         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66510         Remove brandred-fma4.
66511         (CFLAGS-brandred-fma4.c): Remove.
66512         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66513         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66514         define.
66515         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66516         define.
66517
66518 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66519
66520         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66521         LLONG_MAX != LONG_MAX.
66522         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66523         (_fitoa_word): Likewise.
66524         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66525         LLONG_MAX != LONG_MAX.
66526         * stdio-common/_itowa.h: Include <_itoa.h>.
66527         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66528         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66529         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66530         only if not defined.
66531         (_ITOA_WORD_TYPE): Likewise.
66532         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66533         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66534
66535 2012-03-21  David S. Miller  <davem@davemloft.net>
66536
66537         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66538
66539 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66540
66541         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66542         of x86_64 when setting libc_cv_slibdir, libdir and
66543         libc_cv_localedir.
66544         * sysdeps/unix/sysv/linux/configure: Regenerated.
66545
66546 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66547
66548         * manual/lang.texi (Old Varargs): Remove section.
66549         (How Variadic): Update menu.
66550         (va_start): Do not mention varargs.h.
66551
66552 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66553             Joseph Myers  <joseph@codesourcery.com>
66554
66555         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66556         link test.
66557         * configure: Regenerated.
66558
66559 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66560
66561         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66562         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66563         conformtest.pl
66564
66565 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66566
66567         * NOTES: Remove.
66568         * Makefile (files-for-dist): Remove NOTES.
66569         (NOTES): Remove rule.
66570         * README: Don't refer to NOTES.
66571         * manual/creature.texi: Don't include macros.texi.
66572         * manual/intro.texi (creature.texi): Remove comment referring to
66573         NOTES.
66574
66575         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66576         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66577         * configure: Regenerated.
66578         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66579         LIBC_TRY_CC_OPTION.
66580         (libc_cv_as_i686): Likewise.
66581         (libc_cv_cc_avx): Likewise.
66582         (libc_cv_cc_sse2avx): Likewise.
66583         (libc_cv_cc_fma4): Likewise.
66584         (libc_cv_cc_novzeroupper): Likewise.
66585         * sysdeps/i386/configure: Regenerated.
66586
66587         [BZ #13883]
66588         * sysdeps/i386/fpu/s_cexp.S: Remove.
66589         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66590         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66591         * math/libm-test.inc (cexp_test): Add more tests.
66592         * sysdeps/i386/fpu/libm-test-ulps: Update.
66593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66594
66595 2012-03-21  Allan McRae  <allan@archlinux.org>
66596
66597         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66598
66599 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66600
66601         [BZ #13871]
66602         * math/w_exp2.c: Do not include <float.h>.
66603         (o_threshold, u_threshold): Remove.
66604         (__exp2): Calculate result before checking finiteness and calling
66605         __kernel_standard.
66606         * math/w_exp2f.c: Likewise.
66607         * math/w_exp2l.c: Likewise.
66608         * math/libm-test.inc (exp2_test): Require overflow exception for
66609         1e6 input.
66610
66611         [BZ #3866]
66612         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66613         range of signed 64-bit integers before using fistpll.  Remove
66614         checks for whether integers fit in mantissa bits.
66615         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66616         the range of signed 32-bit integers before using fistpl.  Remove
66617         checks for whether integers fit in mantissa bits.
66618         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66619         (__ieee754_powl): Test for y outside the range of signed 64-bit
66620         integers before using fistpll.  Reduce 64-bit values to 63-bit
66621         ones as needed.
66622         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66623         divide-by-zero is raised for zero to large negative powers.
66624         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66625         (__ieee754_powl): Test for y outside the range of signed 64-bit
66626         integers before using fistpll.  Reduce 64-bit values to 63-bit
66627         ones as needed.
66628         * math/libm-test.inc (pow_test): Add more tests.
66629
66630 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66631
66632         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66633         <stdio-common/_itoa.h>.
66634         * debug/segfault.c: Likewise.
66635         * elf/dl-cache.c: Likewise.
66636         * elf/dl-minimal.c: Likewise.
66637         * elf/dl-misc.c: Likewise.
66638         * elf/dl-sysdep.c: Likewise.
66639         * elf/dl-version.c: Likewise.
66640         * elf/rtld.c: Likewise.
66641         * hurd/hurdsock.c: Likewise.
66642         * hurd/lookup-retry.c: Likewise.
66643         * malloc/malloc.c: Likewise.
66644         * malloc/mtrace.c: Likewise.
66645         * nscd/nscd_getgr_r.c: Likewise.
66646         * nscd/nscd_getpw_r.c: Likewise.
66647         * nscd/nscd_getserv_r.c: Likewise.
66648         * posix/getopt_init.c: Likewise.
66649         * posix/wordexp.c: Likewise.
66650         * stdio-common/_itoa.c: Likewise.
66651         * stdio-common/printf_fphex.c: Likewise.
66652         * stdio-common/vfprintf.c: Likewise.
66653         * string/_strerror.c: Likewise.
66654         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66655         * sysdeps/i386/i686/hp-timing.h: Likewise.
66656         * sysdeps/mach/_strerror.c: Likewise.
66657         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66658         * sysdeps/mach/hurd/sethostid.c: Likewise.
66659         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66660         * sysdeps/mach/xpg-strerror.c: Likewise.
66661         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66662         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66663         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66664         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66665         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66666         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66667         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66668         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66669         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66670         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66671         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66672         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66673         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66674         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66675         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66676         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66677         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66678         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66679         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66680         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66681         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66682
66683         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66684
66685         * stdio-common/_itoa.h: Moved to ...
66686         * sysdeps/generic/_itoa.h: Here.
66687
66688         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66689
66690         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66691         instead of "_itoa.h" and "_itowa.h".
66692         * stdio-common/vfprintf.: Likewise.
66693
66694 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66695
66696         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66697         <bits/wordsize.h>.
66698         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66699         (__signbit): Likwise.
66700         (llrintf): Likwise.
66701         (llrint): Likwise.
66702
66703 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66704
66705         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66706         __WORDSIZE != 64.
66707
66708 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66709
66710         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66711         OVERFLOW_EXCEPTION_OK.
66712         * math/libm-test.inc ("Philosophy"): Update comment about
66713         exception testing.
66714         (OVERFLOW_EXCEPTION): Define.
66715         (OVERFLOW_EXCEPTION_OK): Likewise.
66716         (INVALID_EXCEPTION_OK): Renumber.
66717         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66718         (IGNORE_ZERO_INF_SIGN): Likewise.
66719         (test_exceptions): Handle FE_OVERFLOW.
66720         (exp10_test): Expect overflow exceptions.
66721         (exp2_test): Likewise.
66722         (expm1_test): Likewise.
66723         (nextafter_test): Likewise.
66724         (pow_test): Likewise.
66725         (scalbn_test): Likewise.
66726         (scalbln_test): Likewise.
66727
66728 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66729
66730         * sysdeps/x86_64/bits/atomic.h
66731         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66732         64bit integer.
66733         (atomic_exchange_acq): Likewise.
66734         (__arch_exchange_and_add_body): Likewise.
66735         (__arch_add_body): Likewise.
66736         (atomic_add_negative): Likewise.
66737         (atomic_add_zero): Likewise.
66738
66739 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66740
66741         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66742         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66743
66744 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66745
66746         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66747         Check __x86_64__ instead of __WORDSIZE.
66748
66749 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66750
66751         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66752
66753 2012-03-19  David S. Miller  <davem@davemloft.net>
66754
66755         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66756
66757         * sysdeps/sparc/fpu/fenv_private.h: New file.
66758         * sysdeps/sparc/fpu/math_private.h: Use it.
66759         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66760         Remove.
66761         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66762         (libc_feholdexcept_setroundl): Remove.
66763         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66764         Remove.
66765         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66766         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66767
66768 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66769
66770         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66771         int64_t instead of long int.
66772         (INSERT_WORDS64): Likwise.
66773
66774 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66775
66776         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66777         _Unwind_GetCFA return to _Unwind_Ptr first.
66778
66779 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66780
66781         [BZ #13629]
66782         * math/s_clog.c: Include <float.h>.
66783         (__clog): Scale large or subnormal inputs.
66784         * math/s_clogf.c: Likewise.
66785         * math/s_clogl.c: Likewise.
66786         * math/s_clog10.c: Include <float.h>.
66787         (M_LOG10_2): Define.
66788         (__clog10): Scale large or subnormal inputs.
66789         * math/s_clog10f.c: Likewise.
66790         * math/s_clog10l.c: Likewise.
66791         * math/libm-test.inc (clog_test): Add more tests.
66792         (clog10_test): Likewise.
66793         * sysdeps/i386/fpu/libm-test-ulps: Update.
66794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66795
66796         [BZ #11451]
66797         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66798         x and y.
66799         * math/libm-test.inc (atan2_test): Add another test.
66800
66801         * Makerules (common-objdir-compile): Remove.
66802         * sysdeps/unix/Makefile (config-generated): Do not add
66803         $(unix-generated) to variable.
66804         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66805         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66806         Remove rule.
66807         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66808         Likewise.
66809         [generic bits/local_lim.h] (before-compile): Do not append to
66810         variable.
66811         [generic bits/local_lim.h] (common-generated): Likewise.
66812         [generic sys/param.h] (before-compile): Do not append to variable.
66813         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66814         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66815         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66816         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66817         include.
66818         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66819         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66820         [generic sys/param.h] ($(addprefix
66821         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66822         [generic sys/param.h] (common-generated): Do not append to
66823         variable.
66824         [generic sys/param.h] (sysdep_headers): Likewise.
66825         [generic bits/errno.h] (before-compile): Do not append to
66826         variable.
66827         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66828         rule.
66829         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66830         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66831         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66832         [generic bits/errno.h] (common-generated): Do not append to
66833         variable.
66834         [generic bits/ioctls.h] (before-compile): Do not append to
66835         variable.
66836         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66837         rule.
66838         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66839         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66840         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66841         rule.
66842         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66843         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66844         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66845         [generic bits/ioctls.h] (common-generated): Do not append to
66846         variable.
66847         [generic sys/syscall.h] (syscall.h): Remove variable.
66848         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66849         rule.
66850         [generic sys/syscall.h] (before-compile): Do not append to
66851         variable.
66852         [generic sys/syscall.h] (common-generated): Likewise.
66853         * sysdeps/unix/errnos-tmpl.c: Remove file.
66854         * sysdeps/unix/errnos.awk: Likewise.
66855         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66856         * sysdeps/unix/ioctls.awk: Likewise.
66857         * sysdeps/unix/mk-local_lim.c: Likewise.
66858         * sysdeps/unix/snarf-ioctls: Likewise.
66859
66860 2012-03-19  Richard Henderson  <rth@twiddle.net>
66861
66862         * sysdeps/i386/fpu/fenv_private.h: New file.
66863         * sysdeps/i386/fpu/math_private.h: Use it.
66864         (math_opt_barrier, math_force_eval): Remove.
66865         (libc_feholdexcept_setround_53bit): Remove.
66866         (libc_feupdateenv_53bit): Remove.
66867         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66868         (math_opt_barrier, math_force_eval): Remove.
66869         (libc_feholdexcept): Remove.
66870         (libc_feholdexcept_setround): Remove.
66871         (libc_fetestexcept, libc_fesetenv): Remove.
66872         (libc_feupdateenv_test): Remove.
66873         (libc_feupdateenv, libc_feholdsetround): Remove.
66874         (libc_feresetround): Remove.
66875
66876         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66877         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66878
66879         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66880         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66881         (libc_feupdateenv_testl): New.
66882         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66883         (libc_feupdateenv_testf): New.
66884         (libc_feupdateenv): Use libc_feupdateenv_test.
66885         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66886         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66887
66888         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66889         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66890         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66891         (libc_feresetround_noex): New.
66892         (libc_feresetround_noexf): New.
66893         (libc_feresetround_noexl): New.
66894         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66895         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66896         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66897         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66898         SET_RESTORE_ROUND.
66899         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66900         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66901         (__cos): Likewise.
66902         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66903         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
66904         SET_RESTORE_ROUND_NOEX.
66905         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
66906         SET_RESTORE_ROUND_NOEXF.
66907         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
66908         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
66909         (libc_feholdsetroundf): New.
66910         (libc_feresetround, libc_feresetroundf): New.
66911
66912         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
66913         (libc_feholdexcept_setround_53bit): Convert from macro to function.
66914         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
66915
66916         * sysdeps/generic/math_private.h: Include <fenv.h>.
66917         (default_libc_feholdexcept): New.
66918         (default_libc_feholdexcept_setround): New.
66919         (default_libc_fesetenv, default_libc_feupdateenv): New.
66920         (libc_feholdexcept): Only define if undefined.
66921         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
66922         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
66923         (libc_feholdexcept_setroundl): Likewise.
66924         (libc_feholdexcept_setround_53bit): Likewise.
66925         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
66926         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
66927         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
66928         (libc_feupdateenv_53bit): Likewise.
66929         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
66930         (libc_feholdexcept): Convert from macro to inline function.
66931         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
66932         (libc_fesetenv, libc_feupdateenv): Likewise.
66933
66934         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
66935         not previously defined.
66936         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
66937         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
66938         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
66939         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
66940         * sysdeps/ieee754/flt-32/math_private.h: New file.
66941         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
66942         math_private.h below SET_FLOAT_WORD.
66943         (__isnan, __isinf_ns, __finite): Remove.
66944         (__isnanf, __isinf_nsf, __finitef): Remove.
66945
66946 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
66947
66948         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66949
66950 2012-03-17  David S. Miller  <davem@davemloft.net>
66951
66952         [BZ #6471]
66953         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
66954         for 2.16.
66955
66956 2012-03-16  David S. Miller  <davem@davemloft.net>
66957
66958         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
66959         warnings.
66960
66961         [BZ #6471]
66962         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
66963         properly.
66964         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
66965         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
66966         sysdep_routines when subdir is sysvipc.
66967         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
66968         __getshmlba helper.
66969
66970         * sysdeps/sparc/fpu/libm-test/ulps: Update.
66971
66972 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66973
66974         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
66975         [__LP64__].
66976
66977 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66978
66979         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
66980         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
66981         (__lround): Renamed to ...
66982         (__llround): This.  Replace long int with long long int.
66983         Define lround functions as aliases of llround functions.
66984         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
66985
66986 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66987
66988         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
66989         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
66990         adresses to uintptr_t.  Replace "long int" and "unsigned long
66991         int" with "greg_t" on va_arg.
66992
66993 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66994
66995         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
66996         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
66997
66998         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
66999         Move e_machine check before EI_CLASS check.  Handle x32
67000         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
67001         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
67002         SKIP_EM_IA_64 and include
67003         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
67004
67005         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
67006         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
67007         (add_system_dir): New macro.
67008
67009         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
67010         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
67011
67012 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67013
67014         [BZ #2551]
67015         [BZ #2552]
67016         [BZ #2553]
67017         [BZ #2554]
67018         [BZ #2562]
67019         [BZ #2563]
67020         [BZ #2565]
67021         [BZ #2566]
67022         [BZ #2576]
67023         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
67024         (y0): Likewise.
67025         * math/w_j0f.c (j0f): Likewise.
67026         (y0f): Likewise.
67027         * math/w_j0l.c (__j0l): Likewise.
67028         (__y0l): Likewise.
67029         * math/w_j1.c (j1): Likewise.
67030         (y1): Likewise.
67031         * math/w_j1f.c (j1f): Likewise.
67032         (y1f): Likewise.
67033         * math/w_j1l.c (__j1l): Likewise.
67034         (__y1l): Likewise.
67035         * math/w_jn.c (jn): Likewise.
67036         (yn): Likewise.
67037         * math/w_jnf.c (jnf): Likewise.
67038         (ynf): Likewise.
67039         * math/w_jnl.c (__jnl): Likewise.
67040         (__ynl): Likewise.
67041         * math/libm-test.inc (j0_test): Add more tests.
67042         (j1_test): Likewise.
67043         (jn_test): Likewise.  Add trailing semicolon to existing test.
67044         (y0_test): Likewise.
67045         (y1_test): Likewise.
67046         * sysdeps/i386/fpu/libm-test-ulps: Update.
67047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67048
67049         [BZ #13851]
67050         [BZ #13854]
67051         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
67052         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
67053         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
67054         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
67055         (__tanl): Set errno for infinite argument.
67056         * sysdeps/i386/fpu/mptan.c: Remove.
67057         * sysdeps/i386/fpu/s_tan.S: Likewise.
67058         * sysdeps/i386/fpu/s_tanl.S: Likewise.
67059         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
67060         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
67061         * math/libm-test.inc (tan_test): Add more tests and enable more
67062         tests for double and long double.
67063         * sysdeps/i386/fpu/libm-test-ulps: Update.
67064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67065
67066 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
67067
67068         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
67069         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
67070
67071 2012-03-16  Roland McGrath  <roland@hack.frob.com>
67072
67073         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
67074         * configure.in: Use it for both main tree and add-ons.
67075         * configure: Regenerated.
67076
67077 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67078
67079         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
67080
67081 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67082
67083         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
67084         in comment.
67085
67086         [BZ #13851]
67087         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
67088         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
67089         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
67090         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
67091         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
67092         infinite argument.
67093         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
67094         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
67095         != 0 for prec == 2.
67096         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
67097         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
67098         * sysdeps/i386/fpu/s_cosl.S: Likewise.
67099         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
67100         * sysdeps/i386/fpu/s_sinl.S: Likewise.
67101         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
67102         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
67103         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
67104         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
67105         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
67106         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
67107         * math/libm-test.inc (cos_test): Add more tests and enable more
67108         tests for long double.
67109         (sin_test): Likewise.
67110         (sincos_test): Likewise.
67111         * sysdeps/i386/fpu/libm-test-ulps: Update.
67112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67113
67114 2012-03-16  David S. Miller  <davem@davemloft.net>
67115
67116         * sysdeps/sparc/fpu/math_private.h: New file.
67117
67118 2012-03-15  David S. Miller  <davem@davemloft.net>
67119
67120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
67121         file.
67122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
67123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
67124         file.
67125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
67126         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
67127         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
67128         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
67129         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
67130         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
67131         sysdep routines.
67132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67133
67134         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
67135         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
67136
67137         * sysdeps/sparc/sparc-ifunc.h: New file.
67138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
67139         sparc-ifunc.h
67140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
67141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
67142         Likewise.
67143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
67144         Likewise.
67145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
67146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
67147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
67148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
67149         Likewise.
67150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
67151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
67152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
67153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
67154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
67155         Likewise.
67156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
67157         Likewise.
67158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
67159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
67160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
67161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
67162         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
67163         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
67164         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
67165         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
67166         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
67167         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
67168         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
67169         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
67170         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
67171         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
67172         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
67173         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
67174         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
67175         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
67176         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
67177         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
67178         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
67179         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
67180         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
67181         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
67182
67183 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67184
67185         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
67186         scaling.
67187         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67188
67189 2012-03-15  Andreas Jaeger  <aj@suse.de>
67190
67191         [BZ #13852]
67192         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
67193         ieee754/flt-32 implementation for sin, cos and sincos.
67194         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
67195         * sysdeps/i386/fpu/s_cosf.S: Likewise.
67196         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
67197         * sysdeps/i386/fpu/s_sinf.S: Likewise.
67198         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
67199         ieee754/flt-32 implementation for tan.
67200
67201         * math/libm-test.inc (cos_test): Enable some large input tests for
67202         float as well
67203         (sin_test): Likewise.
67204         (sincos_test): Likewise.
67205         (tan_test): Add tests for large input.
67206
67207         * sysdeps/i386/fpu/libm-test-ulps: Update.
67208
67209 2012-03-15  Andreas Jaeger  <aj@suse.de>
67210
67211         [BZ #13658]
67212         * math/libm-test.inc (cos_test): Add more test cases.
67213         (sin_test): Likewise.
67214         (sincos_test): Likewise.
67215
67216 2012-03-15  Andreas Jaeger  <aj@suse.de>
67217
67218         [BZ #13837]
67219         * math/libm-test.inc (cos_test): Add a test case for large input
67220         value.
67221         (sin_test): Likewise.
67222         (sincos_test): Likewise.
67223
67224 2012-03-15  Andreas Jaeger  <aj@suse.de>
67225             Joseph Myers  <joseph@codesourcery.com>
67226
67227         [BZ #13658]
67228         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
67229         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
67230         * sysdeps/i386/fpu/branred.c: Likewise.
67231         * sysdeps/i386/fpu/dosincos.c: Likewise.
67232         * sysdeps/i386/fpu/mpa.c: Likewise.
67233         * sysdeps/i386/fpu/s_cos.S: Likewise.
67234         * sysdeps/i386/fpu/s_sin.S: Likewise.
67235         * sysdeps/i386/fpu/s_sincos.S: Likewise.
67236         * sysdeps/i386/fpu/sincos32.c: Likewise.
67237
67238         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
67239         Define.
67240         (libc_feupdateenv_53bit): Define.
67241         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
67242         Define.
67243         (libc_feupdateenv_53bit): Define.
67244
67245         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
67246         53 bit (without extend i386 double precision).
67247
67248         * math/libm-test.inc (sincos_test): Add tests for large input.
67249         (sin): Likewise.
67250         (cos): Likewise.
67251
67252         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
67253
67254 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67255
67256         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67257
67258 2012-03-15  David S. Miller  <davem@davemloft.net>
67259
67260         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
67261         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
67262         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
67263         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
67264         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
67265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
67266         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
67267         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
67268         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
67269         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
67270         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
67271         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
67272         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
67273         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
67274         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
67275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
67276         file.
67277         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
67278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
67279         file.
67280         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
67281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
67282         file.
67283         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
67284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
67285         file.
67286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
67287         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
67288         fmin/fmax sysdep routines.
67289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67290
67291 2012-03-14  David S. Miller  <davem@davemloft.net>
67292
67293         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
67294         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
67295         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
67296         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
67297         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
67298         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
67299         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
67300         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
67301         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
67302         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
67303         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
67304         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
67305         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
67306         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
67307         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
67308         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
67309         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
67310         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
67311         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
67312         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
67313         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
67314         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
67315         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
67316         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
67317         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
67318         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
67319         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
67320         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
67321         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
67322         routines.
67323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
67324         file.
67325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
67326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
67327         file.
67328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
67329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
67330         file.
67331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
67332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
67333         file.
67334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
67335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
67336         file.
67337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
67338         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
67339         file.
67340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
67341         file.
67342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
67343         file.
67344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
67345         file.
67346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
67347         New file.
67348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
67349         file.
67350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
67351         file.
67352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
67353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
67354         file.
67355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
67356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
67357         file.
67358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
67359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
67360         file.
67361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
67362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
67363         VIS3 routines.
67364
67365         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67366         New file.
67367
67368         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67369
67370         * sysdeps/sparc/configure.in: New file.
67371         * sysdeps/sparc/configure: Generate.
67372         * configure.in (libc_cv_sparc_as_vis3): Substitute.
67373         * configure: Regenerate.
67374         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
67375         * config.make.in (have-as-vis3): New.
67376         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
67377         available use -Av9d instead of -Av9a.
67378         * sysdeps/sparc/sparc64/Makefile: Likewise.
67379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
67380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
67381         New file.
67382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
67383         file.
67384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
67385         New file.
67386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
67387         file.
67388         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
67389         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
67390         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
67391         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
67392         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
67393
67394         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
67395         fzeros/fnegs to load 0x80000000 into a float register instead of
67396         using the stack.
67397         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
67398
67399 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67400
67401         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67402         bits/syscall.h.
67403         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
67404         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
67405         ($(inst_includedir)/bits/syscall.h): Remove rule.
67406         ($(objpfx)bits/syscall.d): Include instead of
67407         $(objpfx)syscall-list.d.
67408         (generated): Change syscall-list.h and syscall-list.d to
67409         bits/syscall.h and bits/syscall.d.
67410
67411 2012-03-14  Roland McGrath  <roland@hack.frob.com>
67412
67413         [BZ #13846]
67414         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
67415
67416 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67417
67418         [BZ #13841]
67419         * math/s_csqrt.c: Include <float.h>.
67420         (__csqrt): Scale large or subnormal inputs.
67421         * math/s_csqrtf.c: Likewise.
67422         * math/s_csqrtl.c: Likewise.
67423         * math/libm-test.inc (csqrt_test): Add more tests.
67424         * sysdeps/i386/fpu/libm-test-ulps: Update.
67425         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67426
67427         [BZ #13840]
67428         * math/libm-test.inc (hypot_test): Add more tests.
67429
67430 2012-03-13  David S. Miller  <davem@davemloft.net>
67431
67432         [BZ #13840]
67433         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
67434         double-precision for the calculation instead of scaling.
67435
67436 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
67437
67438         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
67439         manipulate bits before adding and subtracting TWO52[sx].
67440         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67441         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67442         Likewise.
67443         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67444
67445 2012-03-13  David S. Miller  <davem@davemloft.net>
67446
67447         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67448         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67449         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67450         rtld-global-offsets.h
67451         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67452
67453         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67454         large parameters.
67455
67456         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67457
67458         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67459         'err' in the ifdef scope in which it is actually used.
67460
67461         * nss/nss_db/db-init.c: Include string.h
67462
67463 2012-03-12  David S. Miller  <davem@davemloft.net>
67464
67465         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67466         masking out of the most significant byte of random value used.
67467         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67468         Fix coding style in previous change.
67469
67470         * sysdeps/unix/sysv/linux/kernel-features.h
67471         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67472         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67473         expression.
67474         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67475         later.
67476
67477 2012-03-11  David S. Miller  <davem@davemloft.net>
67478
67479         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67480         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67481         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67482         for 'resultvar' otherwise things get truncated on 64-bit.
67483
67484         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67485         Fix masking out of the most significant byte of random value used.
67486
67487         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67488
67489 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67490
67491         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67492
67493 2012-03-09  David S. Miller  <davem@davemloft.net>
67494
67495         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67496         variables with appropriate CPP guards.
67497         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67498         from the frame pointer, not the stack pointer.  Correct layout
67499         comments.  Fix test on resulting framesize and the management of
67500         the outregs buffer for pltexit.  Preserve floating point return
67501         values across _dl_call_pltexit call.
67502         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67503         framesize and the management of the outregs buffer for pltexit.
67504         Preserve floating point return values across _dl_call_pltexit
67505         call.
67506         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67507         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67508         (la_sparc64_gnu_pltexit): New functions.
67509         (print_exit): Fix format string for return register value.
67510
67511 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67512
67513         * sunrpc/Makefile (others): Add rpcgen.
67514         ($(objpfx)rpcgen): Remove special build rule and dependency on
67515         libc.
67516         * sunrpc/rpcgen.c: New file.
67517
67518 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67519
67520         [BZ #13673]
67521         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67522         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67523         * sysdeps/i386/crti.S: Likewise.
67524         * sysdeps/i386/crtn.S: Likewise.
67525         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67526         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67527         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67528         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67529         * sysdeps/sh/crti.S: Likewise.
67530         * sysdeps/sh/crtn.S: Likewise.
67531         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67532
67533         [BZ #13673]
67534         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67535         with URL.
67536         * locale/programs/locfile-kw.gperf: Likewise.
67537         * locale/programs/charmap-kw.h: Regenerated.
67538         * locale/programs/locfile-kw.h: Likewise.
67539
67540         [BZ #13673]
67541         * intl/plural.y: Replace FSF snail mail address with URL.
67542         * intl/plural.c: Regenerated.
67543
67544 2012-03-09  Richard Henderson  <rth@twiddle.net>
67545
67546         * include/math_private.h: Remove file.
67547         * math/math_private.h: Move file ...
67548         * sysdeps/generic/math_private.h: ... here.
67549
67550         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67551         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67552         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67553
67554         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67555         and <math_private.h>.
67556         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67557         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67558         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67559         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67560         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67561         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67562         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67563         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67564         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67565         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67566         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67567         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67568         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67569         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67570         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67571         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67572         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67573         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67574         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67575         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67576         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67577         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67578         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67579         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67580         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67581         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67582         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67583         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67584         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67585         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67586         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67587         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67588         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67589         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67590         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67591         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67592         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67593         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67594         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67595         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67596         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67597         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67598         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67599         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67600         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67601         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67602         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67603         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67604         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67605         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67606         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67607         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67608         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67609         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67610         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67611         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67612         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67613         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67614         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67615         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67616         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67617         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67618         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67619         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67620         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67621         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67622         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67623         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67624         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67625         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67626         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67627         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67628         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67629         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67630         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67631         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67632         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67633         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67634         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67635         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67636         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67637         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67638         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67639         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67640         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67641         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67642         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67643         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67644         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67645         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67646         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67647         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67648         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67649         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67650         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67651         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67652         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67653         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67654         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67655         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67656         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67657         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67658         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67659         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67660         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67661         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67662         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67663         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67664         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67665         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67666         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67667         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67668         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67669         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67670         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67671         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67672         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67673         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67674         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67675         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67676         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67677         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67678         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67679         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67680         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67681         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67682         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67683         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67684         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67685         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67686         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67687         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67688         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67689         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67690         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67691         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67692         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67693         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67694         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67695         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67696         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67697         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67698         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67699         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67700         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67701         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67702         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67703         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67704         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67705         * sysdeps/ieee754/k_standard.c: Likewise.
67706         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67707         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67708         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67709         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67710         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67711         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67712         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67713         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67714         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67715         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67716         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67717         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67718         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67719         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67720         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67721         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67722         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67723         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67724         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67725         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67726         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67727         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67728         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67729         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67730         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67731         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67732         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67733         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67734         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67735         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67736         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67737         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67738         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67739         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67740         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67741         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67742         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67743         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67744         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67745         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67746         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67747         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67748         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67749         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67750         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67751         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67752         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67753         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67754         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67755         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67756         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67757         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67758         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67759         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67760         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67761         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67762         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67763         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67764         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67765         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67766         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67767         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67768         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67769         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67770         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67771         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67772         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67773         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67774         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67775         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67776         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67777         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67778         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67779         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67780         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67781         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67782         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67783         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67784         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67785         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67786         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67787         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67788         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67789         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67790         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67791         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67792         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67793         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67794         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67795         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67796         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67797         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67798         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67799         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67800         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67801         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67802         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67803         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67804         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67805         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67806         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67807         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67808         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67809         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67810         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67811         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67812         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67813         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67814         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67815         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67816         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67817         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67818         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67819         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67820         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67821         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67822         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67823         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67824         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67825         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67826         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67827         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67828         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67829         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67830         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67831         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67832         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67833         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67834         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67835         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67836         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67837         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67838         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67839         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67840         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67841         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67842         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67843         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67844         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67845         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67846         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67847         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67848         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67849         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67850         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67851         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67852         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67853         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67854         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67855         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67856         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67857         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67858         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67859         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67860         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67861         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67862         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67863         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67864         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67865         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67866         * sysdeps/ieee754/s_lib_version.c: Likewise.
67867         * sysdeps/ieee754/s_matherr.c: Likewise.
67868         * sysdeps/ieee754/s_signgam.c: Likewise.
67869         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67870         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67871         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67872         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67873         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67874         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67875         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67876         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67877         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67878         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67879         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67880         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67881         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67882         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67883         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67884         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67885         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67886         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67887         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67888         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67889         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67890
67891 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67892
67893         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67894         * sunrpc/rpc_main.c: Likewise.
67895         * sunrpc/rpc_svcout.c: Likewise.
67896
67897 2012-03-09  David S. Miller  <davem@davemloft.net>
67898
67899         * include/math_private.h: New file.
67900
67901 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67902
67903         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
67904         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
67905         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
67906         from <bits/socket_type.h>.
67907         (enum __socket_type): Don't define here.
67908         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
67909         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67910         bits/socket_type.h.
67911
67912         [BZ #13566]
67913         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
67914         checking __USE_GNU.
67915
67916         * Makerules ($(inst_includedir)/%.h): New rule.
67917         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
67918         (install-others): Remove variable setting.
67919         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
67920
67921 2012-03-08  Richard Henderson  <rth@twiddle.net>
67922
67923         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
67924         from macro to inline function; merge with the
67925         !__LIBC_INTERNAL_MATH_INLINES version.
67926         (__ieee754_sqrtf): Likewise.
67927
67928         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
67929         to inline function.
67930         (__rintf, __floor, __floorf): Likewise.
67931
67932         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
67933         macro to inline function.
67934         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
67935
67936         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
67937         not <math/math_private.h>.
67938
67939 2012-03-08  David S. Miller  <davem@davemloft.net>
67940
67941         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
67942         copyright year.
67943         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
67944
67945 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
67946
67947         * resolv/gai_misc.c (handle_requests): Fix struct timespec
67948         normalization.
67949         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
67950         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
67951
67952 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
67953
67954         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
67955         be defined individually, they must be defined as a block.  Define
67956         S for printing a string instead of hidint the different by using a
67957         macro for adding the 'l'.
67958         * stdio-common/tst-fphex-wide.c: Adjust.
67959
67960 2012-03-07  Marek Polacek  <polacek@redhat.com>
67961
67962         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
67963
67964 2012-03-08  Marek Polacek  <polacek@redhat.com>
67965
67966         [BZ #13806]
67967         * stdio-common/Makefile (tests): Add tst-fphex-wide.
67968         * stdio-common/tst-fphex.c: Define a few macros to make the
67969         test reusable.  Use them.
67970         * stdio-common/tst-fphex-wide.c: New file.
67971
67972 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
67973
67974         [BZ #6911]
67975         * manual/macros.texi (gnusystems): New macro.
67976         (nongnusystems): Likewise.
67977         (gnulinuxhurdsystems): Likewise.
67978         (gnuhurdsystems): Likewise..
67979         (gnulinuxsystems): Likewise.
67980         * manual/charset.texi: Use new macros or @theglibc{} to refer to
67981         variants of the GNU system, not "GNU system".
67982         * manual/conf.texi: Likewise.
67983         * manual/errno.texi: Likewise.  Update example of errno macro
67984         expansion.
67985         * manual/filesys.texi: Likewise.
67986         (getumask): Document as specific to GNU/Hurd.
67987         * manual/install.texi: Likewise.  Reword some references to
67988         GNU/Linux.
67989         * manual/intro.texi: Likewise.
67990         * manual/io.texi: Likewise.
67991         (File Name Portability): Detail which constraints are inapplicable
67992         to all GNU systems and which are only inapplicable to GNU/Hurd.
67993         * manual/job.texi: Likewise.
67994         * manual/llio.texi: Likewise.
67995         (O_NOCTTY): Document as present on GNU/Linux.
67996         * manual/maint.texi: Likewise.
67997         * manual/memory.texi: Likewise.
67998         * manual/pattern.texi: Likewise.
67999         * manual/pipe.texi: Likewise.
68000         * manual/process.texi: Likewise.
68001         * manual/resource.texi: Likewise.
68002         (RUSAGE_CHILDREN): Remove statement about specifying a particular
68003         child on GNU/Hurd.
68004         * manual/setjmp.texi: Likewise.
68005         * manual/signal.texi: Likewise.
68006         * manual/startup.texi: Likewise.
68007         * manual/stdio.texi: Likewise.
68008         * manual/terminal.texi: Likewise.
68009         (ONLCR): Document as POSIX.
68010         (OXTABS): Document availability on GNU/Linux as XTABS.
68011         (ONOEOT): Document availability separately from other bits.
68012         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
68013         * manual/time.texi: Likewise.
68014         * manual/users.texi: Likewise.
68015         * INSTALL: Regenerated.
68016         * sysdeps/gnu/errlist.c: Regenerated.
68017
68018         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
68019         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
68020         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
68021         puts.
68022         * configure: Regenerated.
68023
68024 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
68025
68026         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
68027         default includes instead of AC_HEADER_CHECK.
68028         * sysdeps/i386/configure: Regenerated.
68029
68030         [BZ #10716]
68031         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
68032         * math/s_cacoshf.c (__cacoshf): Likewise.
68033         * math/s_cacoshl.c (__cacoshl): Likewise.
68034         * math/s_casinh.c (__casinh): Set signs of result from argument.
68035         * math/s_casinhf.c (__casinhf): Likewise.
68036         * math/s_casinhl.c (__casinhl): Likewise.
68037         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
68038         (casinh_test): Add more tests.
68039         * sysdeps/i386/fpu/libm-test-ulps: Update.
68040         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68041
68042 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
68043
68044         * po/zh_TW.po: Update from translation team.
68045
68046         * login/Makefile (distribute): Remove variable.
68047         * catgets/Makefile: Likewise.
68048         * mach/Makefile: Likewise.
68049         * malloc/Makefile: Likewise.
68050         * misc/Makefile: Likewise.
68051         * iconv/Makefile: Likewise.
68052         * nscd/Makefile: Likewise.
68053         * hurd/Makefile: Likewise.
68054         * manual/Makefile: Likewise.
68055         * locale/Makefile: Likewise.
68056         * intl/Makefile: Likewise.
68057         * conform/Makefile: Likewise.
68058         * nss/Makefile: Likewise.
68059         * time/Makefile: Likewise.
68060         * soft-fp/Makefile: Likewise.
68061         * dirent/Makefile: Likewise.
68062         * gmon/Makefile: Likewise.
68063         * po/Makefile: Likewise.
68064         * rt/Makefile: Likewise.
68065         * socket/Makefile: Likewise.
68066         * math/Makefile: Likewise.
68067         * signal/Makefile: Likewise.
68068         * debug/Makefile: Likewise.
68069         * elf/Makefile: Likewise.
68070         * timezone/Makefile: Likewise.
68071         * stdlib/Makefile: Likewise.
68072         * iconvdata/Makefile: Likewise.
68073         * sunrpc/Makefile: Likewise.
68074         * io/Makefile: Likewise.
68075         * argp/Makefile: Likewise.
68076         * inet/Makefile: Likewise.
68077         * hesiod/Makefile: Likewise.
68078         * grp/Makefile: Likewise.
68079         * csu/Makefile: Likewise.
68080         * wctype/Makefile: Likewise.
68081         * crypt/Makefile: Likewise.
68082         * libio/Makefile: Likewise.
68083         * string/Makefile: Likewise.
68084         * nis/Makefile: Likewise.
68085         * resolv/Makefile: Likewise.
68086         * stdio-common/Makefile: Likewise.
68087         * wcsmbs/Makefile: Likewise.
68088         * dlfcn/Makefile: Likewise.
68089         * posix/Makefile: Likewise.
68090
68091         [BZ #6959]
68092         * timezone/Makefile: Don't install timezone files, just the programs
68093         and scripts.
68094
68095 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
68096
68097         * nss/databases.def: Add missing gshadow entry.
68098
68099         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
68100
68101 2012-03-06  Marek Polacek  <polacek@redhat.com>
68102
68103         [BZ #13726]
68104         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
68105         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
68106         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
68107         * stdio-common/tst-long-dbl-fphex.c: New file.
68108
68109 2012-03-06  David S. Miller  <davem@davemloft.net>
68110
68111         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
68112         (set_obp_int): New function.
68113         (get_obp_int): New function.
68114         (__get_clockfreq_via_dev_openprom): Likewise.
68115         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
68116         Avoid unused variable warnings on 'val' and use builtin_expect.
68117         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
68118         __builtin_expect.
68119         (INLINE_CLONE_SYSCALL): Likewise.
68120
68121 2012-03-05  David S. Miller  <davem@davemloft.net>
68122
68123         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68124
68125 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
68126
68127         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68128
68129         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
68130         only for |x| >= 40.
68131         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
68132
68133 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
68134
68135         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
68136         Replace gettimeofday with __vdso_gettimeofday.
68137
68138         * sysdeps/unix/sysv/linux/x86_64/init-first.c
68139         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
68140         __vdso_clock_gettime and __vdso_getcpu.
68141
68142         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
68143         time with __vdso_time.
68144
68145 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68146
68147         * manual/lang.texi (size_t): Note types to which size_t may be
68148         equivalent with the GNU C Library, but do not describe when
68149         differences between them are significant.
68150
68151 2012-03-05  Andreas Jaeger  <aj@suse.de>
68152
68153         * sysdeps/i386/fpu/libm-test-ulps: Update.
68154
68155 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68156
68157         [BZ #3976]
68158         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
68159         (__ieee754_pow): Save and restore rounding mode and use
68160         round-to-nearest for main computations.
68161         * math/libm-test.inc (pow_test_tonearest): New function.
68162         (pow_test_towardzero): Likewise.
68163         (pow_test_downward): Likewise.
68164         (pow_test_upward): Likewise.
68165         (main): Call the new functions.
68166         * sysdeps/i386/fpu/libm-test-ulps: Update.
68167         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68168
68169         [BZ #3976]
68170         * math/libm-test.inc (cosh_test_tonearest): New function.
68171         (cosh_test_towardzero): Likewise.
68172         (cosh_test_downward): Likewise.
68173         (cosh_test_upward): Likewise.
68174         (sinh_test_tonearest): Likewise.
68175         (sinh_test_towardzero): Likewise.
68176         (sinh_test_downward): Likewise.
68177         (sinh_test_upward): Likewise.
68178         (main): Call the new functions.
68179         * sysdeps/i386/fpu/libm-test-ulps: Update.
68180         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68181
68182 2012-03-05  Tom de Vries  <tom@codesourcery.com>
68183
68184         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
68185         default stack guard is set in last bytes.
68186         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
68187
68188 2012-03-05  Kees Cook  <keescook@chromium.org>
68189
68190         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
68191
68192         [BZ #13656]
68193         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
68194         possibly allocate from heap instead of stack.
68195         * stdio-common/bug-vfprintf-nargs.c: New file.
68196         * stdio-common/Makefile (tests): Add nargs overflow test.
68197
68198 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
68199
68200         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68201
68202 2012-03-03  Marek Polacek  <polacek@redhat.com>
68203
68204         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
68205         * math/math_private.h: Likewise.
68206         * stdlib/tst-strtod.c: Likewise.
68207         * sysdeps/i386/i486/bits/atomic.h: Likewise.
68208         * sysdeps/x86_64/bits/atomic.h: Likewise.
68209
68210 2012-03-02  David S. Miller  <davem@davemloft.net>
68211
68212         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
68213         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
68214         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
68215         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
68216         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
68217         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
68218         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
68219         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
68220
68221 2012-03-02  Roland McGrath  <roland@hack.frob.com>
68222
68223         [BZ #13792]
68224         * manual/examples/README: New file, says the example source files
68225         can be used under GPL>=2.
68226         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
68227         line containing just "*/".
68228         * manual/examples/add.c: Add copyright header (GPL>=2).
68229         * manual/examples/argp-ex1.c: Likewise.
68230         * manual/examples/argp-ex2.c: Likewise.
68231         * manual/examples/argp-ex3.c: Likewise.
68232         * manual/examples/argp-ex4.c: Likewise.
68233         * manual/examples/atexit.c: Likewise.
68234         * manual/examples/db.c: Likewise.
68235         * manual/examples/dir.c: Likewise.
68236         * manual/examples/dir2.c: Likewise.
68237         * manual/examples/execinfo.c: Likewise.
68238         * manual/examples/filecli.c: Likewise.
68239         * manual/examples/filesrv.c: Likewise.
68240         * manual/examples/fmtmsgexpl.c: Likewise.
68241         * manual/examples/genpass.c: Likewise.
68242         * manual/examples/inetcli.c: Likewise.
68243         * manual/examples/inetsrv.c: Likewise.
68244         * manual/examples/isockad.c: Likewise.
68245         * manual/examples/longopt.c: Likewise.
68246         * manual/examples/memopen.c: Likewise.
68247         * manual/examples/memstrm.c: Likewise.
68248         * manual/examples/mkfsock.c: Likewise.
68249         * manual/examples/mkisock.c: Likewise.
68250         * manual/examples/mygetpass.c: Likewise.
68251         * manual/examples/pipe.c: Likewise.
68252         * manual/examples/popen.c: Likewise.
68253         * manual/examples/rprintf.c: Likewise.
68254         * manual/examples/search.c: Likewise.
68255         * manual/examples/select.c: Likewise.
68256         * manual/examples/setjmp.c: Likewise.
68257         * manual/examples/sigh1.c: Likewise.
68258         * manual/examples/sigusr.c: Likewise.
68259         * manual/examples/stpcpy.c: Likewise.
68260         * manual/examples/strdupa.c: Likewise.
68261         * manual/examples/strftim.c: Likewise.
68262         * manual/examples/strncat.c: Likewise.
68263         * manual/examples/subopt.c: Likewise.
68264         * manual/examples/swapcontext.c: Likewise.
68265         * manual/examples/termios.c: Likewise.
68266         * manual/examples/testopt.c: Likewise.
68267         * manual/examples/testpass.c: Likewise.
68268         * manual/examples/timeval_subtract.c: Likewise.
68269
68270         [BZ #13792]
68271         * manual/time.texi (Elapsed Time): Move timeval_subtract example
68272         function to ...
68273         * manual/timeval_subtract.c.texi: ... here, new file.
68274
68275 2012-03-02  David S. Miller  <davem@davemloft.net>
68276
68277         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
68278
68279 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
68280
68281         [BZ #3976]
68282         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
68283         (__sin): Save and restore rounding mode and use round-to-nearest
68284         for all computations.
68285         (__cos): Save and restore rounding mode and use round-to-nearest
68286         for all computations.
68287         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
68288         <fenv.h>.
68289         (tan): Save and restore rounding mode and use round-to-nearest for
68290         all computations.
68291         * math/libm-test.inc (cos_test_tonearest): New function.
68292         (cos_test_towardzero): Likewise.
68293         (cos_test_downward): Likewise.
68294         (cos_test_upward): Likewise.
68295         (sin_test_tonearest): Likewise.
68296         (sin_test_towardzero): Likewise.
68297         (sin_test_downward): Likewise.
68298         (sin_test_upward): Likewise.
68299         (tan_test_tonearest): Likewise.
68300         (tan_test_towardzero): Likewise.
68301         (tan_test_downward): Likewise.
68302         (tan_test_upward): Likewise.
68303         (main): Call the new functions.
68304         * sysdeps/i386/fpu/libm-test-ulps: Update.
68305         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68306
68307         [BZ #10135]
68308         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
68309         small n, then large n, before computing and testing k+n.
68310         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
68311         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
68312         Likewise.
68313         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
68314         Likewise.
68315         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
68316         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
68317         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
68318         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
68319         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
68320         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
68321         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
68322         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
68323         * math/libm-test.inc (scalbn_test): Add more tests.
68324         (scalbln_test): Likewise.
68325
68326         * manual/filesys.texi (mode_t): Describe constraints on size and
68327         signedness, not exact equivalence to a particular type.
68328         (ino_t): Likewise.
68329         (ino64_t): Likewise.
68330         (dev_t): Likewise.
68331         (nlink_t): Likewise.
68332         (blkcnt_t): Likewise.
68333         (blkcnt64_t): Likewise.
68334         * manual/llio.texi (off_t): Likewise.
68335
68336         [BZ #3976]
68337         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
68338         (__ieee754_exp): Save and restore rounding mode and use
68339         round-to-nearest for all computations.
68340         * math/libm-test.inc (exp_test_tonearest): New function.
68341         (exp_test_towardzero): Likewise.
68342         (exp_test_downward): Likewise.
68343         (exp_test_upward): Likewise.
68344         (main): Call the new functions.
68345         * sysdeps/i386/fpu/libm-test-ulps: Update.
68346         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68347
68348 2012-03-01  Chris Demetriou  <cgd@google.com>
68349
68350         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
68351         have predictable order.
68352
68353 2012-03-01  David S. Miller  <davem@davemloft.net>
68354
68355         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
68356
68357         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
68358         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
68359         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
68360         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
68361
68362         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
68363         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
68364         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
68365         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
68366         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
68367         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
68368         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
68369         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
68370         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
68371
68372         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68373
68374         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
68375         * sysdeps/sparc/fpu/libm-test-ulps: to here.
68376         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
68377
68378         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
68379         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
68380         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68381         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
68382         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
68383         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
68384         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
68385         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
68386         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68387         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
68388         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
68389         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68390         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
68391         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68392         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68393         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68394         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
68395         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
68396         * sysdeps/sparc/elf/configure: Regenerated.
68397
68398 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
68399
68400         * configure.in (AS, LD): Require binutils 2.20 or later.
68401         * configure: Regenerated.
68402         * manual/install.texi (Tools for Compilation): Give binutils 2.20
68403         as required minimum version.
68404         * INSTALL: Regenerated.
68405
68406         [BZ #2541]
68407         [BZ #4108]
68408         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
68409         before squaring exponent.
68410         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
68411         bottom long double and 27 bits of top long double before squaring
68412         exponent.
68413         * math/libm-test.inc (erfc_test): Add more tests.
68414         * sysdeps/i386/fpu/libm-test-ulps: Update.
68415         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68417
68418 2012-03-01  Kai Tietz  <ktietz@redhat.com>
68419
68420         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
68421         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
68422         containing bit-fields.
68423         * soft-fp/extended.h (_FP_UNION_E): Likewise.
68424         * soft-fp/single.h (_FP_UNION_S): Likewise.
68425         * soft-fp/double.h (_FP_UNION_D): Likewise.
68426
68427 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68428
68429         [BZ #13786]
68430         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
68431         not include ../strcmp.S.
68432         [USE_AS_STRNCASECMP_L]: Likewise.
68433         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
68434         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
68435         * sysdeps/i386/i686/multiarch/strncase_l-c.c
68436         (__strncasecmp_l_ia32): Define as alias to
68437         __strncasecmp_l_nonascii.
68438
68439         [BZ #5794]
68440         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68441         * sysdeps/i386/fpu/libm-test-ulps: Update.
68442         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68443
68444         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68446
68447 2012-02-29  Jeff Law  <law@redhat.com>
68448
68449         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68450         out of bounds read.
68451
68452 2012-02-29  Marek Polacek  <polacek@redhat.com>
68453
68454         [BZ #13706]
68455         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68456         * elf/Makefile: Add rules to run tst-unused-dep.out.
68457
68458 2012-02-28  David S. Miller  <davem@davemloft.net>
68459
68460         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68461         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68462         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68463         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68464         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68465         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68466
68467 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68468
68469         * math/libm-test.inc (llround_test): Move one test from
68470         lround_test.  Use TEST_f_L in moved test.
68471         (lround_test): Move misplaced test to llround_test.  Add testcase
68472         from bug 2561.
68473
68474 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68475
68476         * sysdeps/x86_64/fpu/e_expf.S: New file.
68477         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68478
68479 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68480
68481         [BZ #13637]
68482         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68483         of remain_len that may cause incomplete multi-byte character and
68484         false match.
68485         * posix/bug-regex33.c: New file.
68486         * posix/Makefile (tests): Add bug-regex33.
68487
68488 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68489
68490         * manual/macros.texi: New file.
68491         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68492         * manual/libc.texinfo: Include macros.texi.
68493         * manual/creatute.texi: Likewise.
68494         * manual/install.texi: Likewise.
68495         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68496         @glibcadj{} in references to the GNU C Library.
68497         * manual/charset.texi: Likewise.
68498         * manual/conf.texi: Likewise.
68499         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68500         when not using those macros.
68501         * manual/creature.texi: Likewise.
68502         * manual/crypt.texi: Likewise.
68503         * manual/errno.texi: Likewise.
68504         * manual/filesys.texi: Likewise.
68505         * manual/header.texi: Likewise.
68506         * manual/install.texi: Likewise.
68507         * manual/intro.texi: Likewise.
68508         * manual/io.texi: Likewise.
68509         * manual/job.texi: Likewise.
68510         * manual/lang.texi: Likewise.
68511         * manual/libc.texiinfo: Likewise.
68512         * manual/llio.texi: Likewise.
68513         * manual/locale.texi: Likewise.
68514         * manual/maint.texi: Likewise.
68515         * manual/math.texi: Likewise.
68516         * manual/memory.texi: Likewise.
68517         * manual/message.texi: Likewise.
68518         * manual/nss.texi: Likewise.
68519         * manual/pattern.texi: Likewise.
68520         * manual/process.texi: Likewise.
68521         * manual/resource.texi: Likewise.
68522         * manual/search.texi: Likewise.
68523         * manual/setjmp.texi: Likewise.
68524         * manual/signal.texi: Likewise.
68525         * manual/socket.texi: Likewise.
68526         * manual/startup.texi: Likewise.
68527         * manual/stdio.texi: Likewise.
68528         * manual/string.texi: Likewise.
68529         * manual/sysinfo.texi: Likewise.
68530         * manual/syslog.texi: Likewise.
68531         * manual/terminal.texi: Likewise.
68532         * manual/time.texi: Likewise.
68533         * manual/users.texi: Likewise.
68534         * INSTALL: Regenerated.
68535         * NOTES: Regenerated.
68536         * sysdeps/gnu/errlist.c: Regenerated.
68537
68538 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68539
68540         * include/dirent.h: Include <dirstream.h> before
68541         <dirent/dirent.h>.
68542
68543 2012-02-28  David S. Miller  <davem@davemloft.net>
68544
68545         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68546         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68547         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68548         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68549
68550 2012-02-27  David S. Miller  <davem@davemloft.net>
68551
68552         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68553         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68554         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68555         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68556
68557         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68558         frame pointer instead of stack pointer relative arg slot.
68559         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68560         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68561         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68562
68563 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68564
68565         [BZ #3992]
68566         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68567
68568 2012-02-27  David S. Miller  <davem@davemloft.net>
68569
68570         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68571         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68572         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68573         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68574         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68575         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68576         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68577         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68578
68579 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68580
68581         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68582         later.  Allow versions 5-9.
68583         * configure: Regenerated.
68584         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68585         required minimum version and 4.6 as recommended version.  Do not
68586         mention bugs in GCC 2.7 and 2.8.
68587         * INSTALL: Regenerated.
68588
68589 2012-02-27  David S. Miller  <davem@davemloft.net>
68590
68591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68592         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68593         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68594         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68595         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68596         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68597         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68598         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68599
68600         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68601         manipulate bits before adding and subtracting TWO112[sx].
68602         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68603
68604 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68605
68606         [BZ #13775]
68607         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68608         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68609         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68610         being in POSIX, because they are in 1003.1-2008.
68611
68612         * rt/tst-aio.c: Include <fcntl.h>.
68613         * rt/tst-aio7.c: Likewise.
68614         * rt/tst-aio64.c: Likewise.
68615
68616         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68617
68618 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68619
68620         * manual/install.texi (--with-headers): Describe headers as
68621         interface headers, not private headers.
68622         (Specific advice for GNU/Linux systems): Describe use of headers
68623         from "make headers_install", not private headers from older
68624         kernels.
68625         * INSTALL: Regenerated.
68626         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68627         Change to 2.6.19.
68628         * sysdeps/unix/sysv/linux/configure: Regenerated.
68629
68630         * manual/llio.texi (fclean): Remove documentation.
68631
68632         * manual/Makefile (libc-texi-generated): New variable.  Include
68633         version.texi.
68634         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68635         $(libc-texi-generated), not duplicated list of files.
68636         (version.texi, stamp-version): New rules.
68637         (realclean): Remove $(libc-texi-generated), not individual files
68638         from that list.  Do not remove dir-add.texinfo.
68639         * manual/libc.texinfo: Comment out uses of edition numbers and
68640         references to printed manual.  Remove last-updated dates.
68641         (EDITION): Comment out.
68642         (ISBN): Likewise.
68643         (VERSION, UPDATED): Remove.
68644         (version.texi): Include.
68645
68646 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68647
68648         * sysdeps/posix/spawni.c: Include <signal.h>.
68649         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68650         * sysdeps/pthread/aio_fsync.c: Likewise.
68651
68652 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68653
68654         * conform/Makefile (tests): Run only when not cross-compiling and
68655         when fast-check is not defined.
68656
68657         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68658         * conform/data/limits.h-data: Fixes for POSIX2008.
68659         * conform/run-conformtest.sh: Run all tests.
68660         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68661         headers.
68662         * include/bits/dlfcn.h: Likewise.
68663         * include/langinfo.h: Likewise.
68664         * include/monetary.h: Likewise.
68665         * include/sys/poll.h: Likewise.
68666
68667         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68668         for __USE_GNU.
68669         * posix/spawn.h: Define __need_sigset_t.
68670         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68671         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68672         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68673         to get sigevent_t only.
68674         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68675         only for __USE_GNU.
68676         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68677         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68678         process_vm_writev only for __USE_GNU.
68679         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68680
68681         * conform/Makefile: For now ignore errors from run-conformtest.
68682         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68683         POSIX to avoid namespace pollution.  Don't prepend headers.
68684         * conform/data/aio.h-data: Fixes for POSIX testing.
68685         * conform/data/fcntl.h-data: Likewise.
68686         * conform/data/glob.h-data: Likewise.
68687         * conform/data/grp.h-data: Likewise.
68688         * conform/data/pthread.h-data: Likewise.
68689         * conform/data/pwd.h-data: Likewise.
68690         * conform/data/signal.h-data: Likewise.
68691         * conform/data/spawn.h-data: Likewise.
68692         * conform/data/stdio.h-data: Likewise.
68693         * conform/data/stdlib.h-data: Likewise.
68694         * conform/data/stropts.h-data: Likewise.
68695         * conform/data/sys/mman.h-data: Likewise.
68696         * conform/data/sys/stat.h-data: Likewise.
68697         * conform/data/sys/types.h-data: Likewise.
68698         * conform/data/sys/wait.h-data: Likewise.
68699         * conform/data/time.h-data: Likewise.
68700         * conform/data/unistd.h-data: Likewise.
68701         * conform/data/utime.h-data: Likewise.
68702
68703         * io/sys/stat.h: fchmod was always in POSIX.
68704         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68705         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68706         * rt/aio.h: Define __need_timespec before including <time.h>.
68707         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68708         struct.  Add forward declaration of pthread_attr_t and use it in
68709         sigevent.
68710         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68711         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68712         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68713         always remove CLK_TCK definition.
68714
68715 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68716
68717         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68718
68719 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68720
68721         * conform/run-conformtest.sh: New file.
68722         * conform/Makefile: Run run-conformtest for tests.
68723         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68724         support.
68725
68726         * conform/data/uchar.h-data: New file.
68727         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68728         * conform/data/arpa/inet.h-data: Likewise.
68729         * conform/data/assert.h-data: Likewise.
68730         * conform/data/complex.h-data: Likewise.
68731         * conform/data/cpio.h-data: Likewise.
68732         * conform/data/ctype.h-data: Likewise.
68733         * conform/data/dirent.h-data: Likewise.
68734         * conform/data/dlfcn.h-data: Likewise.
68735         * conform/data/errno.h-data: Likewise.
68736         * conform/data/fcntl.h-data: Likewise.
68737         * conform/data/float.h-data: Likewise.
68738         * conform/data/fmtmsg.h-data: Likewise.
68739         * conform/data/fnmatch.h-data: Likewise.
68740         * conform/data/ftw.h-data: Likewise.
68741         * conform/data/glob.h-data: Likewise.
68742         * conform/data/grp.h-data: Likewise.
68743         * conform/data/iconv.h-data: Likewise.
68744         * conform/data/inttypes.h-data: Likewise.
68745         * conform/data/langinfo.h-data: Likewise.
68746         * conform/data/libgen.h-data: Likewise.
68747         * conform/data/limits.h-data: Likewise.
68748         * conform/data/locale.h-data: Likewise.
68749         * conform/data/math.h-data: Likewise.
68750         * conform/data/monetary.h-data: Likewise.
68751         * conform/data/mqueue.h-data: Likewise.
68752         * conform/data/ndbm.h-data: Likewise.
68753         * conform/data/net/if.h-data: Likewise.
68754         * conform/data/netdb.h-data: Likewise.
68755         * conform/data/netinet/in.h-data: Likewise.
68756         * conform/data/nl_types.h-data: Likewise.
68757         * conform/data/poll.h-data: Likewise.
68758         * conform/data/pthread.h-data: Likewise.
68759         * conform/data/pwd.h-data: Likewise.
68760         * conform/data/regex.h-data: Likewise.
68761         * conform/data/sched.h-data: Likewise.
68762         * conform/data/search.h-data: Likewise.
68763         * conform/data/semaphore.h-data: Likewise.
68764         * conform/data/setjmp.h-data: Likewise.
68765         * conform/data/signal.h-data: Likewise.
68766         * conform/data/spawn.h-data: Likewise.
68767         * conform/data/stdarg.h-data: Likewise.
68768         * conform/data/stdio.h-data: Likewise.
68769         * conform/data/stdlib.h-data: Likewise.
68770         * conform/data/string.h-data: Likewise.
68771         * conform/data/strings.h-data: Likewise.
68772         * conform/data/stropts.h-data: Likewise.
68773         * conform/data/sys/ipc.h-data: Likewise.
68774         * conform/data/sys/mman.h-data: Likewise.
68775         * conform/data/sys/msg.h-data: Likewise.
68776         * conform/data/sys/resource.h-data: Likewise.
68777         * conform/data/sys/select.h-data: Likewise.
68778         * conform/data/sys/sem.h-data: Likewise.
68779         * conform/data/sys/shm.h-data: Likewise.
68780         * conform/data/sys/socket.h-data: Likewise.
68781         * conform/data/sys/stat.h-data: Likewise.
68782         * conform/data/sys/statvfs.h-data: Likewise.
68783         * conform/data/sys/time.h-data: Likewise.
68784         * conform/data/sys/timeb.h-data: Likewise.
68785         * conform/data/sys/times.h-data: Likewise.
68786         * conform/data/sys/types.h-data: Likewise.
68787         * conform/data/sys/uio.h-data: Likewise.
68788         * conform/data/sys/un.h-data: Likewise.
68789         * conform/data/sys/utsname.h-data: Likewise.
68790         * conform/data/sys/wait.h-data: Likewise.
68791         * conform/data/syslog.h-data: Likewise.
68792         * conform/data/tar.h-data: Likewise.
68793         * conform/data/termios.h-data: Likewise.
68794         * conform/data/utime.h-data: Likewise.
68795         * conform/data/utmpx.h-data: Likewise.
68796         * conform/data/varargs.h-data: Likewise.
68797         * conform/data/wchar.h-data: Likewise.
68798         * conform/data/wctype.h-data: Likewise.
68799         * conform/data/wordexp.h-data: Likewise.
68800
68801         * include/stropts.h: New file.
68802         * include/uchar.h: New file.
68803         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68804         * include/assert.h: Likewise.
68805         * include/ctype.h: Likewise.
68806         * include/dirent.h: Likewise.
68807         * include/dlfcn.h: Likewise.
68808         * include/fcntl.h: Likewise.
68809         * include/fnmatch.h: Likewise.
68810         * include/glob.h: Likewise.
68811         * include/grp.h: Likewise.
68812         * include/libio.h: Likewise.
68813         * include/locale.h: Likewise.
68814         * include/math.h: Likewise.
68815         * include/net/if.h: Likewise.
68816         * include/netdb.h: Likewise.
68817         * include/netinet/in.h: Likewise.
68818         * include/pthread.h: Likewise.
68819         * include/pwd.h: Likewise.
68820         * include/regex.h: Likewise.
68821         * include/sched.h: Likewise.
68822         * include/search.h: Likewise.
68823         * include/setjmp.h: Likewise.
68824         * include/signal.h: Likewise.
68825         * include/stdio.h: Likewise.
68826         * include/stdlib.h: Likewise.
68827         * include/string.h: Likewise.
68828         * include/sys/cdefs.h: Likewise.
68829         * include/sys/mman.h: Likewise.
68830         * include/sys/msg.h: Likewise.
68831         * include/sys/resource.h: Likewise.
68832         * include/sys/select.h: Likewise.
68833         * include/sys/socket.h: Likewise.
68834         * include/sys/stat.h: Likewise.
68835         * include/sys/statvfs.h: Likewise.
68836         * include/sys/time.h: Likewise.
68837         * include/sys/times.h: Likewise.
68838         * include/sys/uio.h: Likewise.
68839         * include/sys/utsname.h: Likewise.
68840         * include/sys/wait.h: Likewise.
68841         * include/termios.h: Likewise.
68842         * include/time.h: Likewise.
68843         * include/ulimit.h: Likewise.
68844         * include/unistd.h: Likewise.
68845         * include/utime.h: Likewise.
68846         * include/wchar.h: Likewise.
68847         * include/wctype.h: Likewise.
68848         * include/wordexp.h: Likewise.
68849
68850         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68851
68852         * time/time.h: TIME_UTC must be a macro.
68853         Make timespec_get available for ISO C11 only as well.
68854
68855 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68856
68857         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68858         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68859
68860 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68861
68862         * configure.in: Use -o not -a in test for unsupported multi-arch.
68863
68864 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68865
68866         * manual/texinfo.tex: Update to version 2012-01-19.16.
68867
68868 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68869
68870         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68871
68872 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68873
68874         [BZ #13738]
68875         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68876         * manual/fdl-1.3.texi: New file.
68877         * manual/fdl-1.1.texi: File removed.
68878
68879         [BZ #13738]
68880         * manual/libc.texinfo (FDL_VERSION): New @set.
68881         Use it for mention of FDL in cover text.
68882         (Documentation License): Use it in @include file name.
68883
68884 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68885             Roland McGrath  <roland@hack.frob.com>
68886
68887         [BZ #5461]
68888         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68889         (not LONG_LONG_MAX and LONG_LONG_MIN.
68890         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68891         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68892         name.
68893         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68894
68895 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68896
68897         [BZ #2547]
68898         [BZ #11365]
68899         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68900         manipulate bits before adding and subtracting TWO23[sx].
68901         * math/libm-test.inc (nearbyint_test): Add more tests.
68902
68903 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68904
68905         [BZ #2548]
68906         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
68907         bits before adding and subtracting TWO23[sx].
68908         * math/libm-test.inc (rint_test): Add more tests.
68909         (rint_test_tonearest): Likewise.
68910         (rint_test_towardzero): Likewise.
68911         (rint_test_downward): Likewise.
68912         (rint_test_upward: Likewise.
68913
68914 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68915
68916         [BZ #10110]
68917         * include/stdc-predef.h: New file.  Extracted from features.h.
68918         * include/features.h: Include stdc-predef.h.
68919         * Makefile (headers): Add stdc-predef.h.
68920         * CONFORMANCE (Compiler limitations): Update.
68921
68922 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68923
68924         * manual/libc.texinfo (VERSION, UPDATED): Revert.
68925
68926 2012-02-21  David S. Miller  <davem@davemloft.net>
68927
68928         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
68929         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68930
68931 2012-02-20  David S. Miller  <davem@davemloft.net>
68932
68933         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
68934         using a normal save/restore sequence, rather than allocating a
68935         dummy stack frame just to store a frame pointer and restore.
68936         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68937
68938 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68939
68940         * manual/install.texi: Fix stray word in line-wrapped comment.
68941
68942 2012-02-20  David S. Miller  <davem@davemloft.net>
68943
68944         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
68945         both binutils and gcc support GOTDATA.
68946
68947         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
68948         "rd %pc" in the PIC register setup sequences.
68949
68950         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
68951         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
68952         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68953         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
68954         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68955         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
68956         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
68957         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68958         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
68959         (SYSCALL_ERROR_HANDLER): Likewise.
68960         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68961         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68962         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
68963         (SYSCALL_ERROR_HANDLER): Likewise.
68964
68965         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
68966         (HAVE_GCC_GOTDATA): New.
68967         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
68968         relocation support in both binutils and gcc.
68969         * sysdeps/sparc/elf/configure: Regenerate.
68970
68971         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
68972         * sysdeps/sparc/sparc32/elf/configure: Delete.
68973         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
68974         * sysdeps/sparc/sparc64/elf/configure: Delete.
68975         * sysdeps/sparc/elf/configure.in: New file.
68976         * sysdeps/sparc/elf/configure: Generate.
68977
68978         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
68979         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
68980         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
68981         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
68982         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
68983
68984 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68985
68986         * manual/install.texi: Do not mention specific glibc version
68987         numbers.
68988         * manual/libc.texinfo (VERSION, UPDATED): Update.
68989         (@copying): Use @copyright{} and range of years.
68990
68991 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68992
68993         [BZ #13695]
68994         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
68995         [crti.S not in sysdirs] (generated): Do not append.
68996         [crti.S not in sysdirs] (omit-deps): Likewise.
68997         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
68998         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
68999         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
69000         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
69001         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
69002         Likewise.
69003         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
69004         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
69005         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
69006         * csu/defs.awk: Remove file.
69007         * sysdeps/generic/initfini.c: Likewise.
69008         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
69009         variable.
69010         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
69011         Likewise.
69012
69013 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69014
69015         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
69016         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
69017         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
69018         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
69019         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69020         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
69021         <bits/epoll.h>.
69022         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
69023         (__EPOLL_PACKED): Define to empty if not defined by
69024         <bits/epoll.h>.
69025         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
69026         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69027         bits/epoll.h.
69028
69029 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69030
69031         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
69032         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
69033         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
69034         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
69035         <bits/timerfd.h>.
69036         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
69037         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69038         bits/timerfd.h.
69039
69040 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69041
69042         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
69043         in C locale.
69044         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
69045         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
69046         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
69047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69048
69049 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
69050
69051         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69052         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69053
69054 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
69055
69056         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
69057         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
69058         defined.
69059         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
69060         Likewise.
69061         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
69062         entry for 2.16.
69063
69064 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
69065
69066         * math/w_acos.c: Use non-signaling floating-point comparisons.
69067         * math/w_acosf.c: Likewise.
69068         * math/w_acosh.c: Likewise.
69069         * math/w_acoshf.c: Likewise.
69070         * math/w_acoshl.c: Likewise.
69071         * math/w_acosl.c: Likewise.
69072         * math/w_asin.c: Likewise.
69073         * math/w_asinf.c: Likewise.
69074         * math/w_asinl.c: Likewise.
69075         * math/w_atanh.c: Likewise.
69076         * math/w_atanhf.c: Likewise.
69077         * math/w_atanhl.c: Likewise.
69078         * math/w_exp2.c: Likewise.
69079         * math/w_exp2f.c: Likewise.
69080         * math/w_exp2l.c: Likewise.
69081         * math/w_j0.c: Likewise.
69082         * math/w_j0f.c: Likewise.
69083         * math/w_j0l.c: Likewise.
69084         * math/w_j1.c: Likewise.
69085         * math/w_j1f.c: Likewise.
69086         * math/w_j1l.c: Likewise.
69087         * math/w_jn.c: Likewise.
69088         * math/w_jnf.c: Likewise.
69089         * math/w_log.c: Likewise.
69090         * math/w_log10.c: Likewise.
69091         * math/w_log10f.c: Likewise.
69092         * math/w_log10l.c: Likewise.
69093         * math/w_log2.c: Likewise.
69094         * math/w_log2f.c: Likewise.
69095         * math/w_log2l.c: Likewise.
69096         * math/w_logf.c: Likewise.
69097         * math/w_logl.c: Likewise.
69098         * math/w_sqrt.c: Likewise.
69099         * math/w_sqrtf.c: Likewise.
69100         * math/w_sqrtl.c: Likewise.
69101         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
69102         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
69103         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
69104         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
69105         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
69106
69107 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69108
69109         [BZ #9739]
69110         * manual/string.texi (strnlen): Use correct parameter name in
69111         equivalent expression.
69112
69113 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69114
69115         [BZ #11174]
69116         * manual/users.texi (seteuid): Consistently use neweuid for
69117         argument name.
69118
69119 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69120
69121         [BZ #13704]
69122         * manual/nss.texi (Services in the NSS configuration): Correct
69123         list of services in example configuration file.
69124
69125 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
69126
69127         [BZ #11322]
69128         * manual/arith.texi: Remove statements about negative zero
69129         behaving identically to zero.
69130
69131 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69132
69133         [BZ #5993]
69134         * manual/install.texi: Do not document upgrading from libc5.
69135
69136 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69137
69138         [BZ #4596]
69139         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
69140
69141 2012-02-18  David S. Miller  <davem@davemloft.net>
69142
69143         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
69144         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
69145         %o7 across the call.
69146         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
69147         instead.
69148         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
69149         SETUP_PIC_REG_LEAF.
69150         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
69151         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
69152         * sysdeps/sparc/crtn.S: Likewise.
69153
69154 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
69155
69156         * aout/Makefile: Remove.
69157
69158 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
69159
69160         [BZ #13058]
69161         * manual/examples/argp-ex1.c (main): Format definition in GNU
69162         style.
69163         * manual/examples/argp-ex2.c (main): Likewise.
69164         * manual/examples/argp-ex3.c (main): Likewise.
69165         * manual/examples/argp-ex4.c (main): Likewise.
69166         * manual/examples/longopt.c (main): Use new-style prototype
69167         definition.
69168         * manual/examples/strncat.c (main): Specify return type and use
69169         (void) for arguments.
69170         * manual/examples/subopt.c (main): Use char **argv argument.
69171
69172 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69173
69174         [BZ #5077]
69175         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
69176         rounding modes.
69177
69178 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
69179
69180         [BZ #6907]
69181         * manual/string.texi (strchr): Change when strchrnul is
69182         recommended.
69183
69184 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
69185
69186         [BZ #174]
69187         * manual/locale.texi (setlocale): Document LOCPATH.
69188
69189 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69190
69191         [BZ #10210]
69192         * manual/process.texi (execle): Move @dots{} before last argument.
69193
69194 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
69195
69196         [BZ #12047]
69197         * manual/charset.texi (Generic Charset Conversion): Fix typo
69198         (LC_TYPE -> LC_CTYPE).
69199
69200 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
69201
69202         [BZ #5805]
69203         * manual/arith.texi (scalbn): Use @var{} on parameter names.
69204         (scalbnf): Likewise.
69205         (scalbnl): Likewise.
69206         (scalbln): Likewise.
69207         (scalblnf): Likewise.
69208         (scalblnl): Likewise.
69209         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
69210         (vwarnx): Likewise.
69211         (verr): Likewise.
69212         (verrx): Likewise.
69213         * manual/filesys.texi (telldir): Use braces around return type.
69214         * manual/llio.texi (mmap): Add space after comma.
69215         (mmap64): Likewise.
69216         * manual/math.texi (jn): Use @var{} on parameter names.
69217         (jnf): Likewise.
69218         (jnl): Likewise.
69219         (yn): Likewise.
69220         (ynf): Likewise.
69221         (ynl): Likewise.
69222         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
69223         line.
69224         * manual/resource.texi (ulimit): Use @dots{} instead of literal
69225         "...".
69226         (sched_get_priority_min): Remove semicolon on @deftypefun line.
69227         (sched_get_priority_max): Likewise.
69228         * manual/signal.texi (sigvec): Add space after comma.
69229         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
69230         names.
69231         (if_indextoname): Likewise.
69232         (if_freenameindex): Likewise.
69233         (sendto): Use ',' instead of '.' in prototype.
69234         * manual/startup.texi (syscall): Use @dots{} instead of literal
69235         "...".
69236         * manual/stdio.texi (__fpending): Separate initial words of
69237         paragraph from @deftypefun line.
69238         * manual/syslog.texi (syslog): Use @dots{} instead of literal
69239         "...".
69240         (vsyslog): Use @var{} on parameter names.
69241         * manual/terminal.texi (stty): Use @var{} on parameter names.
69242         * manual/users.texi (getutmp): Use @var{} on parameter names.
69243         (getutmpx): Likewise.
69244
69245 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69246
69247         [BZ #6884]
69248         * manual/stdio.texi (fopen): Fix typos in description of
69249         ",ccs=STRING".
69250
69251 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
69252
69253         [BZ #4026]
69254         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
69255         get clock_id definition.
69256
69257 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
69258
69259         [BZ #4822]
69260         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
69261         (madvise): Cast every argument to void on its own.
69262
69263 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69264
69265         [BZ #9902]
69266         * manual/startup.texi (Exit Status): Fix typo.
69267
69268 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69269
69270         [BZ #10140]
69271         * manual/examples/argp-ex1.c: Include <stdlib.h>.
69272         * manual/examples/argp-ex2.c: Likewise.
69273         * manual/examples/argp-ex3.c: Likewise.
69274
69275 2012-02-16  Richard Henderson  <rth@redhat.com>
69276
69277         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
69278         * sysdeps/s390/s390-32/initfini.c: Remove.
69279         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
69280         * sysdeps/s390/s390-64/initfini.c: Remove.
69281
69282 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
69283
69284         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
69285         compiler output for sysdeps/generic/initfini.c.
69286         * sysdeps/sh/elf/initfini.c: Remove file.
69287
69288 2012-02-16  David S. Miller  <davem@davemloft.net>
69289
69290         [BZ #11494]
69291         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
69292
69293         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
69294         * sysdeps/sparc/crti.S: New file.
69295         * sysdeps/sparc/crtn.S: New file.
69296         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
69297         * sysdeps/sparc/sparc64/Makefile: Likewise.
69298
69299 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
69300
69301         [BZ #3335]
69302         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
69303
69304 2012-02-15  Roland McGrath  <roland@hack.frob.com>
69305
69306         [BZ #4822]
69307         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
69308
69309         * mach/devstream.c (cookie_io_functions_t): Macro removed.
69310         (write, read, close): Likewise.
69311         Patch by Aurelien Jarno <aurelien@aurel32.net>.
69312
69313 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
69314
69315         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
69316         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
69317         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
69318         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
69319         <bits/signalfd.h>.
69320         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
69321         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69322         bits/signalfd.h.
69323
69324 2012-02-14  Marek Polacek  <polacek@redhat.com>
69325
69326         * sysdeps/x86_64/crti.S: New file.
69327         * sysdeps/x86_64/crtn.S: New file.
69328         * sysdeps/x86_64/elf/initfini.c: Remove file.
69329
69330 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69331
69332         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
69333         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
69334         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
69335         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
69336         <bits/inotify.h>.
69337         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
69338         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69339         bits/inotify.h.
69340
69341 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69342
69343         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
69344         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
69345         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
69346         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
69347         <bits/eventfd.h>.
69348         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
69349         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69350         bits/eventfd.h.
69351
69352 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
69353
69354         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
69355         __feraiseexcept instead of feraiseexcept.
69356
69357         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
69358         nanosleep invocations.
69359         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
69360         strings, and add error checking for a nanosleep invocations.
69361
69362 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
69363
69364         Replace FSF snail mail address with URLs, as per GNU coding standards.
69365         Most of the snail mail addresses were wrong anyway, and omitting
69366         them makes the source code easier to maintain.  Almost all of the
69367         changes are to license notices and to locale LC_IDENTIFICATION
69368         addresses, except for this one:
69369         * manual/libc.texinfo: In "Published by", give the FSF's URL,
69370         not its snail mail address.
69371
69372 2012-02-09  Richard Henderson  <rth@twiddle.net>
69373
69374         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
69375         of kernel-features.h.
69376
69377         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
69378
69379 2012-02-08  Marek Polacek  <polacek@redhat.com>
69380
69381         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
69382         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
69383         * sysdeps/gnu/_G_config.h: Likewise.
69384         * sysdeps/generic/_G_config.h: Likewise.
69385
69386 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
69387
69388         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
69389         tests.
69390         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69391
69392         * sysdeps/powerpc/powerpc32/crti.S: New file.
69393         * sysdeps/powerpc/powerpc32/crtn.S: New file.
69394         * sysdeps/powerpc/powerpc64/crti.S: New file.
69395         * sysdeps/powerpc/powerpc64/crtn.S: New file.
69396
69397         * Makeconfig (have-initfini): Don't set.
69398         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
69399         * configure.in (nopic_initfini): Don't substitute.
69400         * config.h.in (HAVE_INITFINI): Don't #undef.
69401         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
69402         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
69403
69404 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
69405
69406         Support crti.S and crtn.S provided directly by architectures.
69407         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
69408         [crti.S in sysdirs] (omit-deps): Likewise.
69409         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
69410         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
69411         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
69412         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
69413         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
69414         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
69415         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
69416         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
69417         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
69418         compiler output for sysdeps/generic/initfini.c.
69419         * sysdeps/i386/elf/Makefile: Remove file.
69420         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
69421
69422 2012-02-07  Marek Polacek  <polacek@redhat.com>
69423
69424         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
69425         * sysdeps/gnu/_G_config.h: Likewise.
69426         * sysdeps/mach/hurd/_G_config.h: Likewise.
69427
69428 2012-02-07  Marek Polacek  <polacek@redhat.com>
69429
69430         * math/Makefile (tests): Add tst-CMPLX2.
69431         * math/tst-CMPLX2.c: New file.
69432
69433 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
69434
69435         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69436
69437         * math/libm-test.inc (jn_test): Add missing L suffix.
69438
69439 2012-02-06  Marek Polacek  <polacek@redhat.com>
69440
69441         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69442         * sysdeps/i386/fpu/e_powf.S: Likewise.
69443         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69444         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69445         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69446         * sysdeps/i386/fpu/e_pow.S: Likewise.
69447         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69448         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69449         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69450         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69451         * sysdeps/i386/fpu/e_log2.S: Likewise.
69452         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69453         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69454         * sysdeps/i386/fpu/e_powl.S: Likewise.
69455         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69456         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69457         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69458         * sysdeps/i386/fpu/e_logl.S: Likewise.
69459         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69460         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69461         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69462         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69463         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69464         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69465         * sysdeps/i386/fpu/e_log.S: Likewise.
69466         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69467         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69468         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69469         * sysdeps/i386/fpu/e_logf.S: Likewise.
69470         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69471         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69472         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69473         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69474         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69475         * sysdeps/i386/fpu/e_log10.S: Likewise.
69476         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69477         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69478         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69479         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69480         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69481         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69482         * sysdeps/i386/asm-syntax.h: Likewise.
69483         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69484         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69485         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69486         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69487         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69488         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69489         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69490         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69491         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69492         * sysdeps/powerpc/sysdep.h: Likewise.
69493         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69494         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69495
69496 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69497
69498         [BZ #411]
69499         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69500
69501 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69502
69503         * sysdeps/i386/sysdep.h: Include <features.h>.
69504         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69505         version.
69506
69507 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69508
69509         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69510         Define.
69511         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69512         LOAD_PIC_REG_STR.
69513
69514 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69515
69516         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69517         (SETUP_PIC_REG): Use GET_PC_THUNK.
69518         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69519         macro.
69520
69521 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69522
69523         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69524         for non-PIC compilation.
69525         (SETUP_PIC_REG): Add .p2align directive.
69526         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69527         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69528         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69529         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69530         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69531         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69532         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69533         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69534         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69535         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69536         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69537         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69538         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69539         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69540         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69541         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69542         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69543         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69544         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69545         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69546         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69547         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69548         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69549         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69550         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69551         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69552         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69553         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69554         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69555         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69556         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69557         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69558         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69559         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69560         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69561         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69562         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69563         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69564         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69565         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69566         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69567
69568 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69569
69570         * math/tst-CMPLX.c: Include <stdio.h>.
69571
69572 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69573
69574         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69575         float.
69576         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69577         * sysdeps/sparc/bits/mathdef.h: Likewise.
69578
69579 2012-01-31  Marek Polacek  <polacek@redhat.com>
69580
69581         * libio/libio.h: Don't define _PARAMS.
69582         * locale/programs/config.h: Don't define PARAMS.
69583         * stdlib/strtol_l.c: Likewise.
69584         (__strtol_l): Remove PARAMS from the prototype.
69585
69586 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69587
69588         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69589         names.  Just use the correct names.  Remove unnecessary wrapper
69590         functions.
69591         * malloc/arena.c: Likewise.
69592         * malloc/hooks.c: Likewise.
69593
69594         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69595         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69596         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69597
69598 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69599
69600         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69601         into tail calls.
69602         (update_get_addr): New function.
69603         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69604         GET_ADDR_MODULE parameter.
69605
69606 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69607
69608         * crypt/cert.c: Remove __STDC__ conditionals.
69609         * crypt/crypt-entry.c: Likewise.
69610         * crypt/crypt_util.c: Likewise.
69611         * libio/filedoalloc.c: Likewise.
69612         * libio/fileops.c: Likewise.
69613         * libio/genops.c: Likewise.
69614         * libio/iofclose.c: Likewise.
69615         * libio/iofdopen.c: Likewise.
69616         * libio/iofopen.c: Likewise.
69617         * libio/iofopen64.c: Likewise.
69618         * libio/iogetdelim.c: Likewise.
69619         * libio/iopopen.c: Likewise.
69620         * libio/obprintf.c: Likewise.
69621         * libio/oldfileops.c: Likewise.
69622         * libio/oldiofclose.c: Likewise.
69623         * libio/oldiofdopen.c: Likewise.
69624         * libio/oldiofopen.c: Likewise.
69625         * libio/oldiopopen.c: Likewise.
69626         * libio/wfiledoalloc.c: Likewise.
69627         * libio/wgenops.c: Likewise.
69628         * locale/programs/xmalloc.c: Likewise.
69629         * misc/syslog.c: Likewise.
69630         * stdio-common/xbug.c: Likewise.
69631         * string/memchr.c: Likewise.
69632         * string/memcmp.c: Likewise.
69633         * string/memrchr.c: Likewise.
69634         * string/rawmemchr.c: Likewise.
69635         * sysdeps/posix/getcwd.c: Likewise.
69636         * time/strftime_l.c: Likewise.
69637
69638 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69639
69640         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69641         * config.make.in (config-cflags-sse2avx): Define.
69642         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69643         Fix typo.
69644
69645 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69646
69647         * scripts/config.guess: Update from upstream config git repository.
69648         * scripts/config.sub: Likewise.
69649
69650 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69651
69652         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69653         (EM_NUM): Update.
69654         (R_TILEPRO_*, R_TILEGX_*): New macros.
69655
69656         * scripts/firstversions.awk: Fix bug in version range handling.
69657
69658         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69659
69660         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69661
69662         * include/sys/epoll.h: New file.
69663         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69664         libc_hidden_def.
69665
69666 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69667
69668         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69669         Avoid unnecessary __WORDSIZE == 64 test.
69670         (fmaxf): Use VEX format if possible.
69671         (fmax): Likewise.
69672         (fminf): Likewise.
69673         (fmin): Likewise.
69674
69675         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69676         * math/math_private.h: Remove libc_fegetround* and
69677         libc_fesetround*.
69678         * sysdeps/i386/configure.in: Check for -msse2avx.
69679         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69680         also if SSE2AVX is defined.
69681         Remove libc_fegetround* and libc_fesetround*.
69682         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69683         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69684         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69685         of HAS_YMM_USABLE.
69686         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69687         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69688         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69689         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69690         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69691
69692         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69693
69694 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69695
69696         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69697         size is not set.
69698         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69699
69700 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69701
69702         [BZ #13618]
69703         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69704         relocation.
69705         * Makeconfig (libm): Define.
69706         * elf/Makefile: Add rules to build and run tst-relsort1.
69707         * elf/tst-relsort1.c: New file.
69708         * elf/tst-relsort1mod1.c: New file.
69709         * elf/tst-relsort1mod2.c: New file.
69710
69711 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69712
69713         * math/s_ldexp.c: Remove __STDC__ conditionals.
69714         * math/s_ldexpf.c: Likewise.
69715         * math/s_ldexpl.c: Likewise.
69716         * math/s_nextafter.c: Likewise.
69717         * math/s_nexttowardf.c: Likewise.
69718         * math/s_significand.c: Likewise.
69719         * math/s_significandf.c: Likewise.
69720         * math/s_significandl.c: Likewise.
69721         * math/w_jnl.c: Likewise.
69722         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69723         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69724         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69725         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69726         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69727         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69728         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69729         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69730         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69731         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69732         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69733         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69734         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69735         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69736         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69737         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69738         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69739         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69740         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69741         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69742         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69743         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69744         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69745         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69746         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69747         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69748         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69749         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69750         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69751         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69752         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69753         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69754         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69755         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69756         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69757         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69758         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69759         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69760         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69761         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69762         * sysdeps/ieee754/k_standard.c: Likewise.
69763         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69764         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69765         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69766         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69767         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69768         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69769         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69770         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69771         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69772         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69773         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69774         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69775         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69776         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69777         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69778         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69779         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69780         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69781         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69782         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69783         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69784         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69785         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69786         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69787         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69788         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69789         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69790         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69791         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69792         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69793         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69794         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69795         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69796         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69797         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69798         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69799         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69800         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69801         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69802         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69803         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69804         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69805         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69806         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69807         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69808         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69809         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69810         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69811         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69812         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69813         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69814         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69815         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69816         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69817         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69818         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69819         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69820         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69821         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69822         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69823         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69824         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69825         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69826         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69827         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69828         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69829         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69830         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69831         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69832         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69833         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69834         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69835         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69836         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69837         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69838         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69839         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69840         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69841         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69842         * sysdeps/ieee754/s_matherr.c: Likewise.
69843         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69844         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69845         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69846         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69847
69848 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69849
69850         * crypt/md5.h: Remove __STDC__ conditionals.
69851         * libio/libioP.h: Likewise.
69852         * locale/programs/config.h: Likewise.
69853         * sysdeps/generic/sysdep.h: Likewise.
69854         * sysdeps/i386/asm-syntax.h: Likewise.
69855         * sysdeps/s390/asm-syntax.h: Likewise.
69856         * sysdeps/unix/sysdep.h: Likewise.
69857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69859
69860 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69861
69862         * libio/libio.h: Remove __STDC__ conditionals.
69863         * malloc/obstack.h: Likewise.
69864         * math/complex.h: Likewise.
69865         * math/math.h: Likewise.
69866         * sysdeps/generic/_G_config.h: Likewise.
69867         * sysdeps/gnu/_G_config.h: Likewise.
69868         * sysdeps/mach/hurd/_G_config.h: Likewise.
69869         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69870         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69871         * sysdeps/sparc/bits/mathdef.h: Likewise.
69872
69873 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69874
69875         [BZ #13583]
69876         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69877         Clean up HAS_* macros.
69878         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69879         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69880         possible.
69881         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69882         HAS_AVX.
69883         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69884         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69885         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69886         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69887         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69888
69889 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69890
69891         * elf/tst-unique3.cc (gets): Remove declaration.
69892         * elf/tst-unique3lib.cc (gets): Likewise.
69893         * elf/tst-unique3lib2.cc (gets): Likewise.
69894         * elf/tst-unique4.cc (gets): Likewise.
69895
69896 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69897
69898         * include/stdio.h: Add C++ protection.  Add gets declarations and
69899         definitions.
69900         * debug/tst-chk1.c: Don't declare gets here.
69901         * stdio-common/tst-gets.c: Likewise.
69902
69903 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69904
69905         * posix/glob: Remove directory.
69906
69907 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69908
69909         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
69910
69911 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
69912
69913         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
69914         of the non-standard EPFNOSUPPORT.
69915
69916 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69917
69918         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
69919         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
69920         ANYWHERE set to 1 only on KERN_NO_SPACE error.
69921
69922 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
69923
69924         * wcsmbs/uchar.h: Test __STDC_VERSION__.
69925
69926 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
69927
69928         * nscd/aicache.c (addhstaiX): Do not cache negative results of
69929         transient errors.
69930         * nscd/grpcache.c (cache_addgr): Likewise.
69931         * nscd/hstcache.c (cache_addhst): Likewise.
69932         * nscd/initgrcache.c (addinitgroupsX): Likewise.
69933         * nscd/pwdcache.c (cache_addpw): Likewise.
69934         * nscd/servicescache.c (cache_addserv): Likewise.
69935
69936 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
69937
69938         * malloc/malloc.c: Various cleanups.
69939         * malloc/hooks.c: Likewise.
69940
69941         * stdlib/Makefile (tests): Add bug-fmtmsg1.
69942         * stdlib/bug-fmtmsg1.c: New file.
69943
69944         * stdlib/fmtmsg.c (init): Add missing unlock.
69945         Patch by Peng Haitao <penght@cn.fujitsu.com>.
69946
69947 2012-01-12  Marek Polacek  <polacek@redhat.com>
69948
69949         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
69950         and _GNU_SOURCE.
69951
69952 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
69953
69954         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
69955         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
69956         macro to ensure uniqueness of label name.
69957         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
69958         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
69959
69960 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
69961
69962         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
69963
69964         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
69965         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
69966         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
69967         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
69968
69969 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
69970
69971         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
69972
69973         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
69974         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
69975         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
69976
69977         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
69978
69979         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
69980         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
69981         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
69982         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
69983
69984         * math/bits/math-finite.h: Add ldexp support.
69985
69986 2012-01-10  Marek Polacek  <polacek@redhat.com>
69987
69988         * locale/programs/localedef.h (show_archive_content): Add noreturn
69989         attribute.
69990
69991 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
69992
69993         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
69994
69995 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
69996
69997         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
69998
69999         * io/Makefile (headers): Add bits/poll2.h.
70000
70001 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
70002
70003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
70004         typo #include statement.
70005
70006 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70007
70008         * include/sys/cdefs.h: Define __attribute_alloc_size.
70009         * catgets/gencat.c: Add alloc_size attribute and apply consistently
70010         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
70011         * elf/pldd.c: Likewise.
70012         * iconv/iconv_charmap.c: Likewise.
70013         * iconv/iconvconfig.c: Likewise.
70014         * iconv/strtab.c: Likewise.
70015         * locale/programs/locale.c: Likewise.
70016         * locale/programs/localedef.h: Likewise.
70017         * locale/programs/simple-hash.c: Likewise.
70018         * nscd/nscd.h: Likewise.
70019         * nss/makedb.c: Likewise.
70020         * sysdeps/generic/ldconfig.h: Likewise.
70021         * locale/programs/localedef.c: Remove xmalloc prototype.
70022         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
70023
70024 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
70025
70026         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
70027         appropriate.
70028
70029 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70030
70031         * math/Makefile (tests): Add tst-CMPLX.
70032         * math/tst-CMPLX.c: New file.
70033
70034         * math/complex.h (CMPLXL): Fix typo.
70035
70036         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
70037         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
70038         GLIBC_2.16.
70039         * debug/tst-chk1.c: Add poll and ppoll tests.
70040         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
70041         * include/sys/poll.h: Add hidden proto for ppoll.
70042         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
70043         * sysdeps/mach/hurd/ppoll.c: Likewise.
70044         * io/ppoll.c: Likewise.
70045         * debug/poll_chk.c: New file.
70046         * debug/ppoll_chk.c: New file.
70047         * include/bits/poll2.h: New file.
70048         * io/bits/poll2.h: New file.
70049
70050         [BZ #1350]
70051         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
70052
70053         * configure.in: static is always set to yes.  Remove.
70054         * config.make.in: Don't set build-static.
70055         * Makeconfig: Remove use of build-static.
70056         * dlfcn/Makefile: Likewise.
70057         * elf/Makefile: Likewise.
70058         * math/Makefile: Likewise.
70059         * misc/Makefile: Likewise.
70060         * nptl/Makefile: Likewise.
70061         * sysdeps/mach/hurd/Makefile: Likewise.
70062
70063         * configure.in: PWD_P is not used anymore.
70064         * config.make.in: Remove PWD_P entry.
70065
70066         * configure.in: Remove last remnants of RANLIB.
70067         No need to check for signed size_t anymore.
70068         Don't set libc_commonpagesize and libc_relro_required here for Alpha
70069         and IA-64.
70070         Remove __builtin_expect test because we require at least gcc 3.4.
70071         * aclocal.m4: Likewise.
70072
70073         * wcsmbs/mbrtoc16.c: Implement using towc function.
70074         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
70075         * wcsmbs/wcsmbsload.c: Likewise.
70076         * iconv/gconv_simple.c: Likewise.
70077         * iconv/gconv_int.h: Likewise.
70078         * iconv/gconv_builtin.h: Likewise.
70079         * iconv/iconv_prog.c: Remove CHAR16 handling.
70080
70081         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
70082
70083         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
70084
70085         * configure.in: Remove --with-elf and --enable-bounded options.
70086         Dont set base_machine for ia64.  More non-ELF conditions removed.
70087         Remove testing and setting of leading underscore information.
70088         * config.make.in (build-bounded): Set to no.
70089         * config.h.in: Remove NO_UNDERSCORES entry.
70090         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
70091         them.
70092         * csu/start.c: Remove !NO_UNDERSCORE code.
70093         * locale/localeinfo.h: Likewise.
70094         * sysdeps/generic/machine-gmon.h: Likewise.
70095         * sysdeps/generic/sysdep.h: Likewise.
70096         * sysdeps/i386/sysdep.h: Likewise.
70097         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70098         * sysdeps/mach/sysdep.h: Likewise.
70099         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70100         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70101         * sysdeps/sh/sysdep.h: Likewise.
70102         * sysdeps/sparc/sparc32/alloca.S: Likewise.
70103         * sysdeps/unix/i386/sysdep.S: Likewise.
70104         * sysdeps/unix/sparc/start.c: Likewise.
70105         * sysdeps/unix/sparc/sysdep.S: Likewise.
70106         * sysdeps/unix/sparc/sysdep.h: Likewise.
70107         * sysdeps/unix/start.c: Likewise.
70108         * sysdeps/unix/x86_64/sysdep.S: Likewise.
70109         * sysdeps/x86_64/sysdep.h: Likewise.
70110
70111 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
70112
70113         [BZ #13553]
70114         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
70115         for non-gcc.
70116         * argp/argp-fmtstream.h: Use const instead __const.
70117         * argp/argp.h: Likewise.
70118         * assert/assert.h: Likewise.
70119         * bits/fenv.h: Likewise.
70120         * bits/sched.h: Likewise.
70121         * bits/sigset.h: Likewise.
70122         * bits/sigthread.h: Likewise.
70123         * catgets/nl_types.h: Likewise.
70124         * conform/data/pthread.h-data: Likewise.
70125         * crypt/crypt-private.h: Likewise.
70126         * crypt/crypt.h: Likewise.
70127         * crypt/crypt_util.c: Likewise.
70128         * ctype/ctype.h: Likewise.
70129         * debug/execinfo.h: Likewise.
70130         * debug/mbsnrtowcs_chk.c: Likewise.
70131         * debug/mbsrtowcs_chk.c: Likewise.
70132         * debug/wcsnrtombs_chk.c: Likewise.
70133         * debug/wcsrtombs_chk.c: Likewise.
70134         * debug/wcstombs_chk.c: Likewise.
70135         * dirent/dirent.h: Likewise.
70136         * dlfcn/dlfcn.h: Likewise.
70137         * elf/neededtest4.c: Likewise.
70138         * grp/grp.h: Likewise.
70139         * gshadow/gshadow.h: Likewise.
70140         * iconv/gconv.h: Likewise.
70141         * iconv/gconv_int.h: Likewise.
70142         * iconv/gconv_simple.c: Likewise.
70143         * iconv/iconv.h: Likewise.
70144         * iconv/loop.c: Likewise.
70145         * iconv/skeleton.c: Likewise.
70146         * include/aio.h: Likewise.
70147         * include/aliases.h: Likewise.
70148         * include/argz.h: Likewise.
70149         * include/arpa/inet.h: Likewise.
70150         * include/assert.h: Likewise.
70151         * include/dirent.h: Likewise.
70152         * include/dlfcn.h: Likewise.
70153         * include/execinfo.h: Likewise.
70154         * include/fcntl.h: Likewise.
70155         * include/fenv.h: Likewise.
70156         * include/glob.h: Likewise.
70157         * include/grp.h: Likewise.
70158         * include/libintl.h: Likewise.
70159         * include/mntent.h: Likewise.
70160         * include/netdb.h: Likewise.
70161         * include/pwd.h: Likewise.
70162         * include/rpc/netdb.h: Likewise.
70163         * include/sched.h: Likewise.
70164         * include/search.h: Likewise.
70165         * include/shadow.h: Likewise.
70166         * include/signal.h: Likewise.
70167         * include/stdio.h: Likewise.
70168         * include/stdlib.h: Likewise.
70169         * include/string.h: Likewise.
70170         * include/sys/socket.h: Likewise.
70171         * include/sys/stat.h: Likewise.
70172         * include/sys/statfs.h: Likewise.
70173         * include/sys/statvfs.h: Likewise.
70174         * include/sys/syslog.h: Likewise.
70175         * include/sys/time.h: Likewise.
70176         * include/sys/uio.h: Likewise.
70177         * include/time.h: Likewise.
70178         * include/unistd.h: Likewise.
70179         * include/utmp.h: Likewise.
70180         * include/wchar.h: Likewise.
70181         * include/wctype.h: Likewise.
70182         * inet/aliases.h: Likewise.
70183         * inet/arpa/inet.h: Likewise.
70184         * inet/netinet/ether.h: Likewise.
70185         * inet/netinet/in.h: Likewise.
70186         * intl/libintl.h: Likewise.
70187         * io/bits/fcntl2.h: Likewise.
70188         * io/fcntl.h: Likewise.
70189         * io/ftw.h: Likewise.
70190         * io/sys/poll.h: Likewise.
70191         * io/sys/stat.h: Likewise.
70192         * io/sys/statfs.h: Likewise.
70193         * io/sys/statvfs.h: Likewise.
70194         * io/utime.h: Likewise.
70195         * libio/bits/stdio.h: Likewise.
70196         * libio/bits/stdio2.h: Likewise.
70197         * libio/libio.h: Likewise.
70198         * libio/libioP.h: Likewise.
70199         * libio/stdio.h: Likewise.
70200         * locale/lc-ctype.c: Likewise.
70201         * locale/locale.h: Likewise.
70202         * login/utmp.h: Likewise.
70203         * malloc/arena.c: Likewise.
70204         * malloc/malloc.c: Likewise.
70205         * malloc/malloc.h: Likewise.
70206         * malloc/mcheck.c: Likewise.
70207         * malloc/mtrace.c: Likewise.
70208         * math/bits/mathcalls.h: Likewise.
70209         * math/fenv.h: Likewise.
70210         * math/math_private.h: Likewise.
70211         * misc/bits/error.h: Likewise.
70212         * misc/bits/syslog.h: Likewise.
70213         * misc/err.h: Likewise.
70214         * misc/error.h: Likewise.
70215         * misc/fstab.h: Likewise.
70216         * misc/mntent.h: Likewise.
70217         * misc/regexp.h: Likewise.
70218         * misc/search.h: Likewise.
70219         * misc/sgtty.h: Likewise.
70220         * misc/sys/mman.h: Likewise.
70221         * misc/sys/syslog.h: Likewise.
70222         * misc/sys/uio.h: Likewise.
70223         * misc/sys/xattr.h: Likewise.
70224         * misc/ttyent.h: Likewise.
70225         * nis/rpcsvc/ypclnt.h: Likewise.
70226         * nss/nss.h: Likewise.
70227         * posix/bits/unistd.h: Likewise.
70228         * posix/fnmatch.h: Likewise.
70229         * posix/glob.h: Likewise.
70230         * posix/sched.h: Likewise.
70231         * posix/spawn.h: Likewise.
70232         * posix/sys/wait.h: Likewise.
70233         * posix/unistd.h: Likewise.
70234         * posix/wordexp.h: Likewise.
70235         * pwd/pwd.h: Likewise.
70236         * resolv/netdb.h: Likewise.
70237         * resource/sys/resource.h: Likewise.
70238         * rt/aio.h: Likewise.
70239         * rt/bits/mqueue2.h: Likewise.
70240         * rt/mqueue.h: Likewise.
70241         * shadow/shadow.h: Likewise.
70242         * signal/signal.h: Likewise.
70243         * socket/send.c: Likewise.
70244         * socket/sendto.c: Likewise.
70245         * socket/sys/socket.h: Likewise.
70246         * stdio-common/printf.h: Likewise.
70247         * stdlib/bits/stdlib.h: Likewise.
70248         * stdlib/fmtmsg.h: Likewise.
70249         * stdlib/monetary.h: Likewise.
70250         * stdlib/stdlib.h: Likewise.
70251         * stdlib/ucontext.h: Likewise.
70252         * streams/stropts.h: Likewise.
70253         * string/argz.h: Likewise.
70254         * string/bits/string2.h: Likewise.
70255         * string/string.h: Likewise.
70256         * string/strings.h: Likewise.
70257         * sunrpc/rpc/auth.h: Likewise.
70258         * sunrpc/rpc/auth_des.h: Likewise.
70259         * sunrpc/rpc/clnt.h: Likewise.
70260         * sunrpc/rpc/netdb.h: Likewise.
70261         * sunrpc/rpc/pmap_clnt.h: Likewise.
70262         * sunrpc/rpc/xdr.h: Likewise.
70263         * sysdeps/generic/inttypes.h: Likewise.
70264         * sysdeps/generic/net/if.h: Likewise.
70265         * sysdeps/generic/sys/swap.h: Likewise.
70266         * sysdeps/gnu/net/if.h: Likewise.
70267         * sysdeps/gnu/utmpx.h: Likewise.
70268         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
70269         * sysdeps/i386/i486/bits/string.h: Likewise.
70270         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
70271         * sysdeps/s390/bits/string.h: Likewise.
70272         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
70273         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
70274         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
70275         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
70276         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
70277         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
70278         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
70279         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
70280         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
70281         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
70282         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
70283         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
70284         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
70285         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
70286         * sysdeps/unix/sysv/linux/readv.c: Likewise.
70287         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
70288         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
70289         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
70290         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
70291         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
70292         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70293         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
70294         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
70295         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
70296         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
70297         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
70298         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
70299         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70300         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
70301         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
70302         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
70303         * sysvipc/sys/ipc.h: Likewise.
70304         * sysvipc/sys/msg.h: Likewise.
70305         * sysvipc/sys/sem.h: Likewise.
70306         * sysvipc/sys/shm.h: Likewise.
70307         * termios/termios.h: Likewise.
70308         * time/sys/time.h: Likewise.
70309         * time/time.h: Likewise.
70310         * wcsmbs/bits/wchar2.h: Likewise.
70311         * wcsmbs/uchar.h: Likewise.
70312         * wcsmbs/wchar.h: Likewise.
70313         * wctype/wctype.h: Likewise.
70314
70315         [BZ #13551]
70316         * Makeconfig: Remove all but ELF support including AIX support.
70317         * Makerules: Likewise.
70318         * config.h.in: Likewise.
70319         * config.make.in: Likewise.
70320         * configure: Likewise.
70321         * configure.in: Likewise.
70322         * csu/Makefile: Likewise.
70323         * csu/version.c: Likewise.
70324         * debug/Makefile: Likewise.
70325         * dlfcn/Makefile: Likewise.
70326         * elf/Makefile: Likewise.
70327         * extra-lib.mk: Likewise.
70328         * iconv/Makefile: Likewise.
70329         * include/libc-symbols.h: Likewise.
70330         * include/shlib-compat.h: Likewise.
70331         * resolv/Makefile: Likewise.
70332         * resolv/res_libc.c: Likewise.
70333         * rt/Makefile: Likewise.
70334         * sysdeps/i386/asm-syntax.h: Likewise.
70335         * sysdeps/i386/sysdep.h: Likewise.
70336         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70337         * sysdeps/mach/sysdep.h: Likewise.
70338         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70339         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
70340         * sysdeps/s390/asm-syntax.h: Likewise.
70341         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70342         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70343         * sysdeps/sh/sysdep.h: Likewise.
70344         * sysdeps/unix/sparc/sysdep.h: Likewise.
70345         * sysdeps/wordsize-32/divdi3.c: Likewise.
70346         * sysdeps/x86_64/sysdep.h: Likewise.
70347
70348         * argp/Versions: Remove _argp_unlock_xxx.
70349
70350         [BZ #13559]
70351         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
70352         * abilist/libBrokenLocale.abilist: Likewise.
70353         * abilist/libanl.abilist: Likewise.
70354         * abilist/libc.abilist: Likewise.
70355         * abilist/libcrypt.abilist: Likewise.
70356         * abilist/libdl.abilist: Likewise.
70357         * abilist/libm.abilist: Likewise.
70358         * abilist/libnsl.abilist: Likewise.
70359         * abilist/libpthread.abilist: Likewise.
70360         * abilist/libresolv.abilist: Likewise.
70361         * abilist/librt.abilist: Likewise.
70362         * abilist/libthread_db.abilist: Likewise.
70363         * abilist/libutil.abilist: Likewise.
70364         * abilist/libnss_db.abilist: New file.
70365
70366         * scripts/abilist.awk: Add support for indirect functions.
70367
70368         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
70369
70370         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
70371
70372         * shlib-versions: Remove entries for ports architectures.
70373
70374         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
70375         files in ports.
70376         * elf/stackguard-macros.h: Remove support for IA-64.
70377         * elf/tst-auditmod1.c: Likewise.
70378         * sysdeps/generic/ldsodefs.h: Likewise.
70379
70380         * sysdeps/unix/sysv/linux/configure.in: Ports should define
70381         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
70382         configure files.
70383
70384         [BZ #13552]
70385         * configure.in: Remove --enable-omitfp support.
70386         * FAQ.in: Adjust.
70387         * config.make.in: Likewise.
70388         * Makeconfig: Likewise.
70389         * manual/install.texi: Likewise.
70390
70391         In case anyone cares, the IA-64 architecture could move to ports.
70392         * sysdeps/ia64/*: Removed.
70393         * sysdeps/unix/sysv/linux/ia64/*: Removed.
70394         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
70395
70396         [BZ #13555]
70397         * configure.in: Remove entries for unsupported architectures.
70398
70399         [BZ #13533]
70400         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
70401         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
70402         routines.
70403         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
70404         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
70405         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
70406         fall back to using wcrtomb.
70407         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
70408         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
70409         renaming.
70410         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
70411         * wcsmbs/tst-c16c32-1.c: New file.
70412
70413         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
70414         local variable.
70415
70416         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
70417
70418         * elf/tst-unique3.cc: Add explicit declaration of gets.
70419         * elf/tst-unique3lib.cc: Likewise.
70420         * elf/tst-unique3lib2.cc: Likewise.
70421         * elf/tst-unique4.cc: Likewise.
70422
70423         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
70424
70425 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
70426
70427         [BZ #13566]
70428         * assert/assert.h (static_assert): Don't define for C++.
70429         * libio/stdio.h (gets): Do declare for C++ <= C++11.
70430         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
70431
70432 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
70433
70434         * iconv/loop.c (single loop): Fix assertion in storing of
70435         remaining bytes.
70436
70437         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
70438
70439 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
70440
70441         * posix/getconf.c: Update copyright year.
70442         * nss/getent.c: Likewise.
70443         * nss/makedb.c: Likewise.
70444         * iconv/iconvconfig.c: Likewise.
70445         * iconv/iconv_prog.c: Likewise.
70446         * elf/ldconfig.c: Likewise.
70447         * elf/pldd.c: Likewise.
70448         * elf/sotruss.ksh: Likewise.
70449         * catgets/gencat.c: Likewise.
70450         * csu/version.c: Likewise.
70451         * elf/ldd.bash.in: Likewise.
70452         * elf/sprof.c (print_version): Likewise.
70453         * locale/programs/locale.c: Likewise.
70454         * locale/programs/localedef.c: Likewise.
70455         * login/programs/pt_chown.c: Likewise.
70456         * nscd/nscd.c (print_version): Likewise.
70457         * debug/xtrace.sh: Likewise.
70458         * malloc/memusage.sh: Likewise.
70459         * malloc/mtrace.pl: Likewise.
70460         * debug/catchsegv.sh: Likewise.
70461
70462 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70463
70464         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70465         pure attribute.
70466
70467 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70468
70469         [BZ #13533]
70470         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70471         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70472         transformations.
70473         * iconv/gconv_int.h: Likewise.
70474         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70475         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70476         from libc for GLIBC_2.16.
70477         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70478         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70479         * wcsmbs/uchar.h: Really define mbstate_t.
70480         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70481         * wcsmbs/c16rtomb.c: New file.
70482         * wcsmbs/mbrtoc16.c: New file.
70483         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70484         for C/POSIX locale.
70485         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70486         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70487
70488         * wcsmbs/wchar.h: Add missing __restrict.
70489
70490 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70491
70492         [BZ #13532]
70493         * time/Makefile (routines): Add timespec_get.
70494         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70495         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70496         timespec for ISO C11.
70497         * time/timespec_get.c: New file.
70498         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70499         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70500
70501         [BZ #13531]
70502         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70503         * stdlib/stdlib.h: Declare aligned_alloc.
70504         * Versions.def: Add GLIBC_2.16 for libc.
70505         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70506
70507         [BZ 13527]
70508         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70509         ISO C11.
70510
70511         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70512         code.
70513
70514         [BZ #13528]
70515         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70516
70517         [BZ #13529]
70518         * assert/assert.h (static_assert): Define.
70519
70520         * version.h: Update for 2.16 development version.
70521
70522         [BZ #13526]
70523         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70524         _ISOC11_SOURCE.
70525
70526         * version.h (RELEASE): Bump for 2.15 release.
70527         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70528
70529         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70530         Patch by Marek Polacek <mpolacek@redhat.com>.
70531
70532         * bits/byteswap.h: Protect long long constants with __extension__.
70533         * sysdeps/i386/bits/byteswap.h: Likewise.
70534         * sysdeps/ia64/bits/byteswap.h: Likewise.
70535         * sysdeps/s390/bits/byteswap.h: Likewise.
70536         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70537
70538 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70539
70540         [BZ #13540]
70541         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70542         destination buffer.
70543         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70544
70545 2011-12-23  Marek Polacek  <polacek@redhat.com>
70546
70547         * elf/dl-addr.c (determine_info): Add inline keyword.
70548         * elf/tst-auditmod4b.c (check_avx): Likewise.
70549         * elf/tst-auditmod6b.c (check_avx): Likewise.
70550         * elf/tst-auditmod6c.c (check_avx): Likewise.
70551         * elf/tst-auditmod7b.c (check_avx): Likewise.
70552
70553 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70554
70555         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70556         !__SSE_MATH__.
70557
70558 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70559
70560         [BZ #13540]
70561         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70562         processing for last bytes.
70563
70564 2011-08-06  Bruno Haible  <bruno@clisp.org>
70565
70566         [BZ #13061]
70567         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70568         U+0385, not to U+1FEE.
70569
70570         [BZ #13062]
70571         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70572         entry for U+00A5 U+0301.
70573
70574 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70575
70576         [BZ #13166]
70577         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70578         buffer for the output is too small.
70579
70580         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70581         optimization.
70582
70583         [BZ #13185]
70584         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70585         SSE flags if possible.
70586
70587 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70588
70589         [BZ #13540]
70590         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70591         processing for last bytes.
70592
70593 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70594
70595         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70596         (syscall-list-default-options, syscall-list-default-condition)
70597         (syscall-list-includes): Define.
70598         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70599         list of ABIs and options and #if conditions for each ABI.  Do not
70600         handle common syscalls between ABIs specially.
70601         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70602         Remove.
70603         (syscall-list-variants, syscall-list-32bit-options)
70604         (syscall-list-32bit-condition, syscall-list-64bit-options)
70605         (syscall-list-64bit-condition): Define.
70606         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70607         (syscall-list-variants, syscall-list-32bit-options)
70608         (syscall-list-32bit-condition, syscall-list-64bit-options)
70609         (syscall-list-64bit-condition): Define.
70610         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70611         Remove.
70612         (syscall-list-variants, syscall-list-32bit-options)
70613         (syscall-list-32bit-condition, syscall-list-64bit-options)
70614         (syscall-list-64bit-condition): Define.
70615         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70616         Remove.
70617         (syscall-list-variants, syscall-list-32bit-options)
70618         (syscall-list-32bit-condition, syscall-list-64bit-options)
70619         (syscall-list-64bit-condition): Define.
70620
70621 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70622
70623         * locale/iso-639.def: Add brx entry.
70624
70625         [BZ #13328]
70626         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70627         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70628
70629         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70630         __feraiseexcept_renamed.
70631
70632 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70633
70634         [BZ #13538]
70635         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70636         EPOLLET with unsigned values.
70637         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70638         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70639
70640         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70641         to large cancellation.
70642         * math/s_cacoshf.c: Likewise.
70643         * math/s_cacoshl.c: Likewise.
70644
70645 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70646
70647         [BZ #13305]
70648         [BZ #12786]
70649         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70650         * math/s_cacoshf.c: Likewise.
70651         * math/s_cacoshl.c: Likewise.
70652
70653 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70654
70655         [BZ #13439]
70656         * iconv/gconv.h: Define __GCONV_SWAP.
70657         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70658         * iconvdata/utf-16.c: Likewise.
70659         * iconvdata/utf-32.c: Likewise.
70660
70661 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70662
70663         [BZ #13524]
70664         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70665         numerator after shifting it by one limb.
70666
70667 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70668
70669         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70670         under [__USE_EXTERN_INLINES].
70671
70672 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70673
70674         [BZ #13446]
70675         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70676
70677 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70678
70679         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70680         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70681         optimized code.
70682         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70683         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70684         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70685         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70686         for strncasecmp/strncasecmp_l compilation.
70687         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70688         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70689
70690 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70691
70692         [BZ #13484]
70693         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70694         of __asm__.
70695
70696 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70697
70698         [BZ #13506]
70699         * time/tzfile.c (__tzfile_read): Check values from file header.
70700
70701 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70702
70703         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70704         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70705         * powerpc/powerpc32/dl-start.S: Likewise.
70706         * powerpc/powerpc32/elf/start.S: Likewise.
70707         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70708         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70709         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70710         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70711         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70712         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70713         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70714         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70715         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70716         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70717         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70718         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70719         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70720         * powerpc/powerpc32/memset.S: Likewise.
70721         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70722         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70723         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70724         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70725         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70726         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70727         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70728         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70729         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70730         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70731         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70732         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70733         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70734
70735 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70736
70737         * math/libm-test.inc: Added more nearbyint tests.
70738         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70739         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70740         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70741         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70742
70743 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70744
70745         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70746         FD_CLOEXEC.
70747
70748 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70749
70750         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70751         Add wcscpy-ssse3 wcscpy-c.
70752         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70753         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70754         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70755         * sysdeps/x86_64/wcschr.S: New file.
70756         * sysdeps/x86_64/wcsrchr.S: New file.
70757         * string/test-strcmp.c: Remove checking of wcscmp function for
70758         wrong alignments.
70759         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70760         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70761         wcsrchr-sse2 wcsrchr-c.
70762         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70763         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70764         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70765         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70766         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70767         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70768         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70769         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70770         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70771         * wcsmbc/wcschr.c (WCSCHR): New macro.
70772
70773 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70774
70775         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70776         * wcsmbs/test-wcsrchr.c: New file.
70777         * string/test-strrchr.c: Add wcsrchr support.
70778         (WIDE): New macro.
70779         * wcsmbs/test-wcscpy.c: New file.
70780         * string/test-strcpy.c: Add wcscpy support.
70781         (WIDE): New macro.
70782
70783 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70784
70785         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70786         the inner loop.
70787
70788 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70789
70790         [BZ #13472]
70791         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70792
70793 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70794
70795         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70796         Minor optimizations.
70797
70798         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70799         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70800         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70801
70802 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70803
70804         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70805         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70806         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70807         for gcc to avoid warnings.
70808         * inet/Makefile (tests): Add tst-checks.
70809         * inet/tst-checks.c: New file.
70810
70811         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70812         warning.
70813
70814         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70815         __wmemcmp_sse2.
70816
70817         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70818         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70819
70820         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70821
70822 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70823
70824         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70825         problem.
70826
70827         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70828
70829 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70830
70831         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70832         conditional on GCC version.
70833         (__arch_compare_and_exchange_val_8_acq)
70834         (__arch_compare_and_exchange_val_16_acq)
70835         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70836         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70837         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70838
70839 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70840
70841         * sysdeps/sh/backtrace.c: New file.
70842
70843 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70844
70845         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70846         parenthesis.
70847
70848 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70849
70850         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70851         falling back to utime.
70852
70853 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70854
70855         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70856         expectations for float.
70857
70858 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70859
70860         * locale/weight.h (findidx): Add parameter len.
70861         * locale/weightwc.h (findidx): Likewise.
70862         * posix/fnmatch_loop.c (FCT): Adjust caller.
70863         * posix/regcomp.c (build_equiv_class): Likewise.
70864         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70865         * posix/regexec.c (check_node_accept_bytes): Likewise.
70866         * string/strcoll_l.c (STRCOLL): Likewise.
70867         * string/strxfrm_l.c (STRXFRM): Likewise.
70868
70869 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70870
70871         * Makefile.in: Remove CVSOPT handling.
70872         * configure.in: Remove use of AC_REVISION.
70873         * iconvdata/Makefile (distribute): No need to filter out CVS.
70874         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70875         handling.
70876
70877 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70878
70879         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70880         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70881         [USE_AS_STRNCASECMP_L]: Likewise.
70882         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70883         NO_TLS_DIRECT_SEG_REFS.
70884         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70885         Fix argument offsets for non-PIC.
70886         [USE_AS_STRNCASECMP_L]: Likewise.
70887         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70888         NO_TLS_DIRECT_SEG_REFS.
70889
70890 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70891
70892         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70893         O_CLOEXEC.
70894         * locale/loadlocale.c (_nl_load_locale): Likewise.
70895
70896 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70897
70898         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70899         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70900         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70901         (SYSCALL_GETTIME): Set errno on error.
70902
70903         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
70904         count references to noai6ai_cached.
70905
70906 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70907
70908         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
70909
70910         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
70911         FD_CLOEXEC for /proc/self/maps.
70912
70913         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
70914         FD_CLOEXEC for /proc/meminfo.
70915
70916         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
70917         gai.conf.
70918
70919         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
70920         FD_CLOEXEC for given file.
70921
70922         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
70923
70924         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
70925         FD_CLOEXEC for /etc/hosts.
70926         (_gethtent): Likewise.
70927
70928         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
70929
70930         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
70931         cancellation and set FD_CLOEXEC for /etc/netgroup.
70932
70933         * nss/nss_files/files-key.c (search): Don't allow cancellation when
70934         reading /etc/publickey.
70935
70936         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
70937         allow cancellation when reading /etc/group.
70938
70939         * nss/nss_files/files-alias.c (internal_setent): Don't allow
70940         cancellation.
70941         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
70942
70943         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
70944         when using data file.
70945
70946         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
70947
70948         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
70949         (write_nis_obj): Use "c" and "e" in fopen.
70950
70951         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
70952
70953         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
70954
70955         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
70956
70957         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
70958
70959         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
70960         locale.alias.
70961
70962         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
70963
70964         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
70965
70966         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
70967
70968         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
70969         file parsing and set FD_CLOEXEC.
70970
70971 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70972
70973         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
70974
70975 2011-11-14  Andreas Schwab  <schwab@redhat.com>
70976
70977         * malloc/arena.c (arena_get2): Don't call reused_arena when
70978         _int_new_arena failed.
70979
70980 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70981
70982         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
70983         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
70984         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
70985         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70986         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70987         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
70988         to compile strcasecmp and strncasecmp.
70989         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
70990         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
70991
70992         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
70993
70994 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
70995
70996         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
70997         locale-defines.sym to gen-as-const-headers.
70998         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
70999         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
71000         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
71001         to compile strcasecmp and strncasecmp.
71002         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
71003         strcasecmp_l and strncasecmp_l.
71004         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
71005         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
71006         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
71007         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
71008         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
71009         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
71010         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
71011         * sysdeps/i386/i686/multiarch/strncase.S: New file.
71012         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
71013         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
71014         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
71015
71016 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
71017
71018         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
71019         result of SYSDEP_GETTIME_CPU to retval.
71020         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
71021         parameter list to macro.  Remove trailing semicolon.  Adjust users.
71022
71023         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
71024         variable.
71025
71026         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
71027         mantissa words.
71028         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
71029
71030         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
71031         from unused variable.
71032
71033         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
71034         DWARF definitions.
71035         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
71036         for assembling.
71037
71038         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
71039         over namespaces.
71040
71041         * sunrpc/rpc_prot.c (rejected): Fix case value.
71042
71043         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
71044         unsigned long long int to avoid warnings in shift.
71045
71046         * posix/regex_internal.c (re_string_reconstruct): Actually use result
71047         of use of trans.
71048         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
71049         variable tmp.
71050
71051         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
71052         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
71053         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
71054
71055         * nis/nis_table.c (nis_list): Use variable of correct type for
71056         result of __follow_path call.
71057
71058 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71059
71060         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
71061         of math functions ceil, trunc, floor, round, and sqrt, when
71062         avaliable on the platform.
71063         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
71064         name clash.
71065         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71066         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71067         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71068
71069 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
71070
71071         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
71072         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
71073
71074 2011-11-11  Roland McGrath  <roland@hack.frob.com>
71075
71076         * include/unistd.h: Fix __readlink return type.
71077         Reported by Chris Metcalf <cmetcalf@tilera.com>.
71078
71079 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
71080
71081         * stdlib/ucontext.h: Undo last change for makecontext.
71082
71083 2011-11-11  Andreas Schwab  <schwab@redhat.com>
71084
71085         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
71086
71087         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
71088         * setjmp/setjmp.h: Mark functions as non-leaf.
71089         * setjmp/bits/setjmp2.h: Likewise.
71090         * stdlib/ucontext.h: Likewise.
71091
71092 2011-11-10  Andreas Schwab  <schwab@redhat.com>
71093
71094         * malloc/arena.c (_int_new_arena): Don't increment narenas.
71095         (reused_arena): Don't check arena limit.
71096         (arena_get2): Atomically check arena limit.
71097
71098 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
71099
71100         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
71101         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
71102
71103         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
71104         instructions.
71105
71106 2011-11-07  Andreas Schwab  <schwab@redhat.com>
71107
71108         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
71109         handler when locking.
71110
71111         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
71112         Fix size of allocated buffer.
71113
71114 2011-11-04  Andreas Schwab  <schwab@redhat.com>
71115
71116         [BZ #10103]
71117         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
71118         declarations for long double functions.
71119         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
71120
71121         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
71122
71123 2011-11-03  Andreas Schwab  <schwab@redhat.com>
71124
71125         * nscd/nscd.c (main): Don't start AVC thread until credentials are
71126         installed.
71127
71128         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
71129         is disabled.
71130
71131 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
71132
71133         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
71134
71135 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
71136
71137         * include/alloca.h (stackinfo_alloca_round): Define.
71138         (extend_alloca): Use it.
71139         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
71140         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
71141         here.
71142
71143         * scripts/check-local-headers.sh: Ignore libaudit.h.
71144
71145         * nscd/Makefile (extra-objs): Make recursively expanded.
71146
71147 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
71148
71149         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
71150         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
71151
71152         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
71153         * posix/tst-rfc3484-2.c: Likewise.
71154         * posix/tst-rfc3484-3.c: Likewise.
71155
71156         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
71157         process_vm_writev.
71158         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
71159         process_vm_writev.
71160         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
71161         process_vm_writev from libc using GLIBC_2.15 version.
71162
71163         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
71164
71165 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
71166
71167         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
71168         stack usage.
71169
71170 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
71171
71172         [BZ #13367]
71173         * nss/getent.c (initgroups_keys): Show error message in case no group
71174         names are given.
71175
71176         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
71177         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
71178         __bump_nl_timestamp.
71179         * nscd/connections (nscd_init): When host database is served open
71180         netlink socket and request notification about configuration changes.
71181         (main_loop_poll): Track netlink file descriptor and bump timestamp
71182         in case data becomes available.
71183         (main_loop_epoll): Likewise.
71184         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
71185         (database_pers_head): Add extra_data fileds.
71186         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
71187         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
71188         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
71189         Adjust caller.
71190         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
71191         in6ai data, call __free_in6ai.
71192         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
71193         Add -DHAVE_NETLINK.
71194         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
71195         interface information.  Reuse previous data if netlink timestamp
71196         is not changed.
71197         (__bump_nl_timestamp): New function.
71198         (__free_in6ai): New function.
71199
71200 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
71201
71202         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
71203         close_not_cancel_no_status here.
71204         (__check_pf): Reorganize code a bit to not call close twice if OOM.
71205
71206 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71207
71208         [BZ #13276]
71209         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
71210         return value.
71211
71212         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
71213         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
71214         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
71215
71216 2011-07-03  Andreas Jaeger  <aj@suse.de>
71217
71218         [BZ #10709]
71219         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
71220         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
71221         * math/libm-test.inc (sin_test): Add test case.
71222
71223 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71224
71225         [BZ #13337]
71226         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
71227         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71228
71229         * elf/chroot_canon.c (chroot_canon): Cleanups.
71230
71231         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
71232
71233         [BZ #13335]
71234         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
71235         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71236
71237         * string/test-strchr.c: Make usable for strchrnul testing.
71238         * string/test-strchrnul.c: New file.
71239         * string/Makefile (strop-tests): Add strchrnul.
71240
71241         * po/it.po: Update from translation team.
71242         * po/es.po: Likewise.
71243
71244 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
71245
71246         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
71247         the three constants needed as parameters.  Drop the others.
71248         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
71249         __m128i_strloadu_tolower.
71250         Create and initialize variable zero and use it in all the places
71251         where _mm_setzero_si128 was used.
71252
71253         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
71254         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
71255         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
71256         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
71257         anymore.
71258         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
71259         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
71260         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
71261         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
71262         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
71263         __mpranred, __mptan.
71264         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
71265         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
71266         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
71267         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
71268         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
71269         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
71270         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
71271         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
71272         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
71273
71274 2011-10-28  Andreas Schwab  <schwab@redhat.com>
71275
71276         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
71277         redefine if SHARED.
71278         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
71279
71280         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
71281         wide char related routines to wcsmbs subdir.
71282
71283 2011-10-27  Andreas Schwab  <schwab@redhat.com>
71284
71285         [BZ #13344]
71286         * misc/sys/cdefs.h (__THROWNL): Define.
71287         * posix/unistd.h: Use __THREADNL instead of __THREAD
71288         for memory synchronization functions.
71289
71290 2011-10-26  Roland McGrath  <roland@hack.frob.com>
71291
71292         [BZ #13349]
71293         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
71294         doesn't exist.
71295         * manual/stdio.texi (Obstack Streams): Node removed.
71296
71297 2011-10-26  Andreas Schwab  <schwab@redhat.com>
71298
71299         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
71300         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71301         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71302
71303         * math/math_private.h (math_force_eval): Allow non-addressable
71304         arguments.
71305         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
71306
71307 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71308
71309         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
71310         file is not needed.
71311
71312         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
71313         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
71314         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
71315         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
71316         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
71317         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
71318         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
71319         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
71320         Add AVX variants.
71321         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
71322         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
71323         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
71324         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
71325         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
71326         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
71327         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
71328         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
71329         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
71330         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
71331         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
71332         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
71333         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
71334         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
71335         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
71336         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
71337         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
71338         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
71339         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
71340
71341         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
71342         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
71343
71344         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
71345         place.  Use VEX encoding when compiling for AVX.
71346
71347 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71348
71349         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
71350         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
71351
71352         * string/test-strchr.c (do_test): Don't generate NUL bytes.
71353
71354 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71355
71356         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
71357         useless if() expression.
71358         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71359         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
71360         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
71361         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71362         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
71363         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71364         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71365         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71366         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
71367         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71368         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71369         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71370         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71371         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71372         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71373         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71374         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71375         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71376         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71377
71378         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
71379
71380 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71381
71382         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
71383         condition.
71384         * elf/dl-fini.c (_dl_sort_fini): Likewise.
71385
71386 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71387
71388         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
71389         .text section.  Avoid duplicate constants.
71390         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
71391         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71392         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71393         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71394         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71395         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71396         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71397         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71398         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
71399         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
71400         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
71401         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
71402         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
71403         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
71404         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
71405         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
71406         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
71407         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
71408         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
71409         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71410         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
71411         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
71412         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
71413         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
71414         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
71415         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
71416         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
71417         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
71418         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
71419         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
71420         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
71421         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
71422         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
71423         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
71424         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
71425         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
71426         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
71427         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
71428         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
71429         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
71430         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
71431         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
71432         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
71433         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
71434         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
71435
71436 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
71437
71438         * sysdeps/x86_64/dla.h: Move to ...
71439         * sysdeps/x86_64/fpu/dla.h: ...here.
71440         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71441         situations.  Use __builtin_fma only for gcc 4.6 and up.
71442
71443         * config.make.in: Add have-mfma4 entry.
71444         * configure.in: Substitute libc_cv_cc_fma4.
71445         * math/Makefile (dbl-only-routines): Add sincostab.
71446         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71447         Use __sincostab not sincos.
71448         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71449         name is a macro.
71450         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71451         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71452         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71453         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71454         using __copysign.
71455         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71456         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71457         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71458         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71459         and __inv.
71460         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71461         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71462         __copysign.
71463         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71464         define aliases when function name is a macro.
71465         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71466         sysdeps/ieee754/dbl-64/sincos.tbl.
71467         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71468         fma4-enabled routines.
71469         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71470         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71471         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71472         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71473         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71474         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71475         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71476         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71477         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71478         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71479         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71480         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71481         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71482         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71483         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71484         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71485         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71486         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71487         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71488         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71489         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71490         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71491         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71492         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71493         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71494         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71495         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71496         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71497         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71498         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71499
71500         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71501         rename.
71502         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71503         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71504         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71505         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71506         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71507         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71508         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71509         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71510
71511 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71512
71513         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71514
71515 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71516
71517         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71518
71519         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71520         prediction.
71521         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71522
71523         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71524         Remove unused variable magic_bits.
71525         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71526
71527         * string/strnlen.c: Define and use STRNLEN macro.
71528         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71529         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71530         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71531         * wcsmbs/wcslen.c: Define and use WCSLEN.
71532         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71533         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71534         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71535         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71536         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71537         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71538         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71539
71540 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71541
71542         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71543         strnlen-sse2-no-bsf.
71544         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71545         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71546         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71547         Add strnlen support.
71548         (USE_AS_STRNLEN): New macro.
71549         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71550         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71551         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71552         * sysdeps/x86_64/wcslen.S: New file.
71553
71554 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71555
71556         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71557         XMM-moves are used for copying on small sizes.
71558
71559 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71560
71561         * wcsmbs/Makefile (strop-tests): Add wcschr.
71562         * wcsmbs/test-wcschr.c: New file.
71563         * string/test-strchr.c: Update.
71564         Add wcschr support.
71565         (WIDE): New macro.
71566
71567 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71568
71569         * wcsmbs/Makefile (strop-tests): Add wcslen.
71570         * wcsmbs/test-wcslen.c: New file.
71571         * string/test-strlen.c: Update.
71572         Add wcslen support.
71573         (WIDE): New macro.
71574
71575 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71576
71577         * po/it.po: Update from translation team.
71578
71579 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71580
71581         * sysdeps/x86_64/wcscmp.S: Update.
71582         Fix wrong comparison semantics.
71583         wcscmp shall use signed comparison not unsigned.
71584         Don't use substraction to avoid overflow bug.
71585         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71586         * wcsmbc/wcscmp.c: Likewise.
71587         * string/test-strcmp.c: Likewise.
71588         Add new tests to check cases with negative values.
71589
71590 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71591
71592         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71593         * sysdeps/x86_64/dla.h: ...here.  New file.
71594         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71595         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71596         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71597         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71598         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71599         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
71600         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71601         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71602         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71603
71604 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
71605
71606         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71607         __ynl_finite aliases.
71608
71609 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71610
71611         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71612
71613         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71614         define DLA_FMA.
71615         [DLA_FMA] (EMULV): Use DLA_FMA.
71616         [DLA_FMA] (MUL12): Use EMULV.
71617         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71618         that are not needed.
71619         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71620         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71621         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71622         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71623         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71624         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71625         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71626
71627 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71628
71629         * math/s_nan.c: Undef __nan.
71630         * math/s_nanf.c: Undef __nanf.
71631         * math/s_nanl.c: Undef __nanl.
71632         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71633         "math_private.h".
71634
71635 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71636
71637         * math/s_catan.c: Add branch predictions.
71638         * math/s_catanf.c: Likewise.
71639         * math/s_catanh.c: Likewise.
71640         * math/s_catanhf.c: Likewise.
71641         * math/s_catanhl.c: Likewise.
71642         * math/s_catanl.c: Likewise.
71643         * math/s_cexp.c: Likewise.
71644         * math/s_cexpf.c: Likewise.
71645         * math/s_cexpl.c: Likewise.
71646         * math/s_clog.c: Likewise.
71647         * math/s_clog10.c: Likewise.
71648         * math/s_clog10f.c: Likewise.
71649         * math/s_clog10l.c: Likewise.
71650         * math/s_clogf.c: Likewise.
71651         * math/s_clogl.c: Likewise.
71652         * math/s_csqrt.c: Likewise.
71653         * math/s_csqrtf.c: Likewise.
71654         * math/s_csqrtl.c: Likewise.
71655         * math/s_ctanf.c: Likewise.
71656         * math/s_ctanh.c: Likewise.
71657         * math/s_ctanhf.c: Likewise.
71658         * math/s_ctanhl.c: Likewise.
71659         * math/s_ctanl.c: Likewise.
71660
71661         * math/math_private.h: Define __nan, __nanf, __nanl.
71662         * math/s_cacosh.c: Include <math_private.h>.
71663         * math/s_cacoshl.c: Likewise.
71664         * math/s_casinh.c: Likewise.
71665         * math/s_casinhf.c: Likewise.
71666         * math/s_casinhl.c: Likewise.
71667         * math/s_ccos.c: Rely entire on ccosh.
71668         * math/s_ccosf.c: Rely entire on ccoshf.
71669         * math/s_ccosl.c: Rely entirely on ccoshl.
71670         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71671         Remove tests for FE_INVALID.
71672         * math/s_ccoshf.c: Likewise.
71673         * math/s_ccoshl.c: Likewise.
71674         * math/s_csin.c: Likewise.
71675         * math/s_csinf.c: Likewise.
71676         * math/s_csinh.c Likewise.
71677         * math/s_csinhf.c: Likewise.
71678         * math/s_csinhl.c: Likewise.
71679         * math/s_csinl.c: Likewise.
71680         * math/s_ctan.c: Likewise.
71681         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71682         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71683         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71684
71685 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71686
71687         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71688         compilation problems.
71689
71690         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71691         __builtin_expect.
71692
71693 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71694
71695         * sysdeps/i386/configure.in: Test for -mfma4 option.
71696         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71697         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71698         COMMON_CPUID_INDEX_80000001.
71699         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71700         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71701         use it if FMA3 is not supported.
71702         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71703
71704         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71705         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71706
71707 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71708
71709         [BZ #12892]
71710         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71711         it would create a cycle with a link time dependency.
71712
71713 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71714
71715         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71716         instruction.
71717         * string/Makefile (strop-tests): Add rawmemchr.
71718         * string/test-rawmemchr.c: New file.
71719
71720         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71721         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71722         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71723         when compiling str{,n}casecmp and when AVX is available.  Hook up
71724         new optimized code in initializers.
71725
71726 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71727
71728         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71729         __feraiseexcept instead of feraiseexcept.
71730
71731 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71732
71733         * math/math_private.h: Define defaults for libc_fetestexcept and
71734         libc_feupdateenv.
71735         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71736         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71737         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71738         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71739         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71740         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71741         libc_fetestexcept and libc_feupdateenv.
71742
71743         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71744         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71745         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71746         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71747         libc_feholdexcept_setround.
71748
71749         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71750         Add s_nearbyint-c and s_nearbyintf-c.
71751         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71752         nearbyintf inlines.
71753         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71754         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71755         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71756         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71757
71758         * math/math_private.h: Define defaults for libc_fegetround,
71759         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71760         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71761         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71762         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71763         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71764         standard functions.
71765         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71766         Remove comments and hacks for old compiler versions.
71767         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71768         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71769         libc_feholdexceptl.
71770
71771 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71772
71773         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71774         (__feraiseexcept_renamed): Add __NTH.
71775         (feraiseexcept): Add __NTH.  Rename local variables to fix
71776         namespace violations.
71777
71778 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71779
71780         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71781
71782         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71783
71784         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71785         recently added interfaces.
71786         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71787
71788         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71789         about macro parameter expansion.
71790
71791         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71792         __NO_MATH_INLINES is defined.  Cleanups.
71793
71794         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71795         and __floorf is target has SSE4.1.
71796         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71797         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71798         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71799         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71800
71801         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71802         name.
71803         (floorf): Likewise.
71804
71805         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71806
71807 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71808
71809         * misc/sys/cdefs.h: Fix last change.
71810
71811         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71812         database lookup.
71813
71814 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71815
71816         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71817
71818         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71819         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71820         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71821         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71822         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71823         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71824         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71825         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71826         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71827         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71828         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71829         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71830         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71831         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71832         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71833         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71834         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71835         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71836         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71837         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71838         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71839         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71840
71841         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71842         ceil, ceilf, floor, floorf.
71843
71844         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71845         Perform IRELATIVE relocations last.
71846
71847         * elf/do-rel.h: Add another parameter nrelative, replacing the
71848         local variable with the same name.  Change name of the function
71849         to end in Rel or Rela (uppercase).
71850         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71851         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71852         elf_dynamic_do_##reloc function.
71853
71854 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71855
71856         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71857         is sufficient, at least on modern CPUs.
71858
71859         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71860
71861         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71862         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71863
71864         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71865         __expl_finite.
71866         * math/bits/math-finite.h: Add entries for exp.
71867         * math/e_expl.c: Add __*_finite alias.
71868         * sysdeps/i386/fpu/e_exp.S: Likewise.
71869         * sysdeps/i386/fpu/e_expf.S: Likewise.
71870         * sysdeps/i386/fpu/e_expl.c: Likewise.
71871         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71872         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71873         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71874         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71875         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71876         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71877         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71878
71879         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71880         is sufficient, at least on modern CPUs.
71881
71882         * ctype/ctype-info.c (__ctype_init): Define.
71883         * include/ctype.h (__ctype_init): Declare.
71884         (__ctype_b_loc): The variable is always initialized.
71885         (__ctype_toupper_loc): Likewise.
71886         (__ctype_tolower_loc): Likewise.
71887         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71888         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71889
71890 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71891
71892         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71893
71894         * configure.in: Also look in $cxxmachine/include for C++ system
71895         headers.
71896
71897 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71898
71899         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71900         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71901         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71902         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71903         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
71904         (USE_AS_WMEMCMP): New macro.
71905         Fixing indents.
71906         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
71907         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
71908         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
71909         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
71910         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71911         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
71912         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
71913         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
71914         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
71915         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
71916         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
71917         (USE_AS_WMEMCMP): New macro.
71918         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
71919         * sysdeps/string/test-memcmp.c: Update.
71920         Fix simple_wmemcmp.
71921         Add new tests.
71922         * wcsmbs/wmemcmp.c: Update.
71923         (WMEMCMP): New macro.
71924         Fix overflow bug.
71925
71926 2011-10-12  Andreas Jaeger  <aj@suse.de>
71927
71928         [BZ #13268]
71929         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
71930
71931 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71932
71933         * libio/iofwide.c (do_length): Avoid warning.
71934
71935         * ctype/ctype.h (__isctype_f): Add missing __THROW.
71936
71937 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
71938
71939         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
71940
71941         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
71942         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
71943         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
71944         * sysdeps/i386/i686/fpu/e_log.S: New file.
71945         * sysdeps/i386/i686/fpu/e_logf.S: New file.
71946         * sysdeps/i386/i686/fpu/e_logl.S: New file.
71947
71948         * ctype/ctype.h: Add support for inlined isXXX functions when
71949         compiling C++ code.
71950
71951 2011-10-14  Andreas Schwab  <schwab@redhat.com>
71952
71953         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71954
71955         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
71956
71957 2011-10-13  Roland McGrath  <roland@hack.frob.com>
71958
71959         [BZ #13291]
71960         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
71961
71962 2011-10-13  Andreas Schwab  <schwab@redhat.com>
71963
71964         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
71965         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
71966         feraiseexcept.
71967
71968         * sysdeps/x86_64/memrchr.S: Check for zero size.
71969
71970         * string/stratcliff.c: Add memrchr tests.
71971
71972 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71973
71974         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71975         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
71976         rawmemchr-sse2 rawmemchr-sse2-bsf.
71977         * sysdeps/i386/i686/multiarch/memchr.S: New file.
71978         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
71979         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
71980         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
71981         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
71982         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
71983         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
71984         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
71985         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
71986         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
71987         * string/memrchr.c (MEMRCHR): New macro.
71988
71989 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
71990
71991         Add integration with gcc's -ffinite-math-only and optimize wrapper
71992         functions in libm.
71993         * Versions.def: Define GLIBC_2.15 version for libm.
71994         * math/Makefile (headers): Add bits/math-finite.h.
71995         * math/bits/math-finite.h: New file.
71996         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
71997         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
71998         * math/e_acoshl.c: Add __*_finite alias.
71999         * math/e_acosl.c: Likewise.
72000         * math/e_asinl.c: Likewise.
72001         * math/e_atan2l.c: Likewise.
72002         * math/e_atanhl.c: Likewise.
72003         * math/e_coshl.c: Likewise.
72004         * math/e_exp10.c: Likewise.
72005         * math/e_exp10f.c: Likewise.
72006         * math/e_exp10l.c: Likewise.
72007         * math/e_exp2l.c: Likewise.
72008         * math/e_fmodl.c: Likewise.
72009         * math/e_gammal_r.c: Likewise.
72010         * math/e_hypotl.c: Likewise.
72011         * math/e_j0l.c: Likewise.
72012         * math/e_j1l.c: Likewise.
72013         * math/e_jnl.c: Likewise.
72014         * math/e_lgammal_r.c: Likewise.
72015         * math/e_log10l.c: Likewise.
72016         * math/e_log2l.c: Likewise.
72017         * math/e_logl.c: Likewise.
72018         * math/e_powl.c: Likewise.
72019         * math/e_sinhl.c: Likewise.
72020         * math/e_sqrtl.c: Likewise.
72021         * math/e_scalb.c: Completely rewritten and optimized.
72022         * math/e_scalbf.c: Likewise.
72023         * math/e_scalbl.c: Likewise.
72024         * math/w_acos.c: Likewise.
72025         * math/w_acosf.c: Likewise.
72026         * math/w_acosl.c: Likewise.
72027         * math/w_acosh.c: Likewise.
72028         * math/w_acoshf.c: Likewise.
72029         * math/w_acoshl.c: Likewise.
72030         * math/w_asin.c: Likewise.
72031         * math/w_asinf.c: Likewise.
72032         * math/w_asinl.c: Likewise.
72033         * math/w_atan2.c: Likewise.
72034         * math/w_atan2f.c: Likewise.
72035         * math/w_atan2l.c: Likewise.
72036         * math/w_atanh.c: Likewise.
72037         * math/w_atanhf.c: Likewise.
72038         * math/w_atanhl.c: Likewise.
72039         * math/w_exp10.c: Likewise.
72040         * math/w_exp10f.c: Likewise.
72041         * math/w_exp10l.c: Likewise.
72042         * math/w_fmod.c: Likewise.
72043         * math/w_fmodf.c: Likewise.
72044         * math/w_fmodl.c: Likewise.
72045         * math/w_j0.c: Likewise.
72046         * math/w_j0f.c: Likewise.
72047         * math/w_j0l.c: Likewise.
72048         * math/w_j1.c: Likewise.
72049         * math/w_j1f.c: Likewise.
72050         * math/w_j1l.c: Likewise.
72051         * math/w_jn.c: Likewise.
72052         * math/w_jnf.c: Likewise.
72053         * math/w_log.c: Likewise.
72054         * math/w_logf.c: Likewise.
72055         * math/w_logl.c: Likewise.
72056         * math/w_log10.c: Likewise.
72057         * math/w_log10f.c: Likewise.
72058         * math/w_log10l.c: Likewise.
72059         * math/w_log2.c: Likewise.
72060         * math/w_log2f.c: Likewise.
72061         * math/w_log2l.c: Likewise.
72062         * math/w_pow.c: Likewise.
72063         * math/w_powf.c: Likewise.
72064         * math/w_powl.c: Likewise.
72065         * math/w_remainder.c: Likewise.
72066         * math/w_remainderf.c: Likewise.
72067         * math/w_remainderl.c: Likewise.
72068         * math/w_scalb.c: Likewise.
72069         * math/w_scalbf.c: Likewise.
72070         * math/w_scalbl.c: Likewise.
72071         * math/w_sqrt.c: Likewise.
72072         * math/w_sqrtf.c: Likewise.
72073         * math/w_sqrtl.c: Likewise.
72074         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
72075         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
72076         used.
72077         * math/math_private.h: Declare __kernel_standard_f.
72078         * math/w_cosh.c: Remove cruft and optimize a bit.
72079         * math/w_coshf.c: Likewise.
72080         * math/w_coshl.c: Likewise.
72081         * math/w_exp2.c: Likewise.
72082         * math/w_exp2f.c: Likewise.
72083         * math/w_exp2l.c: Likewise.
72084         * math/w_hypot.c: Likewise.
72085         * math/w_hypotf.c: Likewise.
72086         * math/w_hypotl.c: Likewise.
72087         * math/w_lgamma.c: Likewise.
72088         * math/w_lgamma_r.c: Likewise.
72089         * math/w_lgammaf.c: Likewise.
72090         * math/w_lgammaf_r.c: Likewise.
72091         * math/w_lgammal.c: Likewise.
72092         * math/w_lgammal_r.c: Likewise.
72093         * math/w_sinh.c: Likewise.
72094         * math/w_sinhf.c: Likewise.
72095         * math/w_sinhl.c: Likewise.
72096         * math/w_tgamma.c: Likewise.
72097         * math/w_tgammaf.c: Likewise.
72098         * math/w_tgammal.c: Likewise.
72099         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
72100         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
72101         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
72102         Minor optimizations.  Pretty printing.  Remove cruft.
72103         * sysdeps/i386/fpu/e_acosf.S: Likewise.
72104         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72105         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72106         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72107         * sysdeps/i386/fpu/e_acosl.c: Likewise.
72108         * sysdeps/i386/fpu/e_asin.S: Likewise.
72109         * sysdeps/i386/fpu/e_asinf.S: Likewise.
72110         * sysdeps/i386/fpu/e_atan2.S: Likewise.
72111         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
72112         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
72113         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72114         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72115         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72116         * sysdeps/i386/fpu/e_exp10.S: Likewise.
72117         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
72118         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
72119         * sysdeps/i386/fpu/e_exp2.S: Likewise.
72120         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
72121         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
72122         * sysdeps/i386/fpu/e_fmod.S: Likewise.
72123         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
72124         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
72125         * sysdeps/i386/fpu/e_hypot.S: Likewise.
72126         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
72127         * sysdeps/i386/fpu/e_log.S: Likewise.
72128         * sysdeps/i386/fpu/e_log10.S: Likewise.
72129         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72130         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72131         * sysdeps/i386/fpu/e_log2.S: Likewise.
72132         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72133         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72134         * sysdeps/i386/fpu/e_logf.S: Likewise.
72135         * sysdeps/i386/fpu/e_logl.S: Likewise.
72136         * sysdeps/i386/fpu/e_pow.S: Likewise.
72137         * sysdeps/i386/fpu/e_powf.S: Likewise.
72138         * sysdeps/i386/fpu/e_powl.S: Likewise.
72139         * sysdeps/i386/fpu/e_remainder.S: Likewise.
72140         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
72141         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
72142         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72143         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72144         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72145         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
72146         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
72147         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
72148         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
72149         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
72150         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
72151         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
72152         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
72153         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
72154         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
72155         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
72156         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
72157         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
72158         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
72159         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
72160         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
72161         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
72162         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
72163         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
72164         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
72165         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
72166         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
72167         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
72168         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
72169         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
72170         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
72171         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
72172         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
72173         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
72174         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
72175         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
72176         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
72177         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
72178         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
72179         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
72180         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72181         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
72182         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
72183         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
72184         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
72185         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
72186         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
72187         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
72188         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
72189         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
72190         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
72191         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
72192         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
72193         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
72194         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
72195         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
72196         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
72197         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
72198         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
72199         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
72200         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
72201         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72202         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
72203         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
72204         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
72205         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
72206         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
72207         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
72208         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
72209         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
72210         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
72211         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
72212         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
72213         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
72214         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
72215         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
72216         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
72217         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
72218         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
72219         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
72220         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
72221         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
72222         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
72223         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
72224         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
72225         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
72226         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
72227         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
72228         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
72229         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
72230         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
72231         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
72232         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
72233         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
72234         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72235         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
72236         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
72237         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
72238         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
72239         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
72240         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
72241         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
72242         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
72243         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
72244         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
72245         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
72246         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
72247         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
72248         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
72249         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
72250         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
72251         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
72252         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72253         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72254         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72255         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72256         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
72257         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72258         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
72259         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
72260         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
72261         (__isnanf): Likewise.
72262         (__isinf_ns): Likewise.
72263         (__isinf_nsf): Likewise.
72264         (__finite): Likewise.
72265         (__finitef): Likewise.
72266         (__ieee754_sqrt): Define as macro.
72267         (__ieee754_sqrtf): Define as macro.
72268         (__ieee754_sqrtl): Define as macro.
72269         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
72270         inlined copy.
72271         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
72272         __FINITE_MATH_ONLY__ consistent.
72273         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
72274
72275 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
72276
72277         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
72278         of rawmemchr.
72279
72280         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
72281
72282 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
72283
72284         * po/ja.po: Update from translation team.
72285
72286 2011-10-08  Roland McGrath  <roland@hack.frob.com>
72287
72288         * locale/programs/locarchive.c (prepare_address_space): New function.
72289         (create_archive, enlarge_archive, open_archive): Use it.
72290
72291         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
72292         inside [SHARED], where it is used.
72293
72294         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
72295
72296         * nss/getent.c (netgroup_keys): Remove unused variable.
72297         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
72298
72299 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
72300
72301         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
72302         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
72303         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
72304         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
72305         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
72306         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
72307         * math/Makefile (libm-calls): Add s_isinf_ns.
72308         * math/divtc3.c: Use __isinf_nsl instead of isinf.
72309         * math/multc3.c: Likewise.
72310         * math/s_casin.c: Likewise.
72311         * math/s_casinf.c: Likewise.
72312         * math/s_casinl.c: Likewise.
72313         * math/s_ccos.c: Likewise.
72314         * math/s_ccosf.c: Likewise.
72315         * math/s_ccosl.c: Likewise.
72316         * math/s_ctan.c: Likewise.
72317         * math/s_ctanf.c: Likewise.
72318         * math/s_ctanh.c: Likewise.
72319         * math/s_ctanhf.c: Likewise.
72320         * math/s_ctanhl.c: Likewise.
72321         * math/s_ctanl.c: Likewise.
72322         * math/w_fmod.c: Likewise.
72323         * math/w_fmodf.c: Likewise.
72324         * math/w_fmodl.c: Likewise.
72325         * math/w_remainder.c: Likewise.
72326         * math/w_remainderf.c: Likewise.
72327         * math/w_remainderl.c: Likewise.
72328         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
72329         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
72330         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
72331         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
72332         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
72333         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
72334         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
72335         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
72336
72337         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
72338         of the number.
72339         * stdio-common/printf_fphex.c: Likewise.
72340         * stdio-common/printf_size.c: Likewise.
72341
72342         * math/e_exp10.c: Include math_private.h using <...> not "...".
72343         * math/e_exp10f.c: Likewise.
72344         * math/e_exp10l.c: Likewise.
72345         * math/e_exp2l.c: Likewise.
72346         * math/e_j0l.c: Likewise.
72347         * math/e_j1l.c: Likewise.
72348         * math/e_jnl.c: Likewise.
72349         * math/e_lgammal_r.c: Likewise.
72350         * math/e_rem_pio2l.c: Likewise.
72351         * math/e_scalb.c: Likewise.
72352         * math/e_scalbf.c: Likewise.
72353         * math/e_scalbl.c: Likewise.
72354         * math/k_cosl.c: Likewise.
72355         * math/k_sinl.c: Likewise.
72356         * math/k_tanl.c: Likewise.
72357         * math/s_cacoshf.c: Likewise.
72358         * math/s_catan.c: Likewise.
72359         * math/s_catanf.c: Likewise.
72360         * math/s_catanh.c: Likewise.
72361         * math/s_catanhf.c: Likewise.
72362         * math/s_catanhl.c: Likewise.
72363         * math/s_catanl.c: Likewise.
72364         * math/s_ccosh.c: Likewise.
72365         * math/s_ccoshf.c: Likewise.
72366         * math/s_ccoshl.c: Likewise.
72367         * math/s_cexp.c: Likewise.
72368         * math/s_cexpf.c: Likewise.
72369         * math/s_cexpl.c: Likewise.
72370         * math/s_clog.c: Likewise.
72371         * math/s_clog10.c: Likewise.
72372         * math/s_clog10f.c: Likewise.
72373         * math/s_clog10l.c: Likewise.
72374         * math/s_clogf.c: Likewise.
72375         * math/s_clogl.c: Likewise.
72376         * math/s_csin.c: Likewise.
72377         * math/s_csinf.c: Likewise.
72378         * math/s_csinh.c: Likewise.
72379         * math/s_csinhf.c: Likewise.
72380         * math/s_csinhl.c: Likewise.
72381         * math/s_csinl.c: Likewise.
72382         * math/s_csqrt.c: Likewise.
72383         * math/s_csqrtf.c: Likewise.
72384         * math/s_csqrtl.c: Likewise.
72385         * math/s_ctan.c: Likewise.
72386         * math/s_ctanf.c: Likewise.
72387         * math/s_ctanh.c: Likewise.
72388         * math/s_ctanhf.c: Likewise.
72389         * math/s_ctanhl.c: Likewise.
72390         * math/s_ctanl.c: Likewise.
72391         * math/s_ldexp.c: Likewise.
72392         * math/s_ldexpf.c: Likewise.
72393         * math/s_ldexpl.c: Likewise.
72394         * math/s_significand.c: Likewise.
72395         * math/s_significandf.c: Likewise.
72396         * math/s_significandl.c: Likewise.
72397         * math/w_acos.c: Likewise.
72398         * math/w_acosf.c: Likewise.
72399         * math/w_acosh.c: Likewise.
72400         * math/w_acoshf.c: Likewise.
72401         * math/w_acoshl.c: Likewise.
72402         * math/w_acosl.c: Likewise.
72403         * math/w_asin.c: Likewise.
72404         * math/w_asinf.c: Likewise.
72405         * math/w_asinl.c: Likewise.
72406         * math/w_atan2.c: Likewise.
72407         * math/w_atan2f.c: Likewise.
72408         * math/w_atan2l.c: Likewise.
72409         * math/w_atanh.c: Likewise.
72410         * math/w_atanhf.c: Likewise.
72411         * math/w_atanhl.c: Likewise.
72412         * math/w_cosh.c: Likewise.
72413         * math/w_coshf.c: Likewise.
72414         * math/w_coshl.c: Likewise.
72415         * math/w_dremf.c: Likewise.
72416         * math/w_exp10.c: Likewise.
72417         * math/w_exp10f.c: Likewise.
72418         * math/w_exp10l.c: Likewise.
72419         * math/w_exp2.c: Likewise.
72420         * math/w_exp2f.c: Likewise.
72421         * math/w_fmod.c: Likewise.
72422         * math/w_fmodf.c: Likewise.
72423         * math/w_fmodl.c: Likewise.
72424         * math/w_hypot.c: Likewise.
72425         * math/w_hypotf.c: Likewise.
72426         * math/w_hypotl.c: Likewise.
72427         * math/w_j0.c: Likewise.
72428         * math/w_j0f.c: Likewise.
72429         * math/w_j0l.c: Likewise.
72430         * math/w_j1.c: Likewise.
72431         * math/w_j1f.c: Likewise.
72432         * math/w_j1l.c: Likewise.
72433         * math/w_jn.c: Likewise.
72434         * math/w_jnf.c: Likewise.
72435         * math/w_jnl.c: Likewise.
72436         * math/w_lgamma.c: Likewise.
72437         * math/w_lgamma_r.c: Likewise.
72438         * math/w_lgammaf.c: Likewise.
72439         * math/w_lgammaf_r.c: Likewise.
72440         * math/w_lgammal.c: Likewise.
72441         * math/w_lgammal_r.c: Likewise.
72442         * math/w_log.c: Likewise.
72443         * math/w_log10.c: Likewise.
72444         * math/w_log10f.c: Likewise.
72445         * math/w_log10l.c: Likewise.
72446         * math/w_log2.c: Likewise.
72447         * math/w_log2f.c: Likewise.
72448         * math/w_log2l.c: Likewise.
72449         * math/w_logf.c: Likewise.
72450         * math/w_logl.c: Likewise.
72451         * math/w_pow.c: Likewise.
72452         * math/w_powf.c: Likewise.
72453         * math/w_powl.c: Likewise.
72454         * math/w_remainder.c: Likewise.
72455         * math/w_remainderf.c: Likewise.
72456         * math/w_remainderl.c: Likewise.
72457         * math/w_scalb.c: Likewise.
72458         * math/w_scalbf.c: Likewise.
72459         * math/w_scalbl.c: Likewise.
72460         * math/w_sinh.c: Likewise.
72461         * math/w_sinhf.c: Likewise.
72462         * math/w_sinhl.c: Likewise.
72463         * math/w_sqrt.c: Likewise.
72464         * math/w_sqrtf.c: Likewise.
72465         * math/w_sqrtl.c: Likewise.
72466         * math/w_tgamma.c: Likewise.
72467         * math/w_tgammaf.c: Likewise.
72468         * math/w_tgammal.c: Likewise.
72469
72470         * po/ja.po: Update from translation team.
72471
72472 2011-09-29  Andreas Jaeger  <aj@suse.de>
72473
72474         [BZ #13179]
72475         * sunrpc/netname.c (netname2host): Fix logic.
72476
72477         [BZ #6779]
72478         [BZ #6783]
72479         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72480         correctly.
72481         * math/w_remainder.c (__remainder): Likewise.
72482         * math/w_remainderf.c (__remainderf): Likewise.
72483         * math/libm-test.inc (remainder_test): Add test cases.
72484
72485 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72486
72487         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72488         sdiv_qrnnd.
72489
72490 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72491
72492         * string/test-memcmp.c: Avoid unncessary #defines.
72493         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72494
72495 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72496
72497         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72498         Use new sse2 version for core i3 - i7 as it's faster
72499         than sse42 version.
72500         (bit_Prefer_PMINUB_for_stringop): New.
72501         * sysdeps/x86_64/rawmemchr.S: Update.
72502         Replace with faster SSE2 version.
72503         * sysdeps/x86_64/memrchr.S: New file.
72504         * sysdeps/x86_64/memchr.S: Update.
72505         Replace with faster SSE2 version.
72506
72507 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72508
72509         * elf/dl-load.c (lose): Add cast to avoid warning.
72510
72511 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72512
72513         * po/ca.po: Update from translation team.
72514
72515         * inet/getnetgrent_r.c: Hook up nscd.
72516         * nscd/Makefile (routines): Add nscd_netgroup.
72517         (nscd-modules): Add netgroupcache.
72518         (CFLAGS-netgroupcache.c): Define.
72519         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72520         (cache_search): Add const to second parameter.
72521         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72522         INNETGR.
72523         (dbs): Add netgrdb entry.
72524         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72525         (verify_persistent_db): Handle netgrdb.
72526         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72527         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72528         GETFDNETGR.
72529         (netgroup_response_header): Define.
72530         (innetgroup_response_header): Define.
72531         (datahead): Add netgroup_response_header and innetgroup_response_header
72532         elements.
72533         * nscd/nscd.conf: Add entries for netgroup cache.
72534         * nscd/nscd.h (dbtype): Add netgrdb.
72535         (_PATH_NSCD_NETGROUP_DB): Define.
72536         (netgroup_iov_disabled): Declare.
72537         (xmalloc, xcalloc, xrealloc): Move declarations here.
72538         (cache_search): Adjust prototype.
72539         Add netgroup-related prototypes.
72540         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72541         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72542         (__nscd_innetgr): Declare.
72543         * nscd/selinux.c (perms): Use access_vector_t as element type and
72544         add netgroup-related initializers.
72545         * nscd/netgroupcache.c: New file.
72546         * nscd/nscd_netgroup.c: New file.
72547         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72548         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72549         For four parameters use innetgr.
72550         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72551         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72552         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72553         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72554
72555         * nscd/connections.c (register_traced_file): Don't register file
72556         for disabled databases.
72557
72558 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72559
72560         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72561
72562         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72563         from tree and freeing node.
72564
72565 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72566
72567         * nss/nsswitch.c (__nss_database_lookup): Handle
72568         nss_parse_service_list out of memory case.
72569
72570 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72571
72572         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72573         out of memory case.
72574
72575 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72576
72577         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72578         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72579         pass it down.
72580         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72581         elf_machine_rela, elf_machine_lazy_rel.
72582         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72583         (ELF_DYNAMIC_DO_REL): Likewise.
72584         (ELF_DYNAMIC_DO_RELA): Likewise.
72585         (ELF_DYNAMIC_RELOCATE): Likewise.
72586         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72587         to ELF_DYNAMIC_DO_REL.
72588         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72589         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72590         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72591         elf_machine_rela.
72592         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72593         skip_ifunc, don't call ifunc function if non-zero.
72594         (elf_machine_rela): Likewise.
72595         (elf_machine_lazy_rel): Likewise.
72596         (elf_machine_lazy_rela): Likewise.
72597         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72598         (elf_machine_lazy_rel): Likewise.
72599         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72600         Likewise.
72601         (elf_machine_lazy_rel): Likewise.
72602         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72603         Likewise.
72604         (elf_machine_lazy_rel): Likewise.
72605         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72606         (elf_machine_lazy_rel): Likewise.
72607         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72608         (elf_machine_lazy_rel): Likewise.
72609         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72610         (elf_machine_lazy_rel): Likewise.
72611         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72612         (elf_machine_lazy_rel): Likewise.
72613         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72614         (elf_machine_lazy_rel): Likewise.
72615         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72616         (elf_machine_lazy_rel): Likewise.
72617
72618 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72619
72620         * nss/nss_files/files-init.c (_nss_files_init): Use static
72621         initialization for all the *_traced_file variables.
72622
72623 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72624
72625         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72626
72627 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72628
72629         [BZ #13226]
72630         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72631
72632 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72633
72634         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72635         Reread the line before reparsing it.
72636
72637 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72638
72639         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72640
72641 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72642             Maxim Kuvyrkov  <maxim@codesourcery.com>
72643             Joseph Myers  <joseph@codesourcery.com>
72644
72645         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72646         if needed for __stack_chk_guard.
72647
72648 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72649
72650         * sysdeps/posix/spawni.c (script_execute): Always define it.
72651         It will be optimized away if unused.
72652         (maybe_script_execute): New function.
72653         (__spawni): Call it.
72654
72655         * Makerules: Don't include tls.make.
72656         (config-tls): Always set to thread.
72657         * tls.make.c: File removed.
72658
72659 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72660
72661         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72662         * config.make.in (CPPFLAGS-config): New substituted variable.
72663
72664 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72665
72666         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72667
72668         [BZ #13192]
72669         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72670         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72671
72672 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72673
72674         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72675         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72676         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72677         (CALL_FAIL): Likewise.
72678         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72679         (CALL_FAIL): Macro removed.
72680         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72681
72682 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72683
72684         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72685         for __FINITE_MATH_ONLY__ == 1.
72686
72687 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72688
72689         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72690         __ieee754_sqrt instead of sqrt.
72691         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72692         __ieee754_sqrtf instead of sqrtf.
72693         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72694         __floorf instead of floorf.
72695         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72696         __floorf, __truncf instead of floorf, truncf.
72697
72698 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72699
72700         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72701
72702         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72703         __extern_always_inline.
72704         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72705         32-bit.
72706
72707 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72708
72709         * elf/rtld.c (dl_main): Also relocate in dependency order when
72710         doing symbol dependency testing.
72711
72712 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72713
72714         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72715         Always define `refsym'.
72716
72717 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72718
72719         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72720         (__FD_ELT): Renamed from __FDELT.
72721         * misc/bits/select2.h (__FD_ELT): Likewise.
72722         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72723         __FD_MASK instead of __FDELT, __FDMASK.
72724         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72725         Likewise.
72726         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72727         Likewise.
72728
72729         * elf/Makefile (gen-ldd): Fix pattern.
72730
72731         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72732         (init_tls): Likewise.
72733
72734 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72735
72736         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72737
72738 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72739
72740         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72741         `struct cmsghdr *' instead of `void *'.
72742         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72743         Likewise.
72744
72745 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72746
72747         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72748         if non-absolute.
72749         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72750         ldd_rewrite_script.
72751
72752 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72753
72754         * configure.in: Remove --with-tls option.
72755         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72756         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72757         out in case it is missing.
72758         * sysdeps/ia64/elf/configure.in: Likewise.
72759         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72760         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72761         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72762         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72763         * sysdeps/sh/elf/configure.in: Likewise.
72764         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72765         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72766         * sysdeps/x86_64/elf/configure.in: Likewise.
72767         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72768         * sysdeps/mach/hurd/tls.h: Likewise.
72769
72770         [BZ #13067]
72771         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72772
72773         [BZ #13090]
72774         * configure.in: Fix use of AC_INIT.
72775
72776         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72777
72778 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72779
72780         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72781         __set_errno.
72782         * malloc/hooks.c: Likewise.
72783
72784         [BZ #11929]
72785         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72786         variables statically.
72787         (narenas): Initialize.
72788         (list_lock): Initialize.
72789         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72790         initializtion of main_arena and list_lock.  Small cleanups.
72791         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72792         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72793         Add initializers to main_arena and mp_.
72794         (malloc_state): Remove pagesize member.  Change all users to use
72795         GLRO(dl_pagesize).
72796
72797         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72798         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72799         is always initialized.
72800
72801         * malloc/malloc.c: Removed unused configurations and dead code.
72802         * malloc/arena.c: Likewise.
72803         * malloc/hooks.c: Likewise.
72804         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72805
72806         * include/tls.h: Removed.  USE___THREAD must always be defined.
72807         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72808         * elf/dl-libc.c: Likewise.
72809         * elf/dl-tsd.c: Likewise.
72810         * include/errno.h: Likewise.
72811         * include/netdb.h: Likewise.
72812         * include/resolv.h: Likewise.
72813         * inet/herrno-loc.c: Likewise.
72814         * inet/herrno.c: Likewise.
72815         * malloc/arena.c: Likewise.
72816         * malloc/hooks.c: Likewise.
72817         * malloc/malloc.c: Likewise.
72818         * resolv/res-state.c: Likewise.
72819         * resolv/res_libc.c: Likewise.
72820         * sysdeps/i386/dl-machine.h: Likewise.
72821         * sysdeps/ia64/dl-machine.h: Likewise.
72822         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72823         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72824         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72825         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72826         * sysdeps/sh/dl-machine.h: Likewise.
72827         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72828         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72829         * sysdeps/unix/i386/sysdep.S: Likewise.
72830         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72831         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72832         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72833         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72834         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72835         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72836         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72837         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72838         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72839         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72840         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72841         * sysdeps/x86_64/dl-machine.h: Likewise.
72842         * tls.make.c: Likewise.
72843
72844         * configure.in: Remove --with-__thread option.  Make tests for
72845         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72846         tls_model attribute fail if no support is available.  Remove
72847         USE_IN_LIBIO.
72848         * Makeconfig: Adjust for dropped configure option.  All features are
72849         now mandatory.
72850         * Makerules: Likewise.
72851         * Versions.def: Likewise.
72852         * argp/argp-fmtstream.c: Likewise.
72853         * argp/argp-fmtstream.h: Likewise.
72854         * argp/argp-help.c: Likewise.
72855         * assert/assert.c: Likewise.
72856         * config.h.in: Likewise.
72857         * config.make.in: Likewise.
72858         * configure: Likewise.
72859         * configure.in: Likewise.
72860         * csu/Versions: Likewise.
72861         * csu/init.c: Likewise.
72862         * elf/tst-audit2.c: Likewise.
72863         * elf/tst-tls10.c: Likewise.
72864         * elf/tst-tls10.h: Likewise.
72865         * elf/tst-tls11.c: Likewise.
72866         * elf/tst-tls12.c: Likewise.
72867         * elf/tst-tls14.c: Likewise.
72868         * elf/tst-tlsmod11.c: Likewise.
72869         * elf/tst-tlsmod12.c: Likewise.
72870         * elf/tst-tlsmod13.c: Likewise.
72871         * elf/tst-tlsmod13a.c: Likewise.
72872         * elf/tst-tlsmod14a.c: Likewise.
72873         * elf/tst-tlsmod15b.c: Likewise.
72874         * elf/tst-tlsmod16a.c: Likewise.
72875         * elf/tst-tlsmod16b.c: Likewise.
72876         * elf/tst-tlsmod7.c: Likewise.
72877         * elf/tst-tlsmod8.c: Likewise.
72878         * elf/tst-tlsmod9.c: Likewise.
72879         * gmon/gmon.c: Likewise.
72880         * grp/fgetgrent_r.c: Likewise.
72881         * grp/putgrent.c: Likewise.
72882         * hurd/fopenport.c: Likewise.
72883         * include/libc-symbols.h: Likewise.
72884         * include/tls.h: Likewise.
72885         * intl/gettextP.h: Likewise.
72886         * intl/loadinfo.h: Likewise.
72887         * locale/global-locale.c: Likewise.
72888         * locale/localeinfo.h: Likewise.
72889         * mach/devstream.c: Likewise.
72890         * malloc/arena.c: Likewise.
72891         * malloc/set-freeres.c: Likewise.
72892         * misc/err.c: Likewise.
72893         * misc/getttyent.c: Likewise.
72894         * misc/mntent_r.c: Likewise.
72895         * posix/getopt.c: Likewise.
72896         * posix/wordexp.c: Likewise.
72897         * pwd/fgetpwent_r.c: Likewise.
72898         * resolv/Versions: Likewise.
72899         * resolv/res_hconf.c: Likewise.
72900         * shadow/fgetspent_r.c: Likewise.
72901         * shadow/putspent.c: Likewise.
72902         * stdio-common/printf_fphex.c: Likewise.
72903         * stdio-common/tmpfile.c: Likewise.
72904         * stdlib/abort.c: Likewise.
72905         * stdlib/fmtmsg.c: Likewise.
72906         * sunrpc/auth_unix.c: Likewise.
72907         * sunrpc/clnt_perr.c: Likewise.
72908         * sunrpc/clnt_tcp.c: Likewise.
72909         * sunrpc/clnt_udp.c: Likewise.
72910         * sunrpc/clnt_unix.c: Likewise.
72911         * sunrpc/openchild.c: Likewise.
72912         * sunrpc/svc_simple.c: Likewise.
72913         * sunrpc/svc_tcp.c: Likewise.
72914         * sunrpc/svc_udp.c: Likewise.
72915         * sunrpc/svc_unix.c: Likewise.
72916         * sunrpc/xdr.c: Likewise.
72917         * sunrpc/xdr_array.c: Likewise.
72918         * sunrpc/xdr_rec.c: Likewise.
72919         * sunrpc/xdr_ref.c: Likewise.
72920         * sunrpc/xdr_stdio.c: Likewise.
72921
72922 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72923
72924         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72925
72926 2011-07-03  Andreas Jaeger  <aj@suse.de>
72927
72928         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
72929         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
72930         regenerate with gen-libm-tests.pl.
72931
72932 2010-05-12  Petr Baudis  <pasky@suse.cz>
72933
72934         [BZ #11589]
72935         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
72936         around j0() zero points by switching to j1().
72937         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72938         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72939         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72940         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72941
72942 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72943
72944         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
72945         instead of 0.
72946         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
72947         instead of 0.
72948         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72949         Patch in part by Pavel Roskin <proski@gnu.org>.
72950
72951         [BZ #13138]
72952         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
72953         realloc.
72954         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
72955         Free memory block if necessary.
72956
72957         [BZ #12847]
72958         * libio/genops.c (INTDEF): For string streams the _lock pointer can
72959         be NULL.  Don't lock in this case.
72960
72961 2011-09-09  Roland McGrath  <roland@hack.frob.com>
72962
72963         * elf/elf.h (ELFOSABI_GNU): New macro.
72964         (ELFOSABI_LINUX): Define to that.
72965
72966 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
72967
72968         * string/strncat.c (strncat): Undef the symbol in case it has been
72969         defined in bits/string.h.
72970
72971 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72972
72973         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
72974
72975         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
72976         link map.
72977
72978 2011-08-17  Andreas Jaeger  <aj@suse.de>
72979
72980         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
72981
72982 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
72983             Ian Lance Taylor  <iant@google.com>
72984
72985         * math/libm-test.inc (lround_test): New testcase.
72986         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
72987
72988 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
72989
72990         * Makefile: Remove support for automatic cvs check-ins.
72991         * Makerules: Likewise.
72992         * config.make.in: Likewise.
72993         * configure.in: Likewise.
72994         * intl/Makefile: Likewise.
72995         * locale/Makefile: Likewise.
72996         * po/Makefile: Likewise.
72997         * posix/Makefile: Likewise.
72998         * sysdeps/gnu/Makefile: Likewise.
72999         * sysdeps/mach/hurd/Makefile: Likewise.
73000         * sysdeps/sparc/sparc32/Makefile: Likewise.
73001
73002         [BZ #13118]
73003         * posix/Makefile (bug-regex32-ENV): Define.
73004         Patch by John Stanley <jpsinthemix@verizon.net>.
73005
73006         * misc/Makefile (headers): Add bits/select2.h.
73007         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
73008         * misc/bits/select2.h: New file.
73009         * include/bits/select2.h: New file.
73010         * debug/Makefile (routines): Add fdelt_chk.
73011         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
73012         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
73013         FD_ISSET.
73014         * debug/fdelt_chk.c: New file.
73015
73016         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
73017         * wcsmbs/test-wmemcmp.c: Likewise.
73018         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
73019         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
73020
73021 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73022
73023         * string/Makefile (strop-tests): Add memcmp.
73024         * string/test-wmemcmp.c: New file.
73025         * string/test-memcmp.c: Add wmemcmp support.
73026
73027 2011-09-08  Roland McGrath  <roland@hack.frob.com>
73028
73029         [BZ #13153]
73030         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
73031         2011-07-19 change.
73032
73033         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
73034         garbage value in a __mach_port_mod_refs call in the cases of the
73035         task-self and thread-self ports.
73036
73037 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
73038
73039         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
73040
73041 2011-09-08  Andreas Schwab  <schwab@redhat.com>
73042
73043         * elf/dl-load.c (lose): Check for non-null L.
73044
73045 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73046
73047         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
73048
73049         * elf/dl-libc.c (dlerror_run): Pass back error code from
73050         dl_catch_error.
73051
73052         [BZ #13123]
73053         * elf/dl-load.c (lose): Free l_origin if it is valid.
73054
73055         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
73056         names.
73057         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
73058         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73059         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73060         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73061         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
73062         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
73063
73064 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73065
73066         * sysdeps/powerpc/fpu/e_hypot.c: New file.
73067         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
73068         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
73069         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
73070         * sysdeps/powerpc/fpu/k_cosf.c: New file.
73071         * sysdeps/powerpc/fpu/k_sinf.c: New file.
73072         * sysdeps/powerpc/fpu/s_cosf.c: New file.
73073         * sysdeps/powerpc/fpu/s_sinf.c: New file.
73074         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
73075         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
73076
73077 2011-08-15  Alan Modra  <amodra@gmail.com>
73078
73079         [BZ #13092]
73080         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
73081         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
73082         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
73083         ppc_mcount to static-only-routines.
73084         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
73085         __mcount_internal.
73086         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
73087         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
73088
73089 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
73090
73091         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
73092         for finite and infinity parameters.
73093
73094 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
73095
73096         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
73097         and add nop instructions for throughput optimization.
73098         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
73099
73100 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
73101
73102         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
73103         aligned copy for power7 with vector-scalar instructions.
73104         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
73105
73106 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
73107
73108         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
73109         AVX check.
73110
73111 2011-09-07  Andreas Schwab  <schwab@redhat.com>
73112
73113         [BZ #13144]
73114         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
73115         last change.
73116
73117 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73118
73119         * sysdeps/unix/sysv/linux/x86_64/init-first.c
73120         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
73121         syscall wrapper around clock_gettime in __vdso_clock_gettime.
73122         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
73123         clock_gettime.
73124
73125 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73126
73127         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
73128         Forgot to demangle the pointer.
73129
73130         * sysdeps/i386/sysdep.h: Define atom_text_section.
73131         * sysdeps/x86_64/sysdep.h: Likewise.
73132         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
73133         section with atom_text_section.
73134         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73135         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73136         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
73137         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73138         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
73139
73140         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
73141         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
73142         already be defined.  Change to take two parameters and don't assign
73143         result to variable.  Adjust all users.
73144         Define INTERNAL_GETTIME if not already defined.
73145         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
73146         call.
73147         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
73148         HAVE_CLOCK_GETTIME_VSYSCALL.
73149         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
73150
73151         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
73152         gettimeofday vsyscall, just use time.
73153
73154 2011-09-06  Andreas Schwab  <schwab@redhat.com>
73155
73156         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
73157         <errno.h>.
73158
73159 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73160
73161         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
73162         syscall on x86-64.
73163         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
73164         syscall.
73165         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
73166         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
73167         syscall if possible.
73168
73169 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73170
73171         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
73172         e_ident.  Don't pass to find_mapsXX.
73173         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
73174
73175 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73176
73177         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73178         strchr-sse2-no-bsf strrchr-sse2-no-bsf
73179         * sysdeps/x86_64/multiarch/strchr.S: Update.
73180         Check bit_slow_BSF bit.
73181         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
73182         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
73183         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
73184
73185 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73186
73187         [BZ #13134]
73188         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
73189         before glibc 2.15.
73190         (tryshell): Define.
73191         (__spawni): Change last parameter to be flag.  Test
73192         SPAWN_XFLAGS_USE_PATH flag to use path or not.
73193         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
73194         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
73195         * posix/spawni.c: Likewise.
73196         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
73197         * posix/spawnp.c: Likewise.  Change normal version to use
73198         SPAWN_XFLAGS_USE_PATH.
73199         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
73200         SPAWN_XFLAGS_TRY_SHELL.
73201
73202         [BZ #13150]
73203         * posix/glob.h: Remove gcc 1.x support.
73204
73205         [BZ #13068]
73206         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
73207
73208 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73209
73210         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73211         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
73212         strrchr-sse2-bsf
73213         * sysdeps/i386/i686/multiarch/strchr.S: New file.
73214         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
73215         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
73216         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
73217         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
73218         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
73219
73220 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73221
73222         * sysdeps/x86_64/wcscmp.S: New file.
73223
73224         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
73225         wcscmp-c wcscmp-sse2
73226         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
73227         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
73228         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
73229         * wcsmbs/wcscmp.c: Allow renaming.
73230
73231 2011-09-05  David S. Miller  <davem@davemloft.net>
73232
73233         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
73234         stack slot, rather than the struct return pointer slot.
73235         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
73236         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
73237         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
73238         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
73239
73240 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73241
73242         * po/ja.po: Update from translation team.
73243
73244         [BZ #13144]
73245         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
73246         kernel in 64-bit binaries.
73247
73248 2011-09-01  David S. Miller  <davem@davemloft.net>
73249
73250         * elf/elf.h (HWCAP_SPARC_*): Move to..
73251         * sysdeps/sparc/sysdep.h: this new file and add new values.
73252         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
73253         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
73254         _DL_HWCAP_COUNT to 24.
73255         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
73256         entries.
73257         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
73258         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
73259         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
73260         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
73261         instead of magic constants.
73262         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73263
73264 2011-08-31  David S. Miller  <davem@davemloft.net>
73265
73266         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
73267         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
73268         Reimplement to do errno handling inline.
73269         (SYSCALL_ERROR_HANDLER): New macro.
73270         (__SYSCALL_STRING): Do not do errno handling in asm.
73271         (__CLONE_SYSCALL_STRING): Delete.
73272         (__INTERNAL_SYSCALL_STRING): Delete.
73273         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
73274         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
73275         (PSEUDO): Reimplement to do errno handling inline.
73276         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
73277         (SYSCALL_ERROR_HANDLER): New macro.
73278         (__SYSCALL_STRING): Do not do errno handling in asm.
73279         (__CLONE_SYSCALL_STRING): Delete.
73280         (__INTERNAL_SYSCALL_STRING): Delete.
73281         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
73282         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
73283         i386.
73284         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
73285         (inline_syscall*): Add 'err' argument.
73286         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
73287         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
73288         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
73289         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
73290
73291         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
73292         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
73293
73294 2011-08-30  Andreas Schwab  <schwab@redhat.com>
73295
73296         * elf/rtld.c (dl_main): Relocate objects in dependency order.
73297
73298 2011-08-29  Jiri Olsa <jolsa@redhat.com>
73299
73300         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
73301         directive.
73302
73303 2011-08-24  David S. Miller  <davem@davemloft.net>
73304
73305         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
73306
73307 2011-08-24  Andreas Schwab  <schwab@redhat.com>
73308
73309         * elf/Makefile: Add rules to build and run unload8 test.
73310         * elf/unload8.c: New file.
73311         * elf/unload8mod1.c: New file.
73312         * elf/unload8mod1x.c: New file.
73313         * elf/unload8mod2.c: New file.
73314         * elf/unload8mod3.c: New file.
73315
73316         * elf/dl-close.c (_dl_close_worker): Reset private search list if
73317         it wasn't used.
73318
73319 2011-08-23  David S. Miller  <davem@davemloft.net>
73320
73321         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
73322         subtract stack bias.
73323         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
73324         %sp not %fp in calculations.
73325         (_JMPBUF_UNWINDS_ADJ): Likewise.
73326
73327         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
73328         (aio_suspend): Call it to force an exception region around the
73329         AIO_MISC_WAIT() invocation.
73330
73331 2011-08-23  Andreas Schwab  <schwab@redhat.com>
73332
73333         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
73334         backslash.
73335
73336 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
73337
73338         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
73339         protection macro.
73340         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
73341         and <dl-machine.h>.
73342         (Elf64_FuncDesc): Remove.
73343
73344 2011-08-22  David S. Miller  <davem@davemloft.net>
73345
73346         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
73347         sigaltstack check, add missing cfi directives.
73348         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
73349         missing cfi directives, and sigaltstack handling.
73350
73351 2011-08-16  Andreas Schwab  <schwab@redhat.com>
73352
73353         [BZ #11724]
73354         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
73355         object is seen twice.
73356         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73357
73358         * elf/Makefile (distribute): Add tst-initorder2.c.
73359         (tests): Add tst-initorder2.
73360         (modules-names): Add tst-initorder2a tst-initorder2b
73361         tst-initorder2c tst-initorder2d.  Add rules to build them.
73362         ($(objpfx)tst-initorder2.out): New rule.
73363         * elf/tst-initorder2.c: New file.
73364         * elf/tst-initorder2.exp: New file.
73365
73366 2011-08-22  Andreas Schwab  <schwab@redhat.com>
73367
73368         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
73369
73370         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
73371         dependencies back to end of function.
73372
73373         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
73374         $(elfobjdir)/ld.so.
73375
73376 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
73377
73378         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
73379         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
73380         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
73381         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
73382         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
73383         of __vdso_gettimeofday.
73384         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
73385         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
73386         attribute_hidden.
73387         (_libc_vdso_platform_setup): Remove initialization of
73388         __vdso_gettimeofday and __vdso_time.
73389
73390 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73391
73392         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
73393         and fgetc_unlocked.
73394         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
73395         getc_unlocked.
73396
73397         * elf/dl-open.c (add_to_global): Report additions to the global scope
73398         for LD_DEBUG=scopes.
73399         (dl_open_worker): Also print scope of newly loaded dependencies.
73400         (_dl_show_scope): Indicate if there is no scope.
73401
73402         [BZ #13114]
73403         * stdio-common/Makefile (tests): Add bug24.
73404         * stdio-common/bug24.c: New file.
73405
73406 2011-08-19  Andreas Jaeger  <aj@suse.de>
73407
73408         [BZ #13114]
73409         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
73410         non-existant file when using close-on-exec mode.
73411
73412 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73413
73414         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
73415         the very first instruction.
73416
73417         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
73418         the CFI state in the end.
73419         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
73420         inclusion of dl-trampoline.h.
73421         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
73422
73423 2011-08-19  Andreas Schwab  <schwab@redhat.com>
73424
73425         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
73426         expectations for long double.
73427
73428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
73429         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
73430
73431 2011-08-14  David S. Miller  <davem@davemloft.net>
73432
73433         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
73434         artificual limit depends upon the system page size.
73435
73436 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73437
73438         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
73439         * resolv/Makefile: Define CFLAGS-libresolv.
73440
73441 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73442
73443         * nss/makedb.c (compute_tables): Make variables used in nested
73444         function static.
73445
73446 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73447
73448         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73449         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73450         if buffer was too small.
73451
73452         * elf/pldd.c (main): Attach to all threads in the process.
73453         Rewrite /proc handling to use *at functions.
73454
73455 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73456
73457         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73458         specifies first scope to show.
73459         (dl_open_worker): Update callers.  Move printing scope of new
73460         object to before the relocation.
73461         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73462         * sysdeps/generic/ldsodefs.h: Update declaration.
73463
73464         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73465         string for the scope number.
73466
73467 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73468
73469         * nscd/servicescache.c (cache_addserv): Make sure written is always
73470         initialized.
73471
73472 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73473
73474         * sysdeps/i386/i486/bits/atomic.h
73475         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73476         statement expression, so as to suppress "set but not used" warning.
73477         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73478
73479         * string/strncat.c (STRNCAT): Use prototype definition.
73480
73481         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73482         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73483         -Iprograms here.
73484         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73485         (localedef-modules): Add localedef.
73486         (locale-modules): Add locale.
73487
73488         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73489         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73490         to avoid a warning.
73491
73492 2011-08-14  David S. Miller  <davem@davemloft.net>
73493
73494         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73495         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73496
73497 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73498
73499         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73500         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73501         * elf/rtld.c (dl_main): Set l_name of vDSO.
73502         Call _dl_show_scope when DL_DEBUG_SCOPES.
73503         (process_dl_debug): Recognize scopes flag and also set it for all.
73504         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73505         Declare _dl_show_scope.
73506
73507         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73508         (do_dlopen): Pass caller_dlopen to dl_open.
73509         (__libc_dlopen_mode): Initialize caller_dlopen.
73510
73511         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73512         of libc.  Make tolower call locale-independent.  Optimize a bit by
73513         using isdigit instead of isalnum.
73514         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73515
73516 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73517
73518         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73519         was a dependency or dynamically loaded.
73520
73521 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73522
73523         * intl/l10nflist.c: Allow architecture-specific pop function.
73524         * sysdeps/x86_64/l10nflist.c: New file.
73525
73526         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73527         classification.
73528
73529 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73530
73531         * include/dirent.h: Add libc_hidden_proto for scandirat and
73532         scandirat64.  Don't declare __scandirat64.
73533         * dirent/scandirat.c: Add libc_hidden_def.
73534         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73535         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73536
73537 2011-08-10  David S. Miller  <davem@davemloft.net>
73538
73539         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73540         enum.
73541         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73542         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73543         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73544
73545 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73546
73547         * Versions.def [libc]: Add GLIBC_2.15.
73548         * dirent/Makefile (routines): Add scandirat and scandirat64.
73549         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73550         GLIBC_2.15.
73551         * dirent/dirent.h: Declare scandirat and scandirat64.
73552         * dirent/scandirat.c: New file.
73553         * dirent/scandirat64.c: New file.
73554         * sysdeps/wordsize-64/scandirat.c: New file.
73555         * sysdeps/wordsize-64/scandirat64.c: New file.
73556         * dirent/opendir.c: Define opendirat.
73557         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73558         using scandirat.
73559         * dirent/scandir64.c: Adjust for scandir.c change.
73560         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73561         __scandirat64, and __scandir_cancel_handler.
73562         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73563         additional parameter and use openat instead of open (outside of ld.so).
73564         Add new __opendir as wrapper around __opendirat.
73565         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73566         here without requiring old scandirat implementation.
73567
73568 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73569
73570         * dirent/scandir.c (cancel_handler): Renamed to
73571         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73572         defined.  Adjust users.
73573         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73574         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73575
73576 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73577
73578         * string/test-string.h (IMPL): Use __STRING to expand name and then
73579         stringify it.
73580
73581         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73582         of cleanups.
73583
73584 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73585
73586         * string/Makefile: Update.
73587         (strop-tests): Append strncat.
73588         * string/test-wcscmp.c: New file.
73589         New comprehensive test for wcscmp.
73590         * string/test-strcmp.c: Update.
73591         (WIDE): New define.
73592
73593 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73594
73595         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73596         line.
73597
73598 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73599
73600         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73601         encoding to ACE if AI_IDN.
73602
73603 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73604
73605         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73606         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73607
73608 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73609
73610         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73611         Fix overflow bug in strncat.
73612         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73613
73614         * string/test-strncat.c: Update.
73615         Add new tests for checking overflow bugs.
73616
73617 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73618
73619         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73620         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73621         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73622         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73623         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73624         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73625         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73626         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73627         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73628
73629         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73630         (USE_AS_STRCAT): Define.
73631         Add strcat and strncat support.
73632         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73633
73634 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73635
73636         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73637         __n bigger than INT_MAX+1.
73638         (__strncmp_g): Likewise.
73639
73640 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73641
73642         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73643         * libio/stido.h: Likewise.
73644
73645         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73646         (AF_NFC): Define.
73647         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73648         (AF_NFC): Define.
73649
73650         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73651         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73652         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73653         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73654         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73655
73656         [BZ #13021]
73657         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73658         installed.
73659
73660         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73661         typo.
73662         (_dl_x86_64_save_sse): Likewise.
73663
73664 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73665
73666         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73667         OSXSAVE.
73668         (_dl_x86_64_save_sse): Likewise.
73669
73670         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73671
73672         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73673
73674 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73675
73676         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73677         change.
73678         (_dl_x86_64_save_sse): Use correct AVX check.
73679
73680 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73681
73682         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73683         bug in strncpy/strncat.
73684         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73685
73686 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73687
73688         * string/tester.c (test_strcat): Add tests for different alignments
73689         of source and destination.
73690         (test_strncat): Likewise.
73691
73692 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73693
73694         [BZ #12852]
73695         * posix/glob.c (glob): Check passed in values before using them in
73696         expressions to avoid some overflows.
73697         (glob_in_dir): Likewise.
73698
73699         [BZ #13007]
73700         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73701         check for AVX enablement so that we don't crash with old kernels and
73702         new hardware.
73703         * elf/tst-audit4.c: Add same checks here.
73704         * elf/tst-audit6.c: Likewise.
73705
73706         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73707
73708 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73709
73710         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73711
73712 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73713
73714         * po/cs.po: Update from translation team.
73715         * po/bg.po: Likewise.
73716
73717 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73718
73719         * misc/sys/cdefs.h: Add support for const attribute.
73720         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73721         to gnu_dev_{major,minor,makedev} functions.
73722
73723 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73724
73725         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73726
73727 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73728
73729         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73730         strlen results.
73731
73732 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73733
73734         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73735         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73736         register in order to avoid conflicts with the soft frame pointer
73737         being held in r11 when necessary.
73738         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73739         (INTERNAL_VSYSCALL_NCS): Likewise.
73740
73741 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73742
73743         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73744         * elf/dl-fini.c (_dl_fini): Adjust caller.
73745         * elf/dl-close.c (_dl_close_worker): Likewise.
73746         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73747
73748 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73749
73750         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73751         "aux_cache->nlibs < 0".
73752
73753         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73754         in the reload-count case.
73755
73756 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73757
73758         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73759         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73760         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73761         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73762         * sysdeps/x86_64/multiarch/strcat.S: New file.
73763         * sysdeps/x86_64/multiarch/strncat.S: New file.
73764         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73765         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73766         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73767         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73768         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73769         (USE_AS_STRCAT): Define.
73770         Add strcat and strncat support.
73771         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73772         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73773         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73774         * string/strncat.c: Update.
73775         (USE_AS_STRNCAT): Define.
73776         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73777         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73778         and i7.
73779         * sysdeps/x86_64/multiarch/init-arch.h
73780         (bit_Prefer_PMINUB_for_stringop): New.
73781         (index_Prefer_PMINUB_for_stringop): Likewise.
73782         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73783         bit_Prefer_PMINUB_for_stringop.
73784
73785 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73786
73787         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73788         buffer64.
73789         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73790         of casting of buffer.
73791         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73792         buffer32 and buffer64.
73793         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73794         writes instead of casting of buffer.
73795         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73796         buffer32.
73797         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73798         casting of buffer.
73799
73800 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73801
73802         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73803
73804 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73805
73806         * nscd/nscd.c (termination_handler): Don't do anything for a database
73807         if it has not yet been initialized.
73808
73809 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73810
73811         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73812
73813 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73814
73815         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73816
73817 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73818
73819         * po/nl.po: Update from translation team.
73820         * po/sv.po: Likewise.
73821
73822 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73823
73824         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73825         now disallowed by GCC.
73826
73827         * configure.in (use-default-link): Default to yes if a test -shared
73828         link meets our qualifications.
73829         * configure: Regenerated.
73830
73831         * config.make.in (output-format): New variable.
73832         * configure.in: Check for ld --print-output-format support.
73833         * configure: Regenerated.
73834         * Makerules ($(common-objpfx)format.lds)
73835         [$(output-format) != unknown]: Just use $(output-format),
73836         instead of the linker-script munging.
73837
73838 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73839
73840         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73841         of $(common-objpfx)shlib.lds.
73842         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73843
73844         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73845         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73846
73847         * configure.in (-z relro check): Adjust test code to add a large
73848         writable data section after it.
73849         * configure: Regenerated.
73850
73851 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73852
73853         * configure.in (-z relro check): Fix test code to make the variable
73854         truly const.
73855         * configure: Regenerated.
73856
73857 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73858
73859         * nscd/nscd.h (struct traced_file): Define.
73860         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73861         elements.  Add traced_files.
73862         (inotify_fd): Declare.
73863         (register_traced_file): Declare.
73864         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73865         (inotify_fd): Export.
73866         (resolv_conf_descr): Remove.
73867         (nscd_init): Move inotify descriptor creation to main.
73868         Don't register files for notification here.
73869         (register_traced_file): New function.
73870         (invalidate_cache): Don't use reset_res to determine whether to call
73871         res_init, go through the list of registered files.
73872         (main_loop_poll): The inotify descriptors are now stored in the
73873         structures for the traced files.
73874         (main_loop_epoll): Likewise.
73875         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73876         to __nss_disable_nscd.
73877         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73878         for a database anymore.  Check the records for all the registered
73879         files instead.
73880         * nss/Makefile (libnss_files-routines): Add files-init.
73881         (libnss_db-routines): Add db-init.
73882         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73883         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73884         * nss/nss_db/db-init.c: New file.
73885         * nss/nss_files/files-init.c: New file.
73886         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73887         __nss_lookup_function.
73888         (__nss_lookup_function): Call nss_load_library.
73889         (nss_load_all_libraries): New function.
73890         (__nss_disable_nscd): Take parameter with callback function for files
73891         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73892         used for the cached services.
73893         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73894         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73895         options for features to all the files in nscd.
73896
73897         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73898
73899 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73900
73901         * csu/elf-init.c (__libc_csu_init): Comment typo.
73902
73903 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
73904
73905         * po/pl.po: Update from translation team.
73906         * po/ja.po: Likewise.
73907         * po/ru.po: Likewise.
73908         * po/ko.po: Likewise.
73909         * po/fr.po: Likewise.
73910
73911 2011-07-09  Roland McGrath  <roland@hack.frob.com>
73912
73913         * configure.in (.ctors/.dtors header and trailer check):
73914         Use an empirical test on a built program.
73915         * configure: Regenerated.
73916
73917         * configure.in (-z relro check): Use an empirical test on a built DSO.
73918         Detect, but do not require, on ia64.
73919         * configure: Regenerated.
73920
73921         * configure.in (READELF): Find it with AC_CHECK_TOOL.
73922         Update tests that use readelf to use $READELF instead.
73923         * configure: Regenerated.
73924
73925 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
73926
73927         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
73928         if the result is not used.
73929
73930 2011-07-05  Andreas Jaeger  <aj@suse.de>
73931
73932         [BZ#9696]
73933         * stdlib/tst-strtod.c: Add testcase.
73934
73935 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
73936
73937         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
73938         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
73939         The latter has a higher limit.  Take additional parameter to pass to
73940         the new function.
73941         (__pathconf): Pass file to __statfs_link_max.
73942         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
73943         __statfs_link_max.
73944         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
73945         __statfs_link_max.
73946
73947         [BZ #12868]
73948         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
73949         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
73950         Handle Lustre.
73951         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
73952         (__statfs_filesize_max): Likewise.
73953         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
73954
73955 2011-07-05  Andreas Jaeger  <aj@suse.de>
73956
73957         * resolv/res_comp.c (dn_skipname): Remove unused variable.
73958
73959 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
73960
73961         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
73962         `status' variable.
73963         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
73964         Likewise.
73965
73966 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
73967
73968         * Makefile (strop-tests): Add strncat.
73969         * string/test-strncat.c: New file.
73970
73971 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
73972
73973         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
73974
73975 2011-06-21  Andreas Jaeger  <aj@suse.de>
73976
73977         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
73978         Copy rule from iconvdata/Makefile.
73979
73980 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73981
73982         [BZ #12922]
73983         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
73984         but no long options are defined, just return 'W'.
73985
73986 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
73987
73988         [BZ #9696]
73989         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
73990
73991 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
73992
73993         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
73994         netgroups to read.
73995         (innetgr): Likewise.
73996
73997 2011-07-05  Roland McGrath  <roland@hack.frob.com>
73998
73999         * config.make.in (install_root): Default to $(DESTDIR).
74000
74001 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
74002
74003         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
74004
74005 2011-07-02  Roland McGrath  <roland@hack.frob.com>
74006
74007         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
74008
74009         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
74010         containing directory rather than embedding absolute directory names.
74011
74012         * scripts/check-local-headers.sh: Rewritten using awk.
74013         Match by word, not by line.  Print error messages for matches.
74014         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
74015
74016         * Makerules [shlib-lds-flags empty]:
74017         ($(common-objpfx)libc_pic.opts): New target.
74018         ($(common-objpfx)libc_pic.os.clean): New target.
74019         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
74020
74021         * config.make.in (OBJCOPY): New variable.
74022         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
74023         * configure: Regenerated.
74024
74025         * config.make.in (use-default-link): New variable.
74026         * configure.in (use_default_link): Grok --with-default-link to set it.
74027         * configure: Regenerated.
74028         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
74029         (shlib-lds, shlib-lds-flags): Define to empty.
74030
74031         * Makerules (shlib-lds): New variable.
74032         (shlib-lds-flags): New variable.
74033         (build-shlib, build-moduile, build-module-asneeded): Use it.
74034         ($(common-objpfx)libc.so): Use $(shlib-lds).
74035         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
74036         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
74037
74038         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
74039         DT_FLAGS/DT_FLAGS_1 with zero flags.
74040
74041         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
74042         linker script munging.
74043
74044 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
74045
74046         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
74047         as 128-bit value.
74048         * crypt/sha512.c (sha512_process_block): Perform total addition using
74049         128-bit if possible.
74050         (__sha512_finish_ctx): Likewise.
74051         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
74052         as 64-bit value.
74053         * crypt/sha256.c (SWAP64): Define.
74054         (sha256_process_block): Perform total addition using 64-bit if
74055         possible.
74056         (__sha256_finish_ctx): Likewise.
74057
74058 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
74059
74060         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
74061         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74062         * nscd/hstcache.c (cache_addhst): Likewise.
74063         * nscd/grpcache.c (cache_addgr): Likewise.
74064         * nscd/aicache.c (addhstaiX): Likewise.
74065         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
74066
74067 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
74068
74069         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
74070         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74071         * nscd/hstcache.c (cache_addhst): Likewise.
74072         * nscd/grpcache.c (cache_addgr): Likewise.
74073         * nscd/aicache.c (addhstaiX): Likewise.
74074
74075 2011-07-01  Andreas Schwab  <schwab@redhat.com>
74076
74077         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
74078         domain only when needed.
74079
74080 2011-06-30  Andreas Schwab  <schwab@redhat.com>
74081
74082         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
74083         is always restored.
74084
74085 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
74086
74087         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
74088         are re-adding the entry.
74089         * nscd/servicescache.c (cache_addserv): Likewise.
74090
74091 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
74092
74093         * sysdeps/generic/dl-irel.h: fix protection against multiple
74094         inclusions.
74095         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
74096
74097 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
74098
74099         [BZ #12935]
74100         * malloc/memusage.sh: Fix quoting in message.
74101         * debug/xtrace.sh: Likewise.
74102
74103         * configure.in: Remove support for --experimental-malloc option, make
74104         it the default.
74105         * config.make.in: Likewise.
74106         * malloc/Makefile: Likewise.
74107
74108 2011-06-27  Andreas Schwab  <schwab@redhat.com>
74109
74110         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
74111         two-byte characters.
74112
74113 2011-06-27  Roland McGrath  <roland@hack.frob.com>
74114
74115         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
74116         AC_CACHE_CHECK invocation.
74117         * configure: Regenerated.
74118
74119         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
74120
74121 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
74122
74123         [BZ #12350]
74124         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
74125         bit from old_res_options.
74126
74127         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
74128
74129         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
74130         value type for setfct.
74131
74132 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
74133
74134         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74135         __gettimeofday instead of gettimeofday.
74136
74137 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
74138
74139         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
74140
74141 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
74142
74143         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
74144
74145         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
74146         info.
74147
74148 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74149
74150         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
74151         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74152         strcpy-sse2-unaligned strncpy-sse2-unaligned
74153         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
74154         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
74155         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
74156         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
74157         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
74158         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
74159         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
74160         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
74161         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
74162         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
74163         (STRCPY): Support SSE2 and SSSE3 versions.
74164
74165 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
74166
74167         [BZ #12874]
74168         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
74169         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
74170         kernels which artificially limit size of requests.
74171
74172 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74173
74174         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
74175         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74176         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
74177         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
74178         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
74179         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
74180         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
74181         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
74182         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
74183         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
74184         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
74185         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
74186         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
74187         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
74188         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
74189         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74190         Enable unaligned load optimization for Intel Core i3, i5 and i7
74191         processors.
74192         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
74193         Define.
74194         (index_Fast_Unaligned_Load): Define.
74195         (HAS_FAST_UNALIGNED_LOAD): Define.
74196
74197 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
74198
74199         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
74200
74201 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74202
74203         [BZ #12907]
74204         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
74205         until it is clear that the information is realy needed.
74206         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
74207
74208 2011-06-22  Andreas Schwab  <schwab@redhat.com>
74209
74210         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
74211
74212 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74213
74214         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74215         /sys/devices/system/cpu/online if it is usable.
74216
74217         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
74218         reading the information from the /proc filesystem to once a second.
74219
74220 2011-06-21  Andreas Jaeger  <aj@suse.de>
74221
74222         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
74223         NULL after inclusion of kernel headers.
74224
74225 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
74226
74227         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
74228         calls to internal_setent.
74229
74230         [BZ #12885]
74231         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
74232         addresses using gethostbyname4_r ignore IPv4 addresses.
74233
74234         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
74235         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
74236
74237         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
74238
74239 2011-06-20  David S. Miller  <davem@davemloft.net>
74240
74241         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
74242         inclusions.
74243         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
74244
74245         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
74246         (elf_irel): Use it.
74247         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
74248         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
74249         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
74250         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
74251         * sysdeps/x86_64/dl-irel.h: Likewise.
74252
74253         * elf/dl-runtime.c: Use elf_ifunc_invoke.
74254         * elf/dl-sym.c: Likewise.
74255
74256 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74257
74258         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
74259         need to dereference resplen2.
74260
74261 2011-06-14  Andreas Schwab  <schwab@redhat.com>
74262
74263         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
74264
74265 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74266
74267         * Makeconfig: Define vardbdir and inst_vardbdir.
74268         * nss/Makefile: Add rules to install db-Makefile.
74269
74270         * nss/nss_db/db-XXX.c: Cleanup.
74271
74272         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
74273         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
74274         GLIBC_PRIVATE.
74275         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
74276         * nss/makedb.c: Implement -g option to specify that value strings
74277         are generated and should not be added to table iterated over for
74278         get*ent calls.
74279         * nss/nss_db/db-initgroups.c: New file.
74280
74281         * nss/getent.c: Add support for initgroups lookups through getgrouplist
74282         interface.
74283
74284         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
74285         (internal_getgrouplist): Adjust to name change.
74286         Update use_initgroups_entry if this is not the first call.
74287         * nss/databases.def: Add initgroups entry.
74288
74289         * nss/makedb.c (compute_tables): Check result of multiple hash table
74290         sizes to minimize maximum chain length.
74291
74292 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
74293
74294         * Versions.def: Add entry for libnss_db.
74295         * shlib-versions: Likewise.
74296         * nss/Makefile: Add rules to build libnss_db.
74297         * nss/Versions: Add libnss_db information.  Organize libnss_files
74298         entries better.
74299         * nss/db-Makefile: Add gshadow support.  Change rules for the new
74300         makedb progra.  Some minor improvements to generate smaller files.
74301         * nss/nss_db/nss_db.h: Move NSS database header data structures to
74302         here from...
74303         * nss/makedb.c: ...here.
74304         Improve database format to be smaller and require less memory at
74305         runtime.
74306         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
74307         db anymore.
74308         * nss/nss_db/db-netgrp.c: Likewise.
74309         * nss/nss_db/db-open.c: Likewise.
74310         * nss/nss_files/flies-XXX.x: Adjust comments.
74311         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
74312         * nss/nss_files/files-grp.c: Likewise.
74313         * nss/nss_files/files-hosts.c: Likewise.
74314         * nss/nss_files/files-network.c: Likewise.
74315         * nss/nss_files/files-proto.c: Likewise.
74316         * nss/nss_files/files-pwd.c: Likewise.
74317         * nss/nss_files/files-rpc.c: Likewise.
74318         * nss/nss_files/files-service.c: Likewise.
74319         * nss/nss_files/files-sgrp.c: Likewise.
74320         * nss/nss_files/files-spwd.c: Likewise.
74321         * nss/nss_db/db-alias.c: Removed.
74322         * nss/nss_db/dummy-db.h: Removed.
74323
74324 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
74325
74326         * nss/makedb.c: Rewritten to not use database library.
74327         * nss/Makefile: Update to build new makedb program.
74328
74329 2011-06-14  Andreas Jaeger  <aj@suse.de>
74330
74331         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
74332         memset declaration.
74333
74334 2011-06-10  Andreas Schwab  <schwab@redhat.com>
74335
74336         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
74337         tmpbuf.
74338
74339 2011-06-10  Roland McGrath  <roland@hack.frob.com>
74340
74341         * Makerules (shlib.lds): Fail if the linker script comes out empty.
74342         * elf/Makefile ($(objpfx)ld.so): Likewise.
74343
74344         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
74345         Don't list ld.so twice in dependencies.
74346
74347         * posix/bug-regex31.c: Include <stdlib.h>.
74348
74349         * nscd/hstcache.c (cache_addhst): Remove unused variable.
74350
74351         * nis/nss_compat/compat-spwd.c
74352         (getspent_next_nss_netgr): Remove unused variable.
74353         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
74354
74355         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
74356         nonmembers" output to use the right array.
74357
74358         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
74359
74360         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
74361
74362         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
74363         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
74364         * catgets/gencat.c (read_input_file): Likewise.
74365         * locale/programs/locarchive.c (enlarge_archive): Likewise.
74366
74367         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
74368         variable definition inside #if's controlling its use.
74369
74370         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
74371
74372         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
74373
74374         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
74375
74376         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
74377         unreachable code.
74378
74379         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
74380
74381         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
74382         * configure: Regenerated.
74383
74384         * Makerules: Revert last change.
74385         * elf/Makefile: Likewise.
74386
74387 2011-06-09  Roland McGrath  <roland@hack.frob.com>
74388
74389         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
74390         * elf/Makefile ($(objpfx)librtld.os): Likewise.
74391         (reloc-link): Likewise.
74392
74393 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
74394
74395         * elf/Makefile: Add rules to build pldd.
74396         * elf/pldd.c: New file.
74397         * elf/pldd-xx.c: New file.
74398
74399 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
74400
74401         * version.h: Update for 2.15 development version.
74402
74403 2011-06-07  David S. Miller  <davem@davemloft.net>
74404
74405         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
74406         ifuncs.
74407         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
74408         elf_machine_lazy_rel): Likewise.
74409         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
74410         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
74411         elf_machine_lazy_rel): Likewise.
74412         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
74413         dl_hwcap via passed in argument.
74414         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
74415         Likewise.
74416
74417 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74418
74419         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
74420
74421 2011-06-06  Roland McGrath  <roland@hack.frob.com>
74422
74423         [BZ #12849]
74424         * manual/fdl-1.1.texi: New file, verbatim from:
74425         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
74426         * manual/lgpl-2.1.texi: New file, verbatim from:
74427         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
74428         * manual/Makefile (licenses): New variable, list those new file names.
74429         (texis): Use it.
74430         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
74431
74432         * manual/fdl.texi: File removed.
74433         * manual/lesser.texi: File removed.
74434         * manual/libc.texinfo (Copying, Documentation License):
74435         Use new @include file names, put @appendix directive before @include.
74436
74437 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
74438
74439         [BZ #12841]
74440         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74441         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74442         (mq_open): Add __NTH.
74443
74444 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74445
74446         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74447         Assume Intel Core i3/i5/i7 processor if AVX is available.
74448
74449 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74450
74451         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74452         typo.
74453
74454 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74455
74456         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74457         memory.  Use alloca_account.  Fix memory leak when retrying.
74458
74459 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74460
74461         * version.h (RELEASE): Bump for 2.14 release.
74462         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74463
74464         * config.make.in (RANLIB): Remove entry.
74465
74466 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74467
74468         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74469         (libc.pot): Work around missing support for .ksh extension in xgettext.
74470
74471         [BZ #12684]
74472         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74473         if both request failed.
74474         (send_dg): In case of server errors clear resplen or *resplen2.
74475
74476         [BZ #12454]
74477         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74478         when there are multiple maps.
74479         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74480         (_dl_fini): Remove test here.
74481
74482         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74483
74484 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74485
74486         [BZ #12350]
74487         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74488         bit from old_res_options.
74489         (gaih_inet): Likewise.
74490
74491         [BZ #11099]
74492         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74493         as signed.
74494
74495         * resolv/res_init.c (res_setoptions): Make the code more compact.
74496
74497         [BZ #11558]
74498         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74499         set RES_USEVC.
74500
74501         [BZ #11634]
74502         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74503
74504         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74505
74506         [BZ #11781]
74507         * malloc/malloc.h: Declare malloc hook variables as volatile.
74508
74509         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74510         in last patch.
74511
74512         [BZ #11799]
74513         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74514         raise in the comment.
74515         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74516         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74517         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74518
74519 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74520
74521         [BZ #12811]
74522         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74523         grow the buffers more if it already has to be sufficient.
74524         (build_wcs_upper_buffer): Likewise.
74525         * posix/regexec.c (check_matching): Likewise.
74526         (clean_state_log_if_needed): Likewise.
74527         (extend_buffers): Don't enlarge buffers beyond size of the input
74528         buffer.
74529         Patches mostly by Emil Wojak <emil@wojak.eu>.
74530         * posix/bug-regex32.c: New file.
74531         * posix/Makefile (tests): Add bug-regex32.
74532
74533         * locale/findlocale.c (_nl_find_locale): Return right away if
74534         _nl_explode_name failed.
74535         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74536
74537         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74538
74539         * debug/xtrace.sh: Unify messages.
74540         * malloc/memusage.sh: Likewise.
74541
74542         [BZ #12813]
74543         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74544         time symbol from vDSO.  Substitute with vsyscall if not available.
74545         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74546         __vdso_time.
74547
74548         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74549         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74550         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74551         Add sendmmsg and internal_sendmmsg.
74552         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74553         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74554         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74555
74556         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74557         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74558         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74559
74560 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74561
74562         [BZ #12813]
74563         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74564         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74565         available.
74566         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74567         __vdso_getcpu.
74568
74569         [BZ #12814]
74570         * iconvdata/Makefile (tests): Add bug-iconv9.
74571         * iconvdata/bug-iconv9.c: New file.
74572
74573 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74574
74575         [BZ #12814]
74576         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74577
74578 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74579
74580         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74581         (struct user_regs_struct): Change intcs field back to cs.
74582
74583 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74584
74585         * po/ja.po: Update from translation team.
74586
74587 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74588
74589         [BZ #12795]
74590         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74591         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74592
74593 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74594
74595         * stdlib/longlong.h: Update from GCC.
74596
74597 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74598
74599         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74600         parameter name.
74601         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74602         Add parameter name.
74603         (__sysconf): Pass it down.
74604
74605 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74606
74607         [BZ #12671]
74608         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74609         some situations.
74610         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74611         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74612         add in in __libc_use_alloca calls.  Adjust callers.
74613         (glob): Use malloc in some situations.
74614
74615         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74616         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74617         pltexit.
74618
74619 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74620
74621         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74622         and CLOCK_BOOTTIME_ALARM.
74623
74624         [BZ #12782]
74625         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74626         is returned.
74627
74628         * string/_strerror.c (__strerror_r): Print negative errors as signed
74629         numbers.
74630
74631         [BZ #12777]
74632         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74633         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74634         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74635
74636         * configure.in: Fix typo in redirection and correct removal of test
74637         files in two cases.
74638
74639         [BZ #12788]
74640         * locale/setlocale.c (new_composite_name): Fix test to check for
74641         identical name of all categories.
74642
74643         [BZ #12792]
74644         * libio/filedoalloc.c (local_isatty): New function.
74645         (_IO_file_doallocate): Use local_isatty.
74646         * stdio-common/perror.c (perror): In case a new stream is used
74647         forward the stream error.
74648         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74649         error flag.
74650
74651 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74652
74653         [BZ #11884]
74654         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74655         alloca.
74656         * include/alloca.h (extend_alloca_account): Define.
74657
74658         [BZ #11857]
74659         * posix/regex.h: Fix comments with documentation of user-accessible
74660         fields after compilation and describe correct free'ing of pattern
74661         after re_compile_pattern.
74662         Patch by Reuben Thomas <rrt@sc3d.org>.
74663
74664 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74665
74666         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74667         and -mno-altivec to prevent the compiler from using Altivec and/or
74668         VSX instructions when the corresponding registers are not available.
74669
74670 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74671
74672         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74673
74674 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74675
74676         * libio/freopen.c (freopen): Use __dup2, not dup2.
74677         * libio/freopen64.c (freopen64): Likewise.
74678
74679 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74680
74681         [BZ #12775]
74682         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74683         * math/Makefile (tests): Add test-powl.
74684         (CFLAGS-test-powl.c): Define.
74685         * math/test-powl.c: New file.
74686
74687 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74688
74689         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74690
74691 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74692
74693         [BZ #11837]
74694         * iconvdata/gb18030.c: Update to GB18020-2005.
74695
74696 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74697
74698         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74699         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74700         Patch by Aharon Robbins <arnold@skeeve.com>.
74701
74702         [BZ #11892]
74703         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74704         on the stack.
74705
74706         [BZ #11895]
74707         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74708         through underflows.
74709
74710         [BZ #12766]
74711         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74712         point to strings before performing equality test for error_one_per_line
74713         mode.
74714
74715         [BZ #11697]
74716         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74717
74718         [BZ #11820]
74719         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74720         (struct user_fpregs_struct): Avoid __uint*_t types.
74721
74722         [BZ #6420]
74723         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74724         symbol info.  Use it instead of calling _dl_addr locally.
74725         (lock_and_info): New function.
74726         (tr_freehook): Call lock_and_info and pass symbol info as additional
74727         parameter to tr_where.
74728         (tr_mallochook): Likewise.
74729         (tr_reallochook): Likewise.
74730         (tr_memalignhook): Likewise.
74731
74732         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74733         used and couldn't be at all thread-safe.
74734
74735 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74736
74737         * libio/freopen.c (freopen): Don't close old file descriptor
74738         before the new one is opened.  Instead dup the new file descriptor
74739         to the old one after the new stream is created.
74740         * libio/freopen64.c (freopen64): Likewise.
74741         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74742         * libio/fileops.c (_IO_new_file_close_it): Handle new
74743         _IO_FLAGS2_NOCLOSE flag.
74744         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74745         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74746         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74747         _IO_FLAGS2_NOCLOSE flag.
74748         * include/unistd.h: Add hidden_proto for dup3.
74749         Define __have_dup3.
74750         * io/dup3.c: Define hidden symbol.
74751         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74752
74753         [BZ #7101]
74754         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74755         when an incomplete long option is used.
74756         * posix/tst-getopt_long1.c: New file.
74757         * posix/Makefile (tests): Add tst-getopt_long1.
74758
74759         [BZ #10138]
74760         * scripts/config.guess: Update from autoconf-2.68.
74761         * scripts/config.sub: Likewise.
74762
74763         [BZ #10157]
74764         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74765         tests into ...
74766         (has_cpuclock): ...this.  New function.
74767         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74768         macro here based on has_cpuclock code.
74769
74770         [BZ #10149]
74771         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74772         First byte (not low byte) is now always NUL.
74773         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74774
74775         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74776         Use non-cancelable interfaces.
74777
74778         [BZ #9809]
74779         * locale/iso-639.def: Add entry for Sorani.
74780
74781         [BZ #11901]
74782         * include/stdlib.h: Move include protection to the right place.
74783         Define abort_msg_s.  Declare __abort_msg with it.
74784         * stdlib/abort.c (__abort_msg): Adjust type.
74785         * assert/assert.c (__assert_fail_base): New function.  Majority
74786         of code from __assert_fail.  Allocate memory for __abort_msg with
74787         mmap.
74788         (__assert_fail): Now call __assert_fail_base.
74789         * assert/assert-perr.c: Remove bulk of implementation.  Use
74790         __assert_fail_base.
74791         * include/assert.hL Declare __assert_fail_base.
74792         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74793         mmap.
74794         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74795
74796 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74797
74798         [BZ #11952]
74799         [BZ #12453]
74800         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74801         until all modules are registered in the DTV.
74802         * elf/Makefile: Add rules to build and run tst-tls19.
74803         * elf/tst-tls19.c: New file.
74804         * elf/tst-tls19mod1.c: New file.
74805         * elf/tst-tls19mod2.c: New file.
74806         * elf/tst-tls19mod3.c: New file.
74807         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74808
74809         [BZ #12083]
74810         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74811         correctly.
74812
74813         [BZ #12601]
74814         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74815         two-byte sequence errors.
74816         * iconvdata/Makefile (tests): Add bug-iconv8.
74817         * iconvdata/bug-iconv8.c: New file.
74818
74819         [BZ #12626]
74820         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74821         buf2 definition.
74822
74823         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74824
74825         [BZ #12432]
74826         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74827         (dummy_getcfa): New function.
74828         (init): Get _Unwind_GetCFA address, use dummy if not found.
74829         (backtrace_helper): In recursion check, also check whether CFA changes.
74830         (__backtrace): Completely initialize arg.
74831
74832         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74833         storing incomplete byte sequence in state object.  Avoid testing for
74834         guaranteed too small input if we know there is enough data available.
74835
74836 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74837
74838         * Makeconfig (+link-pie): Indent.
74839         * Rules (binaries-pie): Define if $(have-fpie) and
74840         $(build-shared).
74841         (binaries-shared): Also filter out $(binaries-pie).
74842         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74843         * nscd/Makefile (others-pie): Add nscd.
74844         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74845         ($(objpfx)nscd): Remove command override.
74846         * login/Makefile (others-pie): Add pt_chown.
74847         ($(objpfx)pt_chown): Remove command override.
74848         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74849         remove command overrides.
74850
74851 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74852
74853         * libio/tst_putwc.c: Fix error messages.
74854
74855         [BZ #12724]
74856         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74857         currently writing and seek to current position when not.
74858         * libio/Makefile (tests): Add bug-fclose1.
74859         * libio/bug-fclose1.c: New file.
74860
74861 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74862
74863         [BZ #12511]
74864         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74865         don't set DF_1_NODELETE here.
74866         (do_lookup_x): When entering new entry test for copy relocation
74867         and if necessary set DF_1_NODELETE flag.
74868         * elf/tst-unique4.cc: New file.
74869         * elf/tst-unique4.h: New file.
74870         * elf/tst-unique4lib.cc: New file.
74871         * elf/Makefile: Add rules to build and run tst-unique4.
74872         Patch by Piotr Bury <pbury@goahead.com>.
74873
74874 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74875
74876         [BZ #12052]
74877         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74878
74879         [BZ #12625]
74880         * misc/mntent_r.c (addmntent): Flush the stream after the output
74881
74882         [BZ #12393]
74883         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74884         (is_trusted_path_normalize): Skip initial colon.  Append slash
74885         to empty buffer.  Duplicate is_trusted_path code but allow
74886         constructed patch to be prefix.
74887         (is_dst): Allow $ORIGIN followed by /.
74888         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74889         Correct testing of result of is_trusted_path_normalize
74890         (decompose_rpath): Fix warning.
74891
74892 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74893
74894         [BZ #11257]
74895         * grp/initgroups.c (internal_getgrouplist): When we found the service
74896         list through the initgroups entry in nsswitch.conf do not always
74897         continue on a successful lookup.  Don't always use the
74898         __nss_group_database value if it is set.
74899         * nss/nsswitch.conf (initgroups): Change action for successful db
74900         lookup to continue for compatibility.
74901
74902 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74903
74904         [BZ #11532]
74905         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
74906         and CP774 modules.
74907         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
74908         and CP774 modules.
74909         * iconvdata/tst-tables.sh: Likewise.
74910         * iconvdata/cp770.c: New file.
74911         * iconvdata/cp771.c: New file.
74912         * iconvdata/cp772.c: New file.
74913         * iconvdata/cp773.c: New file.
74914         * iconvdata/cp774.c: New file.
74915         * iconvdata/testdata/CP770: New file.
74916         * iconvdata/testdata/CP770..UTF8: New file.
74917         * iconvdata/testdata/CP771: New file.
74918         * iconvdata/testdata/CP771..UTF8: New file.
74919         * iconvdata/testdata/CP772: New file.
74920         * iconvdata/testdata/CP772..UTF8: New file.
74921         * iconvdata/testdata/CP773: New file.
74922         * iconvdata/testdata/CP773..UTF8: New file.
74923         * iconvdata/testdata/CP774: New file.
74924         * iconvdata/testdata/CP774..UTF8: New file.
74925
74926         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
74927         END CHARMAP line.
74928         * iconvdata/gen-8bit-gap.sh: Likewise.
74929         * iconvdata/gen-8bit.sh: Likewise.
74930
74931         * locale/iso-639.def: Add ary entry.
74932
74933         [BZ #11258]
74934         * locale/C-translit.h.in: Add U20A1 transliteration.
74935
74936         [BZ #12178]
74937         * locale/iso-639.def: Add wae entry.
74938         Patch by Kevin Bortis <bortis@translate-wae.ch>.
74939
74940         [BZ #12545]
74941         * locale/programs/localedef.c (construct_output_path): Use ssize_t
74942         for n.
74943
74944         [BZ #12711]
74945         * locale/C-translit.h.in: Add entry for U20B9.
74946         Patch by pravin.d.s@gmail.com.
74947
74948 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
74949
74950         [BZ #12713]
74951         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
74952         ENAMETOOLONG use generic getcwd.
74953         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
74954         in rtld.  Use *stat64.
74955         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
74956         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
74957         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
74958         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
74959         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
74960         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
74961         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
74962         __fstatat64 macros.
74963         * include/dirent.h: Add libc_hidden_proto for rewinddir.
74964         * dirent/rewinddir.c: Add libc_hidden_def.
74965         * sysdeps/mach/hurd/rewinddir.c: Likewise.
74966         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
74967
74968         * include/dirent.h (__alloc_dir): Add flags parameter.
74969         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
74970         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
74971         __alloc_dir.
74972         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
74973         from fdopendir if O_CLOEXEC is already set.
74974
74975 2011-03-15  Alan Modra  <amodra@gmail.com>
74976
74977         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
74978         l_tls_firstbyte_offset non-zero.  Save padding offset in
74979         l_tls_firstbyte_offset for later use.
74980         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
74981         freeing static tls block.
74982
74983 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
74984
74985         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
74986         where #ifdef was intended.  The intent is to prevent ARG_MAX from
74987         being defined by the kernel headers.
74988
74989 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
74990
74991         [BZ #12734]
74992         * resolv/resolv.h: Define RES_NOTLDQUERY.
74993         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
74994         no-tld-query and set RES_NOTLDQUERY.
74995         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
74996         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
74997         modern BIND to search name as TLD unless forbidden.
74998
74999 2011-05-07  Petr Baudis  <pasky@suse.cz>
75000             Ulrich Drepper  <drepper@gmail.com>
75001
75002         [BZ #12393]
75003         * elf/dl-load.c (fillin_rpath): Move trusted path check...
75004         (is_trusted_path): ...to here.
75005         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
75006         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
75007         using is_trusted_path_normalize() in setuid scripts.
75008
75009 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
75010
75011         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
75012         __BEGIN/__END_DECLS.
75013
75014 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
75015
75016         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
75017         NSS_STATUS_NOTFOUND if no record was found.
75018
75019 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75020
75021         * sunrpc/Makefile (headers): Add rpc/netdb.h.
75022         (headers-not-in-tirpc): Remove rpc/netdb.h
75023         * resolv/netdb.h: Revert last change.
75024
75025 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
75026
75027         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
75028         circular dependency between libgcc.a and libc.a.
75029
75030 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75031
75032         * resolv/netdb.h: Don't include <rpc/netdb.h>.
75033         * nis/Makefile: Don't install rpcsvc/*.
75034         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
75035         instead of <rpc/types.h>.
75036         (MAXHOSTNAMELEN): Define.
75037
75038 2011-05-03  Andreas Schwab  <schwab@redhat.com>
75039
75040         * elf/ldconfig.c (add_dir): Don't crash on empty path.
75041
75042 2011-04-28  Maciej Babinski  <mbabinski@google.com>
75043
75044         [BZ #12714]
75045         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
75046         gethostbyname4_r when IPv6 results are possible.
75047
75048 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
75049
75050         [BZ #12723]
75051         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
75052         _PC_PIPE_BUF handling.
75053
75054 2011-04-30  Bruno Haible  <bruno@clisp.org>
75055
75056         [BZ #12717]
75057         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
75058         * resolv/netdb.h (getnameinfo): Change type of flags parameter
75059         to 'int'.
75060         * inet/getnameinfo.c (getnameinfo): Likewise.
75061
75062 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
75063
75064         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
75065         to groups setting in database lookup.
75066         * nss/nsswitch.conf: Add initgroups entry.
75067
75068 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
75069
75070         [BZ #12685]
75071         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
75072         mode string.
75073         Patch by Eric Blake <eblake@redhat.com>.
75074
75075 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
75076
75077         * sunrpc/Makefile (need-export-routines): Add svc_run.
75078         (routines): Remove svc_run.
75079         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
75080         * sunrpc/clnt_perr.c (clnt_perrno): Export.
75081         * sunrpc/svc_run.c (svc_run): Likewise.
75082         * sunrpc/svc_udp.c (svcudp_create): Likewise.
75083
75084 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
75085
75086         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
75087         problem in reallocation in last patch.
75088
75089 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
75090
75091         * sunrpc/Makefile: Move inclusion of Rules.
75092
75093 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75094
75095         * nss/nss_files/files-initgroups.c: New file.
75096         * nss/Makefile (libnss_files-routines): Add files-initgroups.
75097         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
75098         _nss_files_initgroups_dyn.
75099
75100 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
75101
75102         * elf/elf.h (R_ARM_IRELATIVE): Define.
75103
75104 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75105
75106         * po/ru.po: Update from translation team.
75107
75108 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75109
75110         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
75111         dependencies.
75112
75113 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
75114
75115         [BZ #12653]
75116         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
75117         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
75118         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75119         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
75120         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
75121
75122 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
75123
75124         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
75125         differing bytes.
75126         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
75127         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
75128         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
75129
75130 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75131
75132         [BZ #12420]
75133         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
75134         storing it.
75135         * stdlib/bug-getcontext.c: New file.
75136         * stdlib/Makefile: Add rules to build and run bug-getcontext.
75137
75138 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75139
75140         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
75141         instructions into .machine "z9-109".
75142         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
75143         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
75144
75145 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75146
75147         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
75148         between environment variables and auxiliary vector.
75149
75150 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
75151
75152         * Makefile: Add rules to build linkobj/libc.so.
75153         * include/libc-symbols.h: Define libc_hidden_nolink.
75154         * include/rpc/auth.h: Mark functions which are to be hidden.
75155         * include/rpc/auth_des.h: Likewise.
75156         * include/rpc/auth_unix.h: Likewise.
75157         * include/rpc/clnt.h: Likewise.
75158         * include/rpc/des_crypt.h: Likewise.
75159         * include/rpc/key_prot.h: Likewise.
75160         * include/rpc/pmap_clnt.h: Likewise.
75161         * include/rpc/pmap_prot.h: Likewise.
75162         * include/rpc/pmap_rmt.h: Likewise.
75163         * include/rpc/rpc_msg.h: Likewise.
75164         * include/rpc/svc.h: Likewise.
75165         * include/rpc/svc_auth.h: Likewise.
75166         * include/rpc/xdr.h: Likewise.
75167         * nis/Makefile: Link all DSOs against linkobj/libc.so.
75168         * nss/Makefile: Likewise.
75169         * sunrpc/Makefile: Don't install headers.  Build library with normal
75170         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
75171         * sunrpc/auth_des.c: Hide exported symbols by default, export some
75172         for the compat linking library.  Remove use of INTDEF/INTUSE.
75173         * sunrpc/auth_none.c: Likewise.
75174         * sunrpc/auth_unix.c: Likewise.
75175         * sunrpc/authdes_prot.c: Likewise.
75176         * sunrpc/authuxprot.c: Likewise.
75177         * sunrpc/clnt_gen.c: Likewise.
75178         * sunrpc/clnt_perr.c: Likewise.
75179         * sunrpc/clnt_raw.c: Likewise.
75180         * sunrpc/clnt_simp.c: Likewise.
75181         * sunrpc/clnt_tcp.c: Likewise.
75182         * sunrpc/clnt_udp.c: Likewise.
75183         * sunrpc/clnt_unix.c: Likewise.
75184         * sunrpc/des_crypt.c: Likewise.
75185         * sunrpc/des_soft.c: Likewise.
75186         * sunrpc/get_myaddr.c: Likewise.
75187         * sunrpc/key_call.c: Likewise.
75188         * sunrpc/key_prot.c: Likewise.
75189         * sunrpc/netname.c: Likewise.
75190         * sunrpc/pm_getmaps.c: Likewise.
75191         * sunrpc/pm_getport.c: Likewise.
75192         * sunrpc/pmap_clnt.c: Likewise.
75193         * sunrpc/pmap_prot.c: Likewise.
75194         * sunrpc/pmap_prot2.c: Likewise.
75195         * sunrpc/pmap_rmt.c: Likewise.
75196         * sunrpc/publickey.c: Likewise.
75197         * sunrpc/rpc_cmsg.c: Likewise.
75198         * sunrpc/rpc_common.c: Likewise.
75199         * sunrpc/rpc_dtable.c: Likewise.
75200         * sunrpc/rpc_prot.c: Likewise.
75201         * sunrpc/rpc_thread.c: Likewise.
75202         * sunrpc/rtime.c: Likewise.
75203         * sunrpc/svc.c: Likewise.
75204         * sunrpc/svc_auth.c: Likewise.
75205         * sunrpc/svc_authux.c: Likewise.
75206         * sunrpc/svc_raw.c: Likewise.
75207         * sunrpc/svc_run.c: Likewise.
75208         * sunrpc/svc_simple.c: Likewise.
75209         * sunrpc/svc_tcp.c: Likewise.
75210         * sunrpc/svc_udp.c: Likewise.
75211         * sunrpc/svc_unix.c: Likewise.
75212         * sunrpc/svcauth_des.c: Likewise.
75213         * sunrpc/xcrypt.c: Likewise.
75214         * sunrpc/xdr.c: Likewise.
75215         * sunrpc/xdr_array.c: Likewise.
75216         * sunrpc/xdr_float.c: Likewise.
75217         * sunrpc/xdr_intXX_t.c: Likewise.
75218         * sunrpc/xdr_mem.c: Likewise.
75219         * sunrpc/xdr_rec.c: Likewise.
75220         * sunrpc/xdr_ref.c: Likewise.
75221         * sunrpc/xdr_sizeof.c: Likewise.
75222         * sunrpc/xdr_stdio.c: Likewise.
75223
75224 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
75225
75226         [BZ #12650]
75227         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
75228         * sysdeps/ia64/dl-tls.h: Likewise.
75229         * sysdeps/powerpc/dl-tls.h: Likewise.
75230         * sysdeps/s390/dl-tls.h: Likewise.
75231         * sysdeps/sh/dl-tls.h: Likewise.
75232         * sysdeps/sparc/dl-tls.h: Likewise.
75233         * sysdeps/x86_64/dl-tls.h: Likewise.
75234         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
75235
75236 2011-03-14  Andreas Schwab  <schwab@redhat.com>
75237
75238         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
75239         rpath element also skip the following colon.
75240         (expand_dynamic_string_token): Add is_path parameter and pass
75241         down to DL_DST_REQUIRED and _dl_dst_substitute.
75242         (decompose_rpath): Call expand_dynamic_string_token with
75243         non-zero is_path.  Ignore empty rpaths.
75244         (_dl_map_object_from_fd): Call expand_dynamic_string_token
75245         with zero is_path.
75246
75247 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
75248
75249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
75250         Make cancelable.
75251
75252 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
75253
75254         [BZ #12655]
75255         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
75256         Patch by Filipe David Manana <fdmanana@apache.org>.
75257
75258 2011-04-07  Andreas Schwab  <schwab@redhat.com>
75259
75260         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
75261         Maintain aligned stack.
75262         (CHECK_RSP): Remove unused macro.
75263
75264 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
75265
75266         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
75267         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
75268
75269 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
75270
75271         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
75272
75273         * include/features.h: Mention __USE_XOPEN2K8 in comment.
75274
75275 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
75276
75277         [BZ #12518]
75278         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
75279         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
75280         * sysdeps/x86_64/memmove.c: New file.
75281         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
75282         (memcpy): Renamed to ...
75283         (__new_memcpy): This.
75284         (memcpy): Provide GLIBC_2_14 memcpy.
75285         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
75286         (memcpy): Provide GLIBC_2_2_5 memcpy.
75287
75288 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75289
75290         [BZ #12631]
75291         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
75292
75293 2011-03-30  Andreas Schwab  <schwab@redhat.com>
75294
75295         * misc/syncfs.c: New file.
75296         * misc/Makefile (routines): Add syncfs.
75297         * posix/unistd.h: Declare syncfs.
75298         * sysdeps/unix/syscalls.list: Add syncfs.
75299
75300 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75301
75302         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
75303         open_by_handle_at.
75304         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
75305         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75306         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75307         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75308         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75309         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
75310         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75311
75312 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75313
75314         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
75315         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75316         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75317         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75318         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75319         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75320         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75321
75322         * io/Makefile: Compile fallocate.c, fallocate64.c, and
75323         sync_file_range.c with -fexceptions.
75324         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
75325         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
75326         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
75327         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
75328         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
75329         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
75330         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
75331         sync_file_range as cancellation point
75332         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
75333         now a wrapper around __call_sync_file_range with cancellation handling.
75334         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
75335         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
75336         function name to __call_sync_file_range.
75337         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
75338         Add call_sync_file_range.
75339
75340 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75341
75342         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75343         bits/timex.h.
75344
75345 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75346
75347         * iconv/iconv.h: Fix typo in comment.
75348         * io/fcntl.h: Likewise.
75349         * libio/stdio.h: Likewise.
75350         * posix/spawn.h: Likewise.
75351         * posix/unistd.h: Likewise.
75352         * stdlib/stdlib.h: Likewise.
75353         * time/time.h: Likewise.
75354         * wcsmbs/wchar.h: Likewise.
75355
75356         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
75357         open_by_handle): Add.
75358         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
75359         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
75360         Augment a few comments.
75361         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75362         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75363         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75364         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75365         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75366         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
75367         open_by_handle.
75368
75369         * io/fcntl.h (AT_EMPTY_PATH): Define.
75370
75371 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
75372
75373         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
75374         * sysdeps/unix/sysv/linux/bits/time.h: New file.
75375         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
75376         to...
75377         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
75378         * Versions.def: Add GLIBC_2.14.
75379         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
75380         Export.
75381
75382 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
75383
75384         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
75385         round counter.
75386         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75387
75388 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
75389
75390         [BZ #12597]
75391         * string/test-strncmp.c (do_page_test): New function.
75392         (check2): Likewise.
75393         (test_main): Call check2.
75394         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
75395
75396 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
75397
75398         [BZ #12587]
75399         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
75400         Handle cache information in CPU leaf 4.
75401         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75402
75403 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
75404
75405         [BZ #12583]
75406         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
75407         character representation.
75408         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
75409
75410 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
75411
75412         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
75413         END(__isnan) to END(__isnanf) to match function entry point/label
75414         EALIGN(__isnanf,...).
75415
75416 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
75417
75418         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
75419
75420 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
75421
75422         [BZ #12510]
75423         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
75424         copy from the symbol referenced in the relocation to initialize the
75425         used variable.
75426         Patch by Piotr Bury <pbury@goahead.com>.
75427         * elf/Makefile: Add rules to build and tst-unique3.
75428         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
75429         * elf/tst-unique3.cc: New file.
75430         * elf/tst-unique3.h: New file.
75431         * elf/tst-unique3lib.cc: New file.
75432         * elf/tst-unique3lib2.cc: New file.
75433
75434         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
75435
75436 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
75437
75438         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
75439         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
75440         to _start.
75441
75442 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75443
75444         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75445         to-be-loaded object along a path to loader is ld.so.
75446
75447 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75448             Ulrich Drepper  <drepper@gmail.com>
75449
75450         * sysdeps/x86_64/memset.S: After aligning destination, code
75451         branches to different locations depending on the value of
75452         misalignment, when multiarch is enabled. Fix this.
75453
75454 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75455
75456         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75457         Set _x86_64_preferred_memory_instruction for AMD processsors.
75458         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75459         Set bit_Prefer_SSE_for_memop for AMD processors.
75460
75461 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75462
75463         * libio/fmemopen.c (fmemopen): Optimize a bit.
75464
75465 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75466
75467         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75468
75469 2011-03-03  Roland McGrath  <roland@redhat.com>
75470
75471         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75472
75473 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75474
75475         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75476         __bzero_ultra1 instead of __memset_ultra1.
75477
75478 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75479             Ulrich Drepper  <drepper@gmail.com>
75480
75481         [BZ #12509]
75482         * include/link.h (struct link_map): Add l_orig_initfini.
75483         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75484         returning unsuccessfully.
75485         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75486         close of a file loaded at startup, restore the original l_initfini
75487         list.
75488         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75489         list, store the pointer.
75490         * elf/Makefile ($(objpfx)noload-mem): New rule.
75491         (noload-ENV): Define.
75492         (tests): Add $(objpfx)noload-mem.
75493         * elf/noload.c: Include <memcheck.h>.
75494         (main): Call mtrace.  Close all opened handles.
75495
75496 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75497
75498         [BZ #12454]
75499         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75500         dependencies are missing.
75501
75502 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75503
75504         Fix __if_freereq crash: Unlike the generic version which uses free,
75505         Hurd needs munmap.
75506         * sysdeps/mach/hurd/ifreq.h: New file.
75507
75508 2011-01-27  Petr Baudis  <pasky@suse.cz>
75509             Ulrich Drepper  <drepper@gmail.com>
75510
75511         [BZ 12445]#
75512         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75513         to extend_alloca().
75514         * stdio-common/bug23.c: New file.
75515         * stdio-common/Makefile (tests): Add bug23.
75516
75517 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75518             Ulrich Drepper  <drepper@gmail.com>
75519
75520         [BZ #12489]
75521         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75522         before performing relro protection.  At old place add assertion
75523         to make sure nothing changed.
75524
75525 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75526             Glauber de Oliveira Costa  <glommer@gmail.com>
75527
75528         * elf/elf.h: Add new ARM TLS relocs.
75529
75530 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75531
75532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75533         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75534         cast from r3.
75535         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75536         'tests' variable.
75537         * sysdeps/wordsize-64/tst-writev.c: New file.
75538
75539 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75540
75541         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75542         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75543         insns in _dl_start to prevent a TOC reference before relocs are
75544         resolved.
75545
75546 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75547
75548         [BZ #12469]
75549         * Makeconfig: Remove RANLIB definition.
75550         * Makerules: Don't use RANLIB.
75551         * aclocal.m4: Remove ranlib test.
75552         * configure.in: No need to check for ranlib.
75553         * elf/rtld-Rules: Don't use RANLIB.
75554
75555 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75556
75557         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75558         protection macro.
75559         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75560         inclusion protection macro.
75561
75562         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75563         SIGRTMIN and SIGRTMAX and print information in that case only when
75564         SIGRTMIN is defined.
75565
75566 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75567
75568         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75569         arginfo fn returning -1.
75570
75571         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75572         and thousands string is zero terminated.
75573
75574 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75575
75576         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75577         sysdeps/unix/sysv/linux/bits/socket.h.
75578
75579 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75580
75581         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75582         (__CPU_COUNT): Remove old macros.
75583         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75584         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75585         (__CPU_ALLOC, __CPU_FREE): Add macros.
75586         (__sched_cpualloc, __sched_cpufree): Add declarations.
75587
75588 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75589
75590         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75591         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75592         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75593         (readdhstai): Return value of addhstaiX call.
75594         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75595         (addgrbyX): Return value returned by cache_addgr.
75596         (readdgrbyname): Return value returned by addgrbyX.
75597         (readdgrbygid): Likewise.
75598         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75599         (addpwbyX): Return value returned by cache_addpw.
75600         (readdpwbyname): Return value returned by addhstbyX.
75601         (readdpwbyuid): Likewise.
75602         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75603         (addservbyX): Return value returned by cache_addserv.
75604         (readdservbyname): Return value returned by addservbyX:
75605         (readdservbyport): Likewise.
75606         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75607         (addhstbyX): Return value returned by cache_addhst.
75608         (readdhstbyname): Return value returned by addhstbyX.
75609         (readdhstbyaddr): Likewise.
75610         (readdhstbynamev6): Likewise.
75611         (readdhstbyaddrv6): Likewise.
75612         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75613         (readdinitgroups): Return value returned by addinitgroupsX.
75614         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75615         (prune_cache): Keep track of timeout value of re-added entries.
75616         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75617         * nscd/nscd.h: Adjust prototypes of readd* functions.
75618
75619 2011-02-04  Roland McGrath  <roland@redhat.com>
75620
75621         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75622         (nis_stats): Likewise.
75623         * nis/nis_modify.c (nis_modify): Likewise.
75624         * nis/nis_remove.c (nis_remove): Likewise.
75625         * nis/nis_add.c (nis_add): Likewise.
75626
75627         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75628
75629         * posix/fnmatch_loop.c: Add some consts.
75630
75631         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75632
75633 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75634
75635         [BZ #12460]
75636         * config.make.in (config-cflags-novzeroupper): Define.
75637         * configure.in: Substitute libc_cv_cc_novzeroupper.
75638         * elf/Makefile (AVX-CFLAGS): Define.
75639         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75640         (CFLAGS-tst-auditmod4a.c): Likewise.
75641         (CFLAGS-tst-auditmod4b.c): Likewise.
75642         (CFLAGS-tst-auditmod6b.c): Likewise.
75643         (CFLAGS-tst-auditmod6c.c): Likewise.
75644         (CFLAGS-tst-auditmod7b.c): Likewise.
75645         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75646
75647 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75648
75649         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75650         function to the callback.
75651         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75652
75653 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75654
75655         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75656         of errno.
75657
75658 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75659
75660         [BZ #11724]
75661         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75662         of constructors.
75663         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75664         of destructors.
75665         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75666
75667         [BZ #11724]
75668         * elf/Makefile: Add rules to build and run new test.
75669         * elf/tst-initorder.c: New file.
75670         * elf/tst-initorder.exp: New file.
75671         * elf/tst-initordera1.c: New file.
75672         * elf/tst-initordera2.c: New file.
75673         * elf/tst-initordera3.c: New file.
75674         * elf/tst-initordera4.c: New file.
75675         * elf/tst-initorderb1.c: New file.
75676         * elf/tst-initorderb2.c: New file.
75677         * elf/tst-order-a1.c: New file.
75678         * elf/tst-order-a2.c: New file.
75679         * elf/tst-order-a3.c: New file.
75680         * elf/tst-order-a4.c: New file.
75681         * elf/tst-order-b1.c: New file.
75682         * elf/tst-order-b2.c: New file.
75683         * elf/tst-order-main.c: New file.
75684         New test case by George Gensure <werkt0@gmail.com>.
75685
75686 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75687
75688         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75689         decoding ACE if AI_CANONIDN.
75690
75691 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75692
75693         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75694
75695 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75696
75697         * version.h (RELEASE): Bump for 2.13 release.
75698         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75699
75700         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75701
75702         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75703         MADV_NOHUGEPAGE.
75704         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75705         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75706         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75707         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75708         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75709         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75710
75711         * posix/getconf.c: Update copyright year.
75712         * catgets/gencat.c: Likewise.
75713         * csu/version.c: Likewise.
75714         * debug/catchsegv.sh: Likewise.
75715         * debug/xtrace.sh: Likewise.
75716         * elf/ldconfig.c: Likewise.
75717         * elf/ldd.bash.in: Likewise.
75718         * elf/sprof.c (print_version): Likewise.
75719         * iconv/iconv_prog.c: Likewise.
75720         * iconv/iconvconfig.c: Likewise.
75721         * locale/programs/locale.c: Likewise.
75722         * locale/programs/localedef.c: Likewise.
75723         * malloc/memusage.sh: Likewise.
75724         * malloc/mtrace.pl: Likewise.
75725         * nscd/nscd.c (print_version): Likewise.
75726         * nss/getent.c: Likewise.
75727
75728         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75729         PF_CAIF, and PF_ALG.
75730         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75731
75732 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75733
75734         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75735         (modules-names): Use them.
75736         (ifunc-test-modules, ifunc-pie-tests): Define.
75737         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75738         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75739         (test-extras): Likewise.
75740         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75741         $(compile-command.c).
75742         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75743         (all-built-dso): Define.
75744         (check-textrel.out, check-execstack.out): Depend on it.
75745
75746         * configure.in: Don't override --enable-multi-arch.
75747
75748 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75749
75750         [BZ #6812]
75751         * nscd/hstcache.c (tryagain): Define.
75752         (cache_addhst): Return tryagain not notfound for temporary errors.
75753         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75754         failed.
75755
75756 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75757
75758         [BZ #10563]
75759         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75760         to make the syscall.
75761         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75762
75763         [BZ #12378]
75764         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75765         and fall back to matching as normal character if the string ends before
75766         the matching ']' is found.  This is what POSIX requires.
75767         * posix/testfnm.c: Adjust test result.
75768         * posix/globtest.sh: Adjust test result.  Add new test.
75769         * posix/tst-fnmatch.input: Likewise.
75770         * posix/tst-fnmatch2.c: Add new test.
75771
75772 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75773
75774         * elf/Makefile (check-execstack): Revert last change.  Depend on
75775         check-execstack.h.
75776         (check-execstack.h): New target.
75777         (generated): Add check-execstack.h.
75778         * elf/check-execstack.c: Include "check-execstack.h".
75779         (main): Revert last change.
75780         (handle_file): Return zero if GNU_STACK is absent and
75781         DEFAULT_STACK_PERMS doesn't include PF_X.
75782
75783 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75784
75785         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75786         in child fails because the descriptor is already closed.
75787         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75788         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75789         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75790
75791         [BZ #12397]
75792         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75793         syscall.
75794
75795         [BZ #10484]
75796         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75797         temporary buffer used to handle multi lookups locally.
75798         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75799
75800 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75801
75802         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75803         loader is ld.so.
75804
75805 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75806
75807         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75808         alignment for SSE2.
75809
75810 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75811
75812         [BZ #12394]
75813         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75814         characters.  When rounding increased number of integer digits recompute
75815         number of groups.
75816         * stdio-common/tst-grouping.c: New file.
75817         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75818
75819 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75820
75821         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75822         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75823
75824         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75825         void.
75826         * bits/select.h: Likewise.
75827
75828 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75829
75830         * po/ja.po: Update from translation team.
75831
75832 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75833
75834         [BZ #11155]
75835         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75836         implementation just like for lxstat, fxstatat, et al.
75837
75838 2010-12-27  Jim Meyering  <meyering@redhat.com>
75839
75840         [BZ #12348]
75841         * posix/regexec.c (build_trtable): Return failure indication upon
75842         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75843
75844 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75845
75846         [BZ #12201]
75847         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75848         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75849         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75850         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75851
75852         [BZ #12207]
75853         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75854
75855         [BZ #12204]
75856         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75857         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75858
75859 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75860
75861         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75862         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75863         script has SORT_BY_INIT_PRIORITY.
75864         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75865         NO_CTORS_DTORS_SECTIONS is defined.
75866         * elf/soinit.c: Likewise.
75867         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75868         NO_CTORS_DTORS_SECTIONS is defined.
75869         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75870         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75871         * sysdeps/sh/init-first.c: Likewise.
75872         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75873
75874 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75875
75876         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75877         always use the slow path.
75878
75879 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75880
75881         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75882         similar rule which adds the sysdep directories to the header search in
75883         order to pick up the correct platform stackinfo.h.
75884         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75885         perform test if it is, otherwise return successfully without testing.
75886         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75887         DEFAULT_STACK_PERMS define in stackinfo.h.
75888         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75889         defined in stackinfo.h.
75890         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75891         DEFAULT_STACK_PERMS defined in stackinfo.h.
75892         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75893         * sysdeps/ia64/stackinfo.h: Likewise.
75894         * sysdeps/s390/stackinfo.h: Likewise.
75895         * sysdeps/sh/stackinfo.h: Likewise.
75896         * sysdeps/sparc/stackinfo.h: Likewise.
75897         * sysdeps/x86_64/stackinfo.h: Likewise.
75898         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75899         PF_X for powerpc64.  Retain PF_X for powerpc32.
75900
75901 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75902
75903         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
75904         accurately.
75905         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
75906         GETDENTS_64BIT_ALIGNED.
75907
75908 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
75909
75910         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
75911
75912 2010-12-10  Andreas Schwab  <schwab@redhat.com>
75913
75914         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
75915         _GNU_SOURCE.
75916
75917         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
75918         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
75919         Remove __restrict.
75920         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
75921         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
75922
75923 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
75924
75925         [BZ #11655]
75926         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
75927         are initialized.
75928
75929 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
75930
75931         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
75932
75933 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
75934
75935         * po/it.po: Update from translation team.
75936
75937 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
75938
75939         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
75940         unused codes.
75941
75942 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
75943
75944         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
75945
75946 2010-11-24  Andreas Schwab  <schwab@redhat.com>
75947
75948         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
75949         specially.
75950         (gaih_getanswer_slice): Likewise.
75951
75952 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
75953
75954         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
75955
75956 2010-05-31  Petr Baudis  <pasky@suse.cz>
75957
75958         [BZ #11149]
75959         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
75960         silently even in the chroot mode.
75961
75962 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
75963
75964         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
75965         last patch a bit.  Pretty printing
75966
75967 2010-05-31  Petr Baudis <pasky@suse.cz>
75968
75969         [BZ #10085]
75970         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
75971         initialization of skip_initgroups_dyn.
75972
75973 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
75974
75975         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
75976         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75977
75978 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
75979
75980         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
75981
75982 2010-11-11  Andreas Schwab  <schwab@redhat.com>
75983
75984         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
75985         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
75986         (tst-fnmatch-ENV): Set MALLOC_TRACE.
75987         ($(objpfx)tst-fnmatch-mem): New rule.
75988         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
75989         * posix/tst-fnmatch.c (main): Call mtrace.
75990
75991 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
75992
75993         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75994         Support Intel processor model 6 and model 0x2c.
75995
75996 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
75997
75998         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
75999           signed comparison.
76000
76001 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
76002
76003         [BZ #12205]
76004         * string/test-strncasecmp.c (check_result): New function.
76005         (do_one_test): Use it.
76006         (check1): New function.
76007         (test_main): Use it.
76008         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
76009         Support strcasecmp and strncasecmp.
76010
76011 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
76012
76013         [BZ #12194]
76014         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
76015         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76016
76017 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
76018
76019         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
76020         IFUNC support.
76021         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76022         memset-x86-64.
76023         * sysdeps/x86_64/multiarch/bzero.S: New file.
76024         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
76025         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
76026         * sysdeps/x86_64/multiarch/memset.S: New file.
76027         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
76028         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76029         Set bit_Prefer_SSE_for_memop for Intel processors.
76030         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
76031         Define.
76032         (index_Prefer_SSE_for_memop): Define.
76033         (HAS_PREFER_SSE_FOR_MEMOP): Define.
76034
76035 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
76036
76037         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
76038         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
76039
76040 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
76041
76042         [BZ #12191]
76043         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76044         (__x86_64_raw_data_cache_size_half): Likewise.
76045         (__x86_64_raw_shared_cache_size): Likewise.
76046         (__x86_64_raw_shared_cache_size_half): Likewise.
76047
76048         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76049         (__x86_64_raw_data_cache_size_half): Likewise.
76050         (__x86_64_raw_shared_cache_size): Likewise.
76051         (__x86_64_raw_shared_cache_size_half): Likewise.
76052         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
76053         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
76054         and __x86_64_raw_shared_cache_size_half.  Round
76055         __x86_64_data_cache_size_half, __x86_64_data_cache_size
76056         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
76057         to multiple of 256 bytes.
76058
76059 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
76060
76061         [BZ #12167]
76062         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
76063         of inacessible symlinks.  Verify result of symlink before returning it.
76064         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
76065         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
76066
76067 2010-10-28  Erich Ritz  <erichritz@gmail.com>
76068
76069         * math/math.h (isinf): Fix typo in comment.
76070
76071 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
76072
76073         * po/da.po: Update from translation team.
76074
76075 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
76076
76077         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
76078         is added to the list.
76079
76080 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76081             Ulrich Drepper  <drepper@gmail.com>
76082
76083         * elf/dl-object.c (_dl_new_object): Don't append the new object to
76084         the global list here.  Move code to...
76085         (_dl_add_to_namespace_list): ...here.  New function.
76086         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
76087         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
76088         * elf/dl-load.c (lose): Don't remove the element from the list.
76089         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
76090         (_dl_map_object): Likewise.
76091
76092 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
76093
76094         [BZ #12159]
76095         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
76096         into all bytes of SSE register.
76097         Patch by Richard Li <richardpku@gmail.com>.
76098
76099 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
76100
76101         [BZ #12140]
76102         * malloc/malloc.c (_int_free): Fill correct number of bytes when
76103         perturbing.
76104
76105 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
76106
76107         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
76108         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
76109         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
76110         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
76111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
76112         submachine.
76113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
76114
76115 2010-10-22  Andreas Schwab  <schwab@redhat.com>
76116
76117         * include/dlfcn.h (__RTLD_SECURE): Define.
76118         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
76119         mode & __RTLD_SECURE instead.
76120         (open_path): Rename preloaded parameter to secure.
76121         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
76122         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
76123         * elf/dl-deps.c (openaux): Likewise.
76124         * elf/rtld.c (struct map_args): Remove is_preloaded.
76125         (map_doit): Don't use it.
76126         (dl_main): Likewise.
76127         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
76128         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
76129
76130 2010-09-09  Andreas Schwab  <schwab@redhat.com>
76131
76132         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
76133         (sysd-rules-targets): Remove duplicates.
76134         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
76135         rtld-%.$o dependency.
76136
76137 2010-10-18  Andreas Schwab  <schwab@redhat.com>
76138
76139         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
76140         _dl_map_object do it.
76141
76142 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
76143
76144         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
76145         fast fma builtins, define the macros in the C99 standard.
76146         (FP_FAST_FMAF): Likewise.
76147         (FP_FAST_FMAL): Likewise.
76148         * sysdeps/x86_64/bits/mathdef.h: Likewise.
76149
76150         * bits/mathdef.h: Update copyright year.
76151         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76152
76153 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
76154
76155         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
76156         builtins, define the macros in the C99 standard.
76157         (FP_FAST_FMAF): Likewise.
76158         (FP_FAST_FMAL): Likewise.
76159         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
76160         multiply/add.
76161         (FP_FAST_FMAF): Likewise.
76162
76163 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
76164
76165         [BZ #3268]
76166         * math/libm-test.inc (fma_test): Some new testcases.
76167         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
76168         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
76169         y and infinite z.  Do multiplication by C already in long double.
76170         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
76171         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
76172         y and infinite z.  Do bitwise or of inexact bit into u.d.
76173         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
76174         * sysdeps/i386/fpu/s_fmaf.S: Removed.
76175         * sysdeps/i386/fpu/s_fma.S: Removed.
76176         * sysdeps/i386/fpu/s_fmal.S: Removed.
76177
76178 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
76179
76180         [BZ #3268]
76181         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
76182         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
76183         computation is not scheduled after fetestexcept.  Fix value
76184         of minimum denormal long double.
76185
76186 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
76187
76188         [BZ #3268]
76189         * math/libm-test.inc (fma_test): Add some more tests.
76190         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
76191         correctly.
76192
76193 2010-10-15  Andreas Schwab  <schwab@redhat.com>
76194
76195         * scripts/data/localplt-s390-linux-gnu.data: New file.
76196         * scripts/data/localplt-s390x-linux-gnu.data: New file.
76197
76198 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
76199
76200         [BZ #3268]
76201         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
76202         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
76203         instead of dbl-64.
76204         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
76205         inlines.
76206         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
76207         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
76208         if one of x and y is very large and the other is subnormal.
76209         * sysdeps/s390/fpu/s_fmaf.c: New file.
76210         * sysdeps/s390/fpu/s_fma.c: New file.
76211         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
76212         * sysdeps/powerpc/fpu/s_fma.S: New file.
76213         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
76214         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
76215         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
76216
76217 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
76218
76219         [BZ #3268]
76220         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
76221         fma tests.
76222         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
76223         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
76224         * sysdeps/i386/i686/multiarch/s_fma.c: Include
76225         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
76226         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
76227         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
76228         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
76229
76230 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
76231
76232         [BZ #12078]
76233         * posix/regcomp.c (parse_branch): One more memory leak plugged.
76234         * posix/bug-regex31.input: Add test case.
76235
76236 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76237
76238         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
76239         * posix/bug-regex31.input: New file.
76240
76241         [BZ #12078]
76242         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
76243         (parse_sub_exp): Fix last change, use postorder.
76244
76245         * posix/bug-regex31.c: New file.
76246         * posix/Makefile: Add rules to build and run bug-regex31.
76247
76248         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
76249
76250         [BZ #12078]
76251         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
76252
76253         [BZ #12108]
76254         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
76255         to have entries in sys_siglist.
76256
76257         [BZ #12093]
76258         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
76259         be NULL.
76260
76261 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
76262
76263         [BZ #3268]
76264         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
76265         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
76266         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
76267         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
76268         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
76269         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
76270         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
76271         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
76272         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
76273         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
76274         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
76275         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
76276         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
76277         * math/ftestexcept.c (fetestexcept): Likewise.
76278         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
76279         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
76280         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
76281         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
76282         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
76283         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
76284         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
76285
76286 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76287
76288         [BZ #12107]
76289         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
76290         newline.
76291
76292 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
76293
76294         * string/bug-strstr1.c: New file.
76295         * string/Makefile: Add rules to build and run bug-strstr1.
76296
76297 2010-10-05  Eric Blake  <eblake@redhat.com>
76298
76299         [BZ #12092]
76300         * string/str-two-way.h (two_way_long_needle): Always clear memory
76301         when skipping input due to the shift table.
76302
76303 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
76304
76305         [BZ #12005]
76306         * malloc/mcheck.c: Handle large requests.
76307
76308         [BZ #12077]
76309         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
76310         for strncmp and strncasecmp.
76311         * string/stratcliff.c: Add tests for strcmp and strncmp.
76312         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
76313
76314 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
76315
76316         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
76317         __set_fpscr.
76318
76319 2010-09-30  Andreas Jaeger  <aj@suse.de>
76320
76321         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
76322         (CGROUP_SUPER_MAGIC): Define.
76323         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76324         Handle btrfs and cgroup file systems.
76325         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
76326         Likewise.
76327
76328 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
76329
76330         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
76331         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
76332
76333 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76334
76335         [BZ #12067]
76336         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
76337         trying to locate the ELF header.
76338
76339 2010-09-27  Andreas Schwab  <schwab@redhat.com>
76340
76341         [BZ #11611]
76342         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
76343         Mask out sign-bit copies when constructing f_fsid.
76344
76345 2010-09-24  Petr Baudis <pasky@suse.cz>
76346
76347         * debug/stack_chk_fail_local.c: Add missing licence exception.
76348         * debug/warning-nop.c: Likewise.
76349
76350 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
76351
76352         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
76353         implementing getdents64 using getdents syscall, set d_type if
76354         __ASSUME_GETDENTS32_D_TYPE.
76355
76356 2010-09-16  Andreas Schwab  <schwab@redhat.com>
76357
76358         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
76359         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
76360
76361 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
76362
76363         [BZ #12037]
76364         * posix/unistd.h: Undo change of feature selection for ftruncate from
76365         2010-01-11.
76366
76367 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
76368
76369         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
76370         detection.
76371
76372 2010-09-20  Andreas Schwab  <schwab@redhat.com>
76373
76374         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
76375         fanotify_mark.
76376         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76377
76378 2010-09-14  Andreas Schwab  <schwab@redhat.com>
76379
76380         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
76381         variables after CHECK_SP call.
76382         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
76383
76384 2010-09-13  Andreas Schwab  <schwab@redhat.com>
76385             Ulrich Drepper  <drepper@redhat.com>
76386
76387         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
76388         re-relocationg ld.so.
76389         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
76390         _dl_init_paths call.
76391         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
76392         here anymore.
76393
76394 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
76395
76396         * resolv/res_init.c (__res_vinit): Count the default server we added.
76397
76398 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
76399             Ulrich Drepper  <drepper@redhat.com>
76400
76401         [BZ #11968]
76402         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76403         (____longjmp_chk): Use %ebx for saving value across system call.
76404         Add unwind info.
76405
76406 2010-09-06  Andreas Schwab  <schwab@redhat.com>
76407
76408         * manual/Makefile: Don't mix pattern rules with normal rules.
76409
76410 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
76411
76412         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
76413         operation.
76414         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
76415         * libio/iofopncook.c (_IO_cookie_init): Likewise.
76416         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
76417         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
76418         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76419         Likewise.
76420
76421 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
76422
76423         [BZ #11979]
76424         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
76425         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
76426
76427 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
76428
76429         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
76430         * sysdeps/x86_64/addmul_1.S: Likewise.
76431         * sysdeps/x86_64/lshift.S: Likewise.
76432         * sysdeps/x86_64/mul_1.S: Likewise.
76433         * sysdeps/x86_64/rshift.S: Likewise.
76434         * sysdeps/x86_64/sub_n.S: Likewise.
76435         * sysdeps/x86_64/submul_1.S: Likewise.
76436
76437 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76438
76439         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
76440         Define __sched_param instead of SCHED_* and sched_param when
76441         <bits/sched.h> is included with __need_schedparam defined.
76442         * bits/sched.h [__need_schedparam]
76443         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76444         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76445         (__defined_schedparam): Define to 1.
76446         (__sched_param): New structure, identical to sched_param.
76447         (__need_schedparam): Undefine.
76448
76449 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76450
76451         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76452         (epoll_create1): Declare.
76453
76454         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76455
76456 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76457
76458         [BZ #7066]
76459         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76460         shifting retval into place.
76461
76462 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76463
76464         * nis/rpcsvc/nis.h: Update copyright notice.
76465         * nis/rpcsvc/nis.x: Likewise.
76466         * nis/rpcsvc/nis_callback.h: Likewise.
76467         * nis/rpcsvc/nis_callback.x: Likewise.
76468         * nis/rpcsvc/nis_object.x: Likewise.
76469         * nis/rpcsvc/nis_tags.h: Likewise.
76470         * nis/rpcsvc/yp.h: Likewise.
76471         * nis/rpcsvc/yp.x: Likewise.
76472         * nis/rpcsvc/ypupd.h: Likewise.
76473         * nis/yp_xdr.c: Likewise.
76474         * nis/ypupdate_xdr.c: Likewise.
76475
76476         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76477         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76478         (pmap_getport): Use __libc_rpc_getport.
76479         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76480         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76481         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76482
76483 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76484
76485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76486         fanotify_mark.
76487
76488 2010-08-27  Roland McGrath  <roland@redhat.com>
76489
76490         * sysdeps/i386/i686/multiarch/Makefile
76491         (CFLAGS-varshift.c): New variable.
76492
76493 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76494
76495         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76496         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76497
76498         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76499
76500         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76501
76502 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76503
76504         * sysdeps/x86_64/strlen.S: Unroll the loop.
76505         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76506         strlen-sse2 strlen-sse2-bsf.
76507         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76508         __strlen_no_bsf if bit_Slow_BSF is set.
76509         (__strlen_sse42): Removed.
76510         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76511         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76512
76513 2010-08-25  Roland McGrath  <roland@redhat.com>
76514
76515         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76516         * sysdeps/x86_64/multiarch/varshift.c: New file.
76517         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76518         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76519         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76520         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76521
76522 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76523
76524         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76525         strlen-sse2 strlen-sse2-bsf.
76526         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76527         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76528         (__strlen_sse2): Removed.
76529         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76530         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76531         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76532         bit_Slow_BSF for Atom.
76533         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76534         (index_Slow_BSF): Define.
76535         (HAS_SLOW_BSF): Define.
76536
76537 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76538
76539         [BZ #10851]
76540         * resolv/res_init.c (__res_vinit): When no server address at all
76541         is given default to loopback.
76542
76543 2010-08-24  Roland McGrath  <roland@redhat.com>
76544
76545         * configure.in: Remove config-name.h generation.
76546         * configure: Regenerated.
76547         * config-name.in: File removed.
76548         * scripts/config-uname.sh: New file.
76549         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76550         ($(objdir)config-name.h): New target.
76551
76552         * sunrpc/rpc_parse.h: Avoid nested comment.
76553
76554 2010-08-24  Richard Henderson  <rth@redhat.com>
76555             Ulrich Drepper  <drepper@redhat.com>
76556             H.J. Lu  <hongjiu.lu@intel.com>
76557
76558         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76559         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76560         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76561         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76562         _mm_alignr_epi8 with _mm_loadu_si128.
76563         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76564         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76565         (__m128i_shift_right): Removed.
76566         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76567         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76568         * sysdeps/x86_64/multiarch/varshift.h: New file.
76569         * sysdeps/x86_64/multiarch/varshift.S: New file.
76570
76571 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76572
76573         * configure.in: Move assembler checks to before sysdep dir checking.
76574
76575 2010-08-20  Petr Baudis  <pasky@suse.cz>
76576
76577         * LICENSES: Sync the sunrpc license.
76578
76579 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76580
76581         * sunrpc/auth_des.c: Update copyright notice once again.
76582         * sunrpc/auth_none.c: Likewise.
76583         * sunrpc/auth_unix.c: Likewise.
76584         * sunrpc/authdes_prot.c: Likewise.
76585         * sunrpc/authuxprot.c: Likewise.
76586         * sunrpc/bindrsvprt.c: Likewise.
76587         * sunrpc/clnt_gen.c: Likewise.
76588         * sunrpc/clnt_perr.c: Likewise.
76589         * sunrpc/clnt_raw.c: Likewise.
76590         * sunrpc/clnt_simp.c: Likewise.
76591         * sunrpc/clnt_tcp.c: Likewise.
76592         * sunrpc/clnt_udp.c: Likewise.
76593         * sunrpc/clnt_unix.c: Likewise.
76594         * sunrpc/des_crypt.c: Likewise.
76595         * sunrpc/des_soft.c: Likewise.
76596         * sunrpc/get_myaddr.c: Likewise.
76597         * sunrpc/getrpcport.c: Likewise.
76598         * sunrpc/key_call.c: Likewise.
76599         * sunrpc/key_prot.c: Likewise.
76600         * sunrpc/openchild.c: Likewise.
76601         * sunrpc/pm_getmaps.c: Likewise.
76602         * sunrpc/pm_getport.c: Likewise.
76603         * sunrpc/pmap_clnt.c: Likewise.
76604         * sunrpc/pmap_prot.c: Likewise.
76605         * sunrpc/pmap_prot2.c: Likewise.
76606         * sunrpc/pmap_rmt.c: Likewise.
76607         * sunrpc/rpc/auth.h: Likewise.
76608         * sunrpc/rpc/auth_unix.h: Likewise.
76609         * sunrpc/rpc/clnt.h: Likewise.
76610         * sunrpc/rpc/des_crypt.h: Likewise.
76611         * sunrpc/rpc/key_prot.h: Likewise.
76612         * sunrpc/rpc/netdb.h: Likewise.
76613         * sunrpc/rpc/pmap_clnt.h: Likewise.
76614         * sunrpc/rpc/pmap_prot.h: Likewise.
76615         * sunrpc/rpc/pmap_rmt.h: Likewise.
76616         * sunrpc/rpc/rpc.h: Likewise.
76617         * sunrpc/rpc/rpc_des.h: Likewise.
76618         * sunrpc/rpc/rpc_msg.h: Likewise.
76619         * sunrpc/rpc/svc.h: Likewise.
76620         * sunrpc/rpc/svc_auth.h: Likewise.
76621         * sunrpc/rpc/types.h: Likewise.
76622         * sunrpc/rpc/xdr.h: Likewise.
76623         * sunrpc/rpc_clntout.c: Likewise.
76624         * sunrpc/rpc_cmsg.c: Likewise.
76625         * sunrpc/rpc_common.c: Likewise.
76626         * sunrpc/rpc_cout.c: Likewise.
76627         * sunrpc/rpc_dtable.c: Likewise.
76628         * sunrpc/rpc_hout.c: Likewise.
76629         * sunrpc/rpc_main.c: Likewise.
76630         * sunrpc/rpc_parse.c: Likewise.
76631         * sunrpc/rpc_parse.h: Likewise.
76632         * sunrpc/rpc_prot.c: Likewise.
76633         * sunrpc/rpc_sample.c: Likewise.
76634         * sunrpc/rpc_scan.c: Likewise.
76635         * sunrpc/rpc_scan.h: Likewise.
76636         * sunrpc/rpc_svcout.c: Likewise.
76637         * sunrpc/rpc_tblout.c: Likewise.
76638         * sunrpc/rpc_util.c: Likewise.
76639         * sunrpc/rpc_util.h: Likewise.
76640         * sunrpc/rpcinfo.c: Likewise.
76641         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76642         * sunrpc/rpcsvc/key_prot.x: Likewise.
76643         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76644         * sunrpc/rpcsvc/mount.x: Likewise.
76645         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76646         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76647         * sunrpc/rpcsvc/rex.x: Likewise.
76648         * sunrpc/rpcsvc/rstat.x: Likewise.
76649         * sunrpc/rpcsvc/rusers.x: Likewise.
76650         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76651         * sunrpc/rpcsvc/spray.x: Likewise.
76652         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76653         * sunrpc/rtime.c: Likewise.
76654         * sunrpc/svc.c: Likewise.
76655         * sunrpc/svc_auth.c: Likewise.
76656         * sunrpc/svc_authux.c: Likewise.
76657         * sunrpc/svc_raw.c: Likewise.
76658         * sunrpc/svc_run.c: Likewise.
76659         * sunrpc/svc_simple.c: Likewise.
76660         * sunrpc/svc_tcp.c: Likewise.
76661         * sunrpc/svc_udp.c: Likewise.
76662         * sunrpc/svc_unix.c: Likewise.
76663         * sunrpc/svcauth_des.c: Likewise.
76664         * sunrpc/xcrypt.c: Likewise.
76665         * sunrpc/xdr.c: Likewise.
76666         * sunrpc/xdr_array.c: Likewise.
76667         * sunrpc/xdr_float.c: Likewise.
76668         * sunrpc/xdr_mem.c: Likewise.
76669         * sunrpc/xdr_rec.c: Likewise.
76670         * sunrpc/xdr_ref.c: Likewise.
76671         * sunrpc/xdr_sizeof.c: Likewise.
76672         * sunrpc/xdr_stdio.c: Likewise.
76673
76674         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76675         handling.
76676
76677 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76678
76679         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76680
76681 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76682
76683         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76684         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76685         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76686         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76687         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76688         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76689         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76690         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76691         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76692         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76693         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76694         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76695         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76696         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76697
76698 2010-07-26  Anton Blanchard  <anton@samba.org>
76699
76700         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76701         * malloc/arena.c (heap_trim): Likewise.
76702
76703 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76704
76705         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76706         here.  Not...
76707         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76708         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76709
76710 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76711
76712         * sysdeps/i386/elf/Makefile: New file.
76713
76714 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76715
76716         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76717         from fanotify_init.
76718         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76719         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76720
76721 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76722
76723         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76724         of strncasecmp_l.
76725         * sysdeps/multiarch/strcmp.S: Likewise.
76726
76727 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76728
76729         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76730         strncase_l-nonascii.
76731         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76732         Add strncase_l-ssse3.
76733         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76734         * sysdeps/x86_64/strcmp.S: Likewise.
76735         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76736         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76737         * sysdeps/x86_64/strncase.S: New file.
76738         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76739         * sysdeps/x86_64/strncase_l.S: New file.
76740         * string/Makefile (strop-tests): Add strncasecmp.
76741         * string/test-strncasecmp.c: New file.
76742
76743         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76744         warning.
76745
76746         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76747         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76748
76749 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76750
76751         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76752
76753 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76754
76755         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76756         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76757         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76758
76759 2010-05-01  Alan Modra  <amodra@gmail.com>
76760
76761         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76762         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76763         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76764         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76765         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76766         tidying.  Don't tail-call __sigjmp_save for static lib.
76767         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76768         save location.
76769         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76770         (CALL_MCOUNT): Add eh info, and nop after bl.
76771         (TAIL_CALL_SYSCALL_ERROR): New macro.
76772         (PSEUDO_RET): Use it.
76773         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76774         Correct save location of integer regs and cr.
76775         (_dl_profile_resolve): Correct cr save location.  Delete nops
76776         after bl when SHARED.  Reduce cfi size a little by better
76777         placement of cfi directives.
76778         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76779         make a stack frame.  Instead use parm save area as a temp.
76780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76781         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76783         Don't make a stack frame for parent, use parm save area.
76784         Increase child stack frame to 112 bytes.  Don't save unused reg,
76785         and adjust reg usage.  Set up cfi on error recovery and
76786         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76788         (__makecontext): Add dummy nop after jump to exit.
76789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76790         Use correct parm save area and cr save, reduce stack frame.
76791         Correct cfi for possible PSEUDO_RET frame setup.
76792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76793         Branch to local label emitted by PSEUDO_RET rather than
76794         __syscall_error.
76795
76796 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76797
76798         [BZ #11904]
76799         * locale/programs/locale.c (print_assignment): New function.
76800         (show_locale_vars): Use it.
76801
76802 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76803
76804         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76805         field.
76806         (struct statfs64): Likewise.
76807         (_STATFS_F_FLAGS): Define.
76808         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76809         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76810         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76811         (ST_VALID): Define locally.
76812         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76813         __statvfs_getflags, use the provided value.
76814         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76815         __ASSUME_STATFS_F_FLAGS.
76816
76817         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76818
76819         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76820         Add sys/fanotify.h.
76821         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76822         fanotify_mask for GLIBC_2.13.
76823         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76824         fanotify_init and fanotify_mark.
76825         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76826         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76827
76828         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76829         Add prlimit.
76830         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76831         prlimit64 for GLIBC_2.13.
76832         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76833         prlimit64.
76834         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76835         syscall.
76836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76837         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76838         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76839         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76840         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76841         add prlimit alias.
76842         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76843
76844         [BZ #11903]
76845         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76846         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76847
76848         * nss/Makefile: Add rules to build and run tst-nss-test1.
76849         * shlib-versions: Add entry for libnss_test1.
76850         * nss/nss_test1.c: New file.
76851         * nss/tst-nss-test1.c: New file.
76852
76853         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76854         (__nss_configure_lookup): Set appropriate entry in
76855         __nss_configure_lookup to true.
76856         * nss/nsswitch.h: Define enum with indeces of databases in
76857         databases and __nss_database_custom arrays.  Declare
76858         __nss_database_custom.
76859         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76860         to avoid using nscd when custom rules are installed.
76861         * nss/getXXbyYY_r.c: Likewise.
76862         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76863
76864         * nss/nss_files/files-parse.c: Whitespace fixes.
76865
76866 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76867
76868         [BZ #11883]
76869         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76870         * posix/fnmatch_loop.c: Likewise.
76871
76872 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76873
76874         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76875         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76876         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76877         * Versions.def [GLIBC_2.13]: Add.
76878
76879 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76880
76881         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76882         Also fail if tpwd after pwuid call is NULL.
76883
76884 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76885
76886         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76887         when converting to ms.
76888
76889 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76890
76891         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76892         EOPNOTSUPP errors with ENOTTY.
76893         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76894         EOPNOTSUPP errors with ENOTTY.
76895
76896 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76897
76898         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76899         Add strcasecmp_l-ssse3.
76900         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76901         strcasecmp.
76902         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76903         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
76904         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
76905
76906 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
76907
76908         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
76909
76910         * string/Makefile (strop-tests): Add strcasecmp.
76911         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76912         strcasecmp_l-nonascii.
76913         (gen-as-const-headers): Add locale-defines.sym.
76914         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
76915         * sysdeps/x86_64/strcasecmp.S: New file.
76916         * sysdeps/x86_64/strcasecmp_l.S: New file.
76917         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
76918         * sysdeps/x86_64/locale-defines.sym: New file.
76919         * string/test-strcasecmp.c: New file.
76920
76921         * string/test-strcasestr.c: Test both ends of the range of characters.
76922         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
76923
76924 2010-07-29  Roland McGrath  <roland@redhat.com>
76925
76926         [BZ #11856]
76927         * manual/locale.texi (Yes-or-No Questions): Fix example code.
76928
76929 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
76930
76931         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
76932         for ld.so.
76933
76934 2010-07-27  Andreas Schwab  <schwab@redhat.com>
76935
76936         * manual/memory.texi (Malloc Tunable Parameters): Document
76937         M_PERTURB.
76938
76939 2010-07-26  Roland McGrath  <roland@redhat.com>
76940
76941         [BZ #11840]
76942         * configure.in (-fgnu89-inline check): Set and substitute
76943         gnu89_inline, not libc_cv_gnu89_inline.
76944         * configure: Regenerated.
76945         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
76946
76947 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
76948
76949         * string/test-strnlen.c: New file.
76950         * string/Makefile (strop-tests): Add strnlen.
76951         * string/tester.c (test_strnlen): Add a few more test cases.
76952         * string/tst-strlen.c: Better error reporting.
76953
76954         * sysdeps/x86_64/strnlen.S: New file.
76955
76956 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
76957
76958         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76959         lower-latency instructions.
76960
76961 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
76962
76963         * string/test-strcasestr.c: New file.
76964         * string/test-strstr.c: New file.
76965         * string/Makefile (strop-tests): Add strstr and strcasestr.
76966         * string/str-two-way.h: Don't undefine MAX.
76967         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
76968
76969 2010-07-21  Andreas Schwab  <schwab@redhat.com>
76970
76971         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76972         strcasestr-nonascii.
76973         (CFLAGS-strcasestr-nonascii.c): Define.
76974         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
76975         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
76976         Remove unused attribute.
76977
76978 2010-07-20  Roland McGrath  <roland@redhat.com>
76979
76980         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
76981         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
76982         ld.so.cache was broken.  With it, there is no way to disable dsocaps
76983         like LD_HWCAP_MASK can disable hwcaps.
76984
76985 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
76986
76987         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
76988
76989 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
76990
76991         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
76992         call in strcasestr.
76993         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
76994         __strcasestr_sse42_nonascii.
76995         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
76996         strcasestr-nonascii.c.
76997         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
76998
76999 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
77000
77001         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
77002         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
77003         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
77004         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
77005
77006 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
77007
77008         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
77009         fcntl.
77010
77011 2010-07-06  Andreas Schwab  <schwab@redhat.com>
77012
77013         [BZ #11577]
77014         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
77015         dl_signal_cerror.
77016
77017 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
77018
77019         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
77020         _PC_PIPE_BUF using F_GETPIPE_SZ.
77021
77022 2010-07-05  Roland McGrath  <roland@redhat.com>
77023
77024         * manual/arith.texi (Rounding Functions): Fix rint description
77025         implicit in round description.
77026
77027 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
77028
77029         * elf/Makefile: Fix linking for a few tests to make recent linker
77030         happy.
77031
77032 2010-06-30  Andreas Schwab  <schwab@redhat.com>
77033
77034         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
77035         $(common-objpfx)libc_nonshared.a.
77036
77037 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
77038
77039         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
77040         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
77041         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77042         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77043         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
77044         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
77045         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77046         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
77048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
77049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
77050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
77052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
77054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
77055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
77056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
77057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
77059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
77061         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
77062         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
77063         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
77064         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
77065         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
77066         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
77067         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
77068         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
77069         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
77070         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
77071         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
77072         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
77073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
77074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
77075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
77076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
77077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
77078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
77079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
77080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
77081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
77082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
77083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
77084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
77085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
77086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
77087
77088 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
77089
77090         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
77091         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
77092         * string/memmove.c (memmove): Renamed to ...
77093         (MEMMOVE): ...this.  Default to memmove.
77094         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
77095         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
77096         (END_CHK): Define.
77097         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77098         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
77099         mempcpy-ssse3-back memmove-ssse3-back.
77100         * sysdeps/x86_64/multiarch/bcopy.S: New file .
77101         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
77102         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
77103         * sysdeps/x86_64/multiarch/memcpy.S: New file.
77104         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
77105         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
77106         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
77107         * sysdeps/x86_64/multiarch/memmove.c: New file.
77108         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
77109         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
77110         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
77111         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
77112         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
77113         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
77114         Define.
77115         (index_Fast_Copy_Backward): Define.
77116         (HAS_ARCH_FEATURE): Define.
77117         (HAS_FAST_REP_STRING): Define.
77118         (HAS_FAST_COPY_BACKWARD): Define.
77119
77120 2010-06-21  Andreas Schwab  <schwab@redhat.com>
77121
77122         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77123         Restore proper fallback handling.
77124
77125 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
77126
77127         [BZ #11701]
77128         * posix/group_member.c (__group_member): Correct checking loop.
77129
77130         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
77131         OOM in getpwuid_r correctly.  Return error number when the caller
77132         should return, otherwise -1.
77133         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
77134         call returning > 0 value.
77135         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
77136
77137 2010-06-07  Andreas Schwab  <schwab@redhat.com>
77138
77139         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
77140         libc_nonshared.a from targets in modules-names.
77141
77142 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
77143
77144         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
77145         requires it.
77146
77147 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
77148
77149         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
77150         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
77151         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
77152         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
77153
77154 2010-06-02  Andreas Schwab  <schwab@redhat.com>
77155
77156         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
77157
77158 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
77159
77160         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
77161         and F_GETPIPE_SZ.
77162         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
77163         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
77164         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
77165         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
77166         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
77167         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
77168
77169 2010-06-14  Roland McGrath  <roland@redhat.com>
77170
77171         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
77172
77173 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
77174
77175         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
77176         __REDIRECT followed by __THROW.
77177         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
77178         * posix/getopt.h (getopt): Likewise.
77179
77180 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77181
77182         * hurd/lookup-at.c (__file_name_lookup_at): Accept
77183         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
77184         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
77185         in AT_FLAGS.
77186         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
77187         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
77188
77189 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
77190
77191         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
77192
77193 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
77194
77195         [BZ #11640]
77196         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77197         Properly check family and model.
77198
77199 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
77200
77201         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
77202
77203 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
77204
77205         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
77206
77207 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
77208
77209         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
77210         symbol reference.
77211
77212 2010-05-19  Andreas Schwab  <schwab@redhat.com>
77213
77214         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
77215         symbol reference.
77216
77217 2010-05-21  Andreas Schwab  <schwab@redhat.com>
77218
77219         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
77220         and internal_recvmmsg.
77221         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
77222         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
77223         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
77224         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
77225
77226         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
77227         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
77228         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
77229
77230 2010-05-20  Andreas Schwab  <schwab@redhat.com>
77231
77232         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
77233
77234 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
77235
77236         POWER7 optimizations.
77237         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
77238         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
77239
77240 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
77241
77242         * version.h: Update for 2.13 development version.
77243
77244 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
77245
77246         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
77247         exceptions.  Return 0.
77248
77249 2010-05-07  Roland McGrath  <roland@redhat.com>
77250
77251         * elf/ldconfig.c (main): Add a const.
77252
77253 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
77254
77255         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
77256         (args_options): Add no-idn option.
77257         (ahosts_keys_int): Add idn_flags to ai_flags.
77258         (parse_option): Handle 'i' option to clear idn_flags.
77259
77260         * malloc/malloc.c (_int_free): Possible race in the most recently
77261         added check.  Only act on the data if no current modification
77262         happened.
77263
77264 See ChangeLog.17 for earlier changes.